public interface CentraSitePermission extends ResourceAccessType
Modifier and Type | Method and Description |
---|---|
boolean |
addImpliedByPermission(CentraSitePermission permission)
This method adds an additional entry to the collection of permissions which imply this permission.
|
boolean |
addImpliedPermission(CentraSitePermission permission)
The method adds an additional entry to the collection of permissions implied by this permission.
|
boolean |
addImpliesPermission(CentraSitePermission impliesPermission)
The method adds an additional entry to the collection of permissions which this permission implies.
|
java.util.Collection<CentraSitePermission> |
getImpliedPermissions()
Returns a collection of all permissions directly or indirectly implied by this permission.
|
Organization |
getOrganization()
Get the organization that this permission is applicable to.
|
CentraSitePermission |
getSystemLevelPermission()
Get the system level permission corresponding to this non-system level permission.
|
boolean |
implies(CentraSitePermission permission)
Checks if specified permission is implied directly or indirectly by this permission.
|
boolean |
isInternal()
Checks if this permission is internal.
|
boolean |
isSystemLevel()
Check if this is a system level permission.
|
void |
save()
Persist the permission.
|
void |
setImpliedByPermissions(java.util.Collection<CentraSitePermission> permissions)
Replaces all previous permissions which imply this permission with the specified permission set.
|
void |
setImpliedPermissions(java.util.Collection<CentraSitePermission> permissions)
Replaces all previously implied permissions from this permission with the specified permission set.
|
void |
setImpliesPermissions(java.util.Collection<CentraSitePermission> impliesPermissions)
Replaces all permissions which this permission implies with the specified permissions.
|
void |
setOrganization(Organization organization)
Set the organization that this permission is applicable to.
|
void |
setSystemLevelPermission(CentraSitePermission systemLevelPermission)
Sets the system level permission for this organization level permission variant.
|
addAssociations, addClassifications, addExternalLinks, addSlots, getAssociations, getClassifications, getDescription, getDisplayName, getExternalLinks, getExternalProperties, getId, getProperties, getSlots, preDelete, preSave, removeAssociations, removeClassifications, removeExternalLinks, removeProperties, removeSlots, setDescription, setDisplayName, setProperties, synchronizeProperties
void setOrganization(Organization organization) throws JAXRException, SagGeneralSecurityException
organization
- The Organization
to which the permission should belongJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursOrganization getOrganization() throws JAXRException, SagGeneralSecurityException
Organization
to which this permission belongsJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursvoid save() throws JAXRException, SagGeneralSecurityException
JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursvoid setSystemLevelPermission(CentraSitePermission systemLevelPermission) throws JAXRException, SagGeneralSecurityException
save()
.systemLevelPermission
- The system level CentraSitePermission
to set for this permissionJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursboolean isSystemLevel() throws JAXRException, SagGeneralSecurityException
JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursboolean addImpliedPermission(CentraSitePermission permission) throws JAXRException
permission
- CentraSitePermission
to be added to the collection of implied permissionsJAXRException
- If the collection of implied permissions refuses to add a particular element for any reason
other than that it already contains the element.void setImpliedPermissions(java.util.Collection<CentraSitePermission> permissions) throws JAXRException
permissions
- Collection
of CentraSitePermission
instances to replace the set of currently implied permissions.JAXRException
- If the collection of permissions cannot replace the current collection of implied
permissions.java.util.Collection<CentraSitePermission> getImpliedPermissions()
boolean addImpliedByPermission(CentraSitePermission permission) throws JAXRException
permission
- Permission to be added to the collection.JAXRException
- If the collection refuses to add a particular element for any reason
other than that it already contains the element.void setImpliedByPermissions(java.util.Collection<CentraSitePermission> permissions)
permissions
- Permissions collection to replace the current permission set.boolean addImpliesPermission(CentraSitePermission impliesPermission) throws JAXRException
impliesPermission
- Permission to be added to the collection permissions which this permission implies.JAXRException
- If the collection of permissions which this permission implies refuses to add a particular element for any reason
other than that it already contains the element.void setImpliesPermissions(java.util.Collection<CentraSitePermission> impliesPermissions) throws JAXRException
impliesPermissions
- Permissions collection to replace permissions that this permission currently implies.JAXRException
- If the collection of permissions. which this permission currently implies, cannot be replaced.boolean implies(CentraSitePermission permission)
permission
- The specific permission to check against.boolean isInternal()
CentraSitePermission getSystemLevelPermission() throws JAXRException, SagGeneralSecurityException
JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occurs