Interface IRoleManager
- All Superinterfaces:
IDisposable, IEntity
Manages the roles.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRole(String roleName) Deletes a role.intduplicateRole(String roleName, RoleCreateRequest request) Duplicates the current role.getAgentPermissions(String roleName) Returns the permissions of a role over agents.getCampaignPermissions(String roleName) Returns the permissions of a role over campaigns.getCategoryPermissions(String roleName) Returns the permissions of a role over categories.getDirectoryPermissions(String roleName) Returns the permissions of a role over directories.getDocumentPermissions(String roleName) Returns the permissions of a role over documents.Returns the instance.getRoleCursor(int cursorId) Gets a role cursor open in the instance.Returns the role cursors open in the instance.getRoleDataById(int roleId) Returns aRoleDataobject with data about the role.getRoleDataByName(String roleName) Returns aRoleDataobject with data about the role.String[]Retrieves the list of role names.getRolePermissions(String roleName) Returns the permissions of a role over roles.Gets the table schema of the role.getSavedReportPermissions(String roleName) Returns the permissions of a role over saved reports.getServicePermissions(String roleName) Returns the permissions of a role over services.getSitePermissions(String roleName) Returns the permissions of a role over sites.getTeamPermissions(String roleName) Returns the permissions of a role over teams.getWorkflowDefinitionPermissions(String roleName) Returns the permissions of a role over workflow definitions.newRoleCursor(String[] columns, String sql) Opens a role cursor.tryGetRoleCursor(int cursorId) Gets a role cursor open in the instance or null if it doesn't exist.voidupdateRole(String roleName, RoleUpdateRequest request) Updates a role.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
deleteRole
-
duplicateRole
int duplicateRole(String roleName, RoleCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Duplicates the current role.- Parameters:
roleName- Name of the role to duplicate.request- Role create request.- Returns:
- Identifier of the duplicated role.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentPermissions
RoleAgentPermission[] getAgentPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over agents.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCampaignPermissions
RoleCampaignPermission[] getCampaignPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over campaigns.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCategoryPermissions
RoleCategoryPermission[] getCategoryPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over categories.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDirectoryPermissions
RoleDirectoryPermission[] getDirectoryPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over directories.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDocumentPermissions
RoleDocumentPermission[] getDocumentPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over documents.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstance
-
getRoleCursor
IRoleCursor getRoleCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a role cursor open in the instance.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IRoleCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getRoleCursors
Returns the role cursors open in the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getRoleDataById
-
getRoleDataByName
-
getRoleNames
-
getRolePermissions
RolePermission[] getRolePermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over roles.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getRoleTableSchema
TableSchema getRoleTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSavedReportPermissions
RoleSavedReportPermission[] getSavedReportPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over saved reports.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServicePermissions
RoleServicePermission[] getServicePermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over services.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSitePermissions
RoleSitePermission[] getSitePermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over sites.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getTeamPermissions
RoleTeamPermission[] getTeamPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over teams.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getWorkflowDefinitionPermissions
RoleWorkflowDefinitionPermission[] getWorkflowDefinitionPermissions(String roleName) throws Exception, altitude.integrationServer.exceptions.ISException Returns the permissions of a role over workflow definitions.- Parameters:
roleName- Name of the role.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newRoleCursor
IRoleCursor newRoleCursor(String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a role cursor.- Parameters:
columns- Columns to fetch.sql- SQL.- Returns:
- The
IRoleCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
tryGetRoleCursor
IRoleCursor tryGetRoleCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a role cursor open in the instance or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IRoleCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateRole
void updateRole(String roleName, RoleUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a role.- Parameters:
roleName- Name of the role.request- Role update request.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-