public interface Importer
Modifier and Type | Method and Description |
---|---|
void |
backout(java.util.Collection<RegistryObject> allNewPerms)
Backs out the import operation.
|
java.util.Collection<RegistryObject> |
deleteUnreferencedUsers()
Delete unreferenced users from organization after group replacements.
|
void |
executeImport(RegistryObject ro)
Re-create security layer data for a single Resource Access asset.
|
void |
importGroupUserRelationships(java.util.Collection<RegistryObject> users,
java.util.Collection<RegistryObject> groups)
This method is used to establish Group-User relationships during import operation.
|
void |
importGRUPRelationships(java.util.Collection<RegistryObject> permissions,
java.util.Collection<RegistryObject> groups,
java.util.Collection<RegistryObject> users,
java.util.Collection<RegistryObject> roles)
This method is used to establish Role-Permission, Group-Role, User-Role and Group-User relationships during import operation of an organization.
|
void |
setToRemoveGroupUsers(boolean toRemoveGroupUsers)
Set to indicate if users of a group should be removed during group import.
|
void executeImport(RegistryObject ro) throws JAXRException, SagGeneralSecurityException
Constants.OBJECT_TYPE_KEY_Group
, Constants.OBJECT_TYPE_KEY_Role
,
Constants.OBJECT_TYPE_KEY_User
, Constants.OBJECT_TYPE_KEY_Permission
ro
- The registry object representing the Resource Access asset.JAXRException
- if a JAXR error occursSagGeneralSecurityException
- If a security error occursjava.util.Collection<RegistryObject> deleteUnreferencedUsers() throws SagGeneralSecurityException, JAXRException
RegistryObject
instances) which were failed to delete.SagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityJAXRException
- If a JAXR related error occurs while trying to obtain the registry objectsvoid setToRemoveGroupUsers(boolean toRemoveGroupUsers)
toRemoveGroupUsers
- If true, users from imported group will be removed; If false, retains all users of the imported groupvoid importGRUPRelationships(java.util.Collection<RegistryObject> permissions, java.util.Collection<RegistryObject> groups, java.util.Collection<RegistryObject> users, java.util.Collection<RegistryObject> roles) throws SagGeneralSecurityException, JAXRException
permissions
- The collection of Permissions for which the relationship with Role has to be establishedgroups
- The collection of Groups for which the relationship with Role and User has to be establishedusers
- The collection of Users for which the relationship with Role and Group has to be establishedroles
- The collection of Roles for which the relationship with User, Group and Permission has to be establishedSagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityJAXRException
- If a JAXR related error occurs while trying to obtain the registry objectsvoid importGroupUserRelationships(java.util.Collection<RegistryObject> users, java.util.Collection<RegistryObject> groups) throws JAXRException, SagGeneralSecurityException
users
- The collection of Users for which the relationship with Group has to be establishedgroups
- The collection of Groups for which the relationship with User has to be establishedJAXRException
- If a JAXR related error occurs while trying to obtain the registry objectsSagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityvoid backout(java.util.Collection<RegistryObject> allNewPerms)
allNewPerms
- All new permission objects