|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleManager
Interface for managing roles. It can perform creation, deletion and searching of roles.
Field Summary | |
---|---|
static java.lang.String |
ROLE_REF_ASSOC_EXPORT
The association established from a object to the role at export (e.g. group --> role) |
Method Summary | |
---|---|
CentraSiteRole |
createRole()
Create a new instance of non-system level role. |
CentraSiteRole |
createRole(boolean systemLevel)
Create a new instance of system level role. |
void |
deleteRole(CentraSiteRole role)
Delete specified role. |
CentraSiteRole |
getRole(javax.xml.registry.infomodel.RegistryObject roleRegistryObject)
Utility method to obtain CentraSiteRole instance of RegistryObject of type "Role". |
CentraSiteRole |
getRole(java.lang.String id)
Get role by Id. |
java.util.Collection<CentraSiteRole> |
getRoles(javax.xml.registry.infomodel.Organization organization)
Get the roles related to the specified organization. |
java.util.Collection<CentraSiteRole> |
getRoles(java.lang.String filter)
Get the roles using the specified search filter. |
java.util.Collection<CentraSiteRole> |
getRolesEx(javax.xml.registry.infomodel.Organization organization)
Get the roles related to the specified organization. |
java.util.Collection<CentraSiteRole> |
getRolesEx(java.lang.String filter)
Get the roles using the specified search filter. |
void |
prepareRolesForExport(javax.xml.registry.infomodel.RegistryObject roleReference,
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> roles)
Prepare this role reference (group or user) for export e.g. add JAXR associations for all referenced roles e.g.: group ------ RelatedTo -----> role |
Methods inherited from interface com.centrasite.resourceaccess.managers.ResourceManager |
---|
delete, save |
Field Detail |
---|
static final java.lang.String ROLE_REF_ASSOC_EXPORT
Method Detail |
---|
CentraSiteRole createRole() throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursCentraSiteRole createRole(boolean systemLevel) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
systemLevel
- Set to true when creating a system level role.
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursvoid deleteRole(CentraSiteRole role) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursCentraSiteRole getRole(java.lang.String id) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
id
- Usually taken from ResourceAccessConstants
;
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursjava.util.Collection<CentraSiteRole> getRoles(java.lang.String filter) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
filter
- search filter - if filter is empty string then no filtering occurs
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursjava.util.Collection<CentraSiteRole> getRolesEx(java.lang.String filter) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
filter
- search filter - if filter is empty string then no filtering occurs
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursjava.util.Collection<CentraSiteRole> getRoles(javax.xml.registry.infomodel.Organization organization) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
organization
- to use in search
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursjava.util.Collection<CentraSiteRole> getRolesEx(javax.xml.registry.infomodel.Organization organization) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
organization
- to use in search
javax.xml.registry.JAXRException
- if a JAXR error occurs
com.softwareag.security.jaas.principals.SagGeneralSecurityException
- if a security error occursvoid prepareRolesForExport(javax.xml.registry.infomodel.RegistryObject roleReference, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> roles) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
e.g.: group ------ RelatedTo -----> role
roleReference
- the role reference (group/user)roles
- all (system) roles referencing group/user
javax.xml.registry.JAXRException
com.softwareag.security.jaas.principals.SagGeneralSecurityException
CentraSiteRole getRole(javax.xml.registry.infomodel.RegistryObject roleRegistryObject) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.SagGeneralSecurityException
CentraSiteRole
instance of RegistryObject
of type "Role".
roleRegistryObject
- The role RegistryObject
.
CentraSiteRole
instance
javax.xml.registry.JAXRException
- if a JAXR error occurs
java.lang.IllegalArgumentException
- If roleRegistryObject is not of Role type.
com.softwareag.security.jaas.principals.SagGeneralSecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |