Class UmaResourceService


  • @ApplicationScoped
    public class UmaResourceService
    extends java.lang.Object
    Provides operations with resource set descriptions
    Author:
    Yuriy Movchan, Yuriy Zabrovarnyy Date: 10.05.2012
    • Constructor Detail

      • UmaResourceService

        public UmaResourceService()
    • Method Detail

      • addBranch

        public void addBranch()
      • addResource

        public void addResource​(UmaResource resource)
        Add new resource description entry
        Parameters:
        resource - resource
      • validate

        public void validate​(UmaResource resource)
      • updateResource

        public void updateResource​(UmaResource resource)
      • updateResource

        public void updateResource​(UmaResource resource,
                                   boolean skipValidation)
        Update resource description entry
        Parameters:
        resource - resource
      • remove

        public void remove​(UmaResource resource)
        Remove resource description entry
        Parameters:
        resource - resource
      • remove

        public void remove​(java.lang.String rsid)
        Remove resource description entry by ID.
        Parameters:
        rsid - resource ID
      • remove

        public void remove​(java.util.List<UmaResource> resources)
      • getResourcesByAssociatedClient

        public java.util.List<UmaResource> getResourcesByAssociatedClient​(java.lang.String associatedClientDn)
        Get all resource descriptions
        Returns:
        List of resource descriptions
      • getResources

        public java.util.Set<UmaResource> getResources​(java.util.Set<java.lang.String> ids)
      • getResourceById

        public UmaResource getResourceById​(java.lang.String id)
      • getResourceScopes

        public java.util.Set<java.lang.String> getResourceScopes​(java.util.Set<java.lang.String> resourceIds)
      • getDnForResource

        public java.lang.String getDnForResource​(java.lang.String oxId)
        Build DN string for resource description
      • getBaseDnForResource

        public java.lang.String getBaseDnForResource()