public interface PermissionManager extends ResourceManager
Modifier and Type | Method and Description |
---|---|
CentraSitePermission |
createPermission()
Create a new instance of non-system level
CentraSitePermission . |
CentraSitePermission |
createPermission(boolean systemLevel)
Create a new instance of system level/non-system level
CentraSitePermission based on
the systemLevel parameter. |
void |
deletePermission(CentraSitePermission permission)
Delete the specified permission.
|
CentraSitePermission |
getPermission(RegistryObject permissionRegistryObject)
Utility method to obtain
CentraSitePermission instance of RegistryObject of type "Permission". |
CentraSitePermission |
getPermission(java.lang.String permissionId)
Get the permission corresponding to the specified permission identity.
|
CentraSitePermission |
getPermission(java.lang.String permissionId,
Organization organization)
Get the permission corresponding to the specified permission identity applicable to the specified organization.
|
java.util.Collection<CentraSitePermission> |
getPermissions(Organization organization)
Get all the permissions for a given Organization.
|
java.util.Collection<CentraSitePermission> |
getPermissions(java.lang.String filter)
Get the permissions using the specified search filter.
|
java.util.Collection<CentraSitePermission> |
getPermissionsEx(Organization organization)
Get all the permissions for a given Organization.
|
java.util.Collection<CentraSitePermission> |
getPermissionsEx(java.lang.String filter)
Get the permissions using the specified search filter.
|
delete, save
CentraSitePermission createPermission() throws JAXRException, SagGeneralSecurityException
CentraSitePermission
.CentraSitePermission
instance that was just createdJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursCentraSitePermission createPermission(boolean systemLevel) throws JAXRException, SagGeneralSecurityException
CentraSitePermission
based on
the systemLevel parameter.systemLevel
- If true, creates a system level permission and if false,
creates a non-system level permission.CentraSitePermission
instance that was just createdJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursvoid deletePermission(CentraSitePermission permission) throws JAXRException, SagGeneralSecurityException
permission
- The CentraSitePermission
instance that has to be deleted.JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursCentraSitePermission getPermission(java.lang.String permissionId) throws JAXRException, SagGeneralSecurityException
permissionId
- The UUID key for the permission which has to be retrievedCentraSitePermission
instance corresponding to the specified permissionIdJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursCentraSitePermission getPermission(java.lang.String permissionId, Organization organization) throws JAXRException, SagGeneralSecurityException
permissionId
- The UUID key for the permission which has to be retrievedorganization
- The Organization
to which the permission belongsCentraSitePermission
instance corresponding to the specified permissionId belonging to the given organizationJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.util.Collection<CentraSitePermission> getPermissions(java.lang.String filter) throws JAXRException, SagGeneralSecurityException
filter
- Search filter - if filter is empty string then no filtering occursCollection
of CentraSitePermission
s based on the given search filter (may be empty but not null)JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.util.Collection<CentraSitePermission> getPermissionsEx(java.lang.String filter) throws JAXRException, SagGeneralSecurityException
filter
- Search filter - if filter is empty string then no filtering occursCollection
of CentraSitePermission
s based on the given search filter (may be empty but not null)JAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.util.Collection<CentraSitePermission> getPermissions(Organization organization) throws JAXRException, SagGeneralSecurityException
organization
- The Organization
from which the permissions should be fetchedCollection
of CentraSitePermission
s belonging to the given organizationJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.util.Collection<CentraSitePermission> getPermissionsEx(Organization organization) throws JAXRException, SagGeneralSecurityException
organization
- The Organization
from which the permissions should be fetchedCollection
of CentraSitePermission
s belonging to the given organizationJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursCentraSitePermission getPermission(RegistryObject permissionRegistryObject) throws JAXRException, SagGeneralSecurityException
CentraSitePermission
instance of RegistryObject
of type "Permission".permissionRegistryObject
- The permission as an instance of RegistryObject
.CentraSitePermission
instanceJAXRException
- If a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.lang.IllegalArgumentException
- If permissionRegistryObject is not of Permission type.