Class ApplicationPrivilege


  • public class ApplicationPrivilege
    extends Object
    Class representing delegation application privilege
    • Constructor Detail

      • ApplicationPrivilege

        public ApplicationPrivilege​(String name)
    • Method Detail

      • getName

        public String getName()
        Returns the name of the privilege.
        Returns:
        name of the privilege.
      • setDescription

        public void setDescription​(String desc)
        Sets the description of the privilege.
        Parameters:
        desc - Description of the privilege.
      • getDescription

        public String getDescription()
        Returns the description of the privilege.
        Returns:
        description of the privilege.
      • getSubjects

        public Set<SubjectImplementation> getSubjects()
        Returns the eSubject the privilege
        Returns:
        eSubject of the privilege.
      • getCondition

        public EntitlementCondition getCondition()
        Returns the condition the privilege
        Returns:
        condition of the privilege.
      • setCondition

        public void setCondition​(EntitlementCondition condition)
        Sets the condition the privilege
        Parameters:
        condition - condition of the privilege.
      • getCreationDate

        public long getCreationDate()
        Returns creation date.
        Returns:
        creation date.
      • getLastModifiedDate

        public long getLastModifiedDate()
        Returns last modified date.
        Returns:
        last modified date.
      • setCreationDate

        public void setCreationDate​(long date)
        Sets creation date.
        Parameters:
        date - creation date.
      • setLastModifiedDate

        public void setLastModifiedDate​(long date)
        Sets last modified date.
        Parameters:
        date - last modified date.
      • setLastModifiedBy

        public void setLastModifiedBy​(String lastModifiedBy)
        Sets the user ID who last modified the policy.
        Parameters:
        lastModifiedBy - user ID who last modified the policy.
      • setCreatedBy

        public void setCreatedBy​(String createdBy)
        Sets the user ID who created the policy.
        Parameters:
        createdBy - user ID who created the policy.
      • getLastModifiedBy

        public String getLastModifiedBy()
        Returns the user ID who last modified the policy.
        Returns:
        user ID who last modified the policy.
      • getCreatedBy

        public String getCreatedBy()
        Returns the user ID who created the policy.
        Returns:
        user ID who created the policy.
      • getApplicationNames

        public Set<String> getApplicationNames()
      • getResourceNames

        public Set<String> getResourceNames​(String applicationName)
      • addApplicationResource

        public void addApplicationResource​(String applicationName,
                                           Set<String> resources)
      • setApplicationResources

        public void setApplicationResources​(Map<String,​Set<String>> map)