public interface Importer
Modifier and Type | Method and Description |
---|---|
void |
backout(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> allNewPerms)
Backs out the import operation.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
deleteUnreferencedUsers()
Delete unreferenced users from organization after group replacements.
|
void |
executeImport(javax.xml.registry.infomodel.RegistryObject ro)
Re-create security layer data for a single Resource Access asset.
|
void |
importGroupUserRelationships(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> users,
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> groups)
This method is used to establish Group-User relationships during import operation.
|
void |
importGRUPRelationships(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> permissions,
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> groups,
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> users,
java.util.Collection<javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.RegistryObject ro) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.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.javax.xml.registry.JAXRException
- if a JAXR error occurscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security error occursjava.util.Collection<javax.xml.registry.infomodel.RegistryObject> deleteUnreferencedUsers() throws com.softwareag.security.jaas.principals.SagGeneralSecurityException, javax.xml.registry.JAXRException
RegistryObject
instances) which were failed to delete.com.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityjavax.xml.registry.JAXRException
- 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<javax.xml.registry.infomodel.RegistryObject> permissions, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> groups, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> users, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> roles) throws com.softwareag.security.jaas.principals.SagGeneralSecurityException, javax.xml.registry.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 establishedcom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityjavax.xml.registry.JAXRException
- If a JAXR related error occurs while trying to obtain the registry objectsvoid importGroupUserRelationships(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> users, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> groups) throws javax.xml.registry.JAXRException, com.softwareag.security.jaas.principals.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 establishedjavax.xml.registry.JAXRException
- If a JAXR related error occurs while trying to obtain the registry objectscom.softwareag.security.jaas.principals.SagGeneralSecurityException
- If a security related error occurs while trying to access ino:securityvoid backout(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> allNewPerms)
allNewPerms
- All new permission objects