Package com.sun.identity.entitlement
Class ApplicationPrivilege
- java.lang.Object
-
- com.sun.identity.entitlement.ApplicationPrivilege
-
public class ApplicationPrivilege extends Object
Class representing delegation application privilege
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationPrivilege.Actionstatic classApplicationPrivilege.PossibleAction
-
Constructor Summary
Constructors Constructor Description ApplicationPrivilege(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplicationResource(String applicationName, Set<String> resources)ApplicationPrivilege.PossibleActiongetActionValues()Set<String>getApplicationNames()EntitlementConditiongetCondition()Returns the condition the privilegeStringgetCreatedBy()Returns the user ID who created the policy.longgetCreationDate()Returns creation date.StringgetDescription()Returns the description of the privilege.StringgetLastModifiedBy()Returns the user ID who last modified the policy.longgetLastModifiedDate()Returns last modified date.StringgetName()Returns the name of the privilege.Set<String>getResourceNames(String applicationName)Set<SubjectImplementation>getSubjects()Returns the eSubject the privilegevoidsetActionValues(ApplicationPrivilege.PossibleAction actions)voidsetApplicationResources(Map<String,Set<String>> map)voidsetCondition(EntitlementCondition condition)Sets the condition the privilegevoidsetCreatedBy(String createdBy)Sets the user ID who created the policy.voidsetCreationDate(long date)Sets creation date.voidsetDescription(String desc)Sets the description of the privilege.voidsetLastModifiedBy(String lastModifiedBy)Sets the user ID who last modified the policy.voidsetLastModifiedDate(long date)Sets last modified date.voidsetSubject(Set<SubjectImplementation> entitlementSubjects)Sets entitlement subject.
-
-
-
Constructor Detail
-
ApplicationPrivilege
public ApplicationPrivilege(String name)
-
-
Method Detail
-
setSubject
public void setSubject(Set<SubjectImplementation> entitlementSubjects) throws EntitlementException
Sets entitlement subject.- Parameters:
entitlementSubjects- Entitlement subject- Throws:
EntitlementException- if subject is null.
-
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.
-
getActionValues
public ApplicationPrivilege.PossibleAction getActionValues()
-
addApplicationResource
public void addApplicationResource(String applicationName, Set<String> resources)
-
setActionValues
public void setActionValues(ApplicationPrivilege.PossibleAction actions)
-
-