|
Sonic Management API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IManagementSecurityConfigurator
This interface is used by administration clients to enable and configure the management security features:
| Method Summary | |
|---|---|
com.sonicsw.mf.common.dirconfig.IDirElement |
getDomainElement(boolean forUpdate)
Gets the element that contains the domain-wide settings. |
IManagementPermission[][] |
getManagementPermissions(java.lang.String[] paths,
java.lang.String type)
Return the management permissions for the given paths of the particular type ("configure" or "manage"). |
void |
removeAllManagementPermissions()
Remove all management permissions. |
void |
removeManagementPermissions(java.lang.String[] paths,
java.lang.String type)
Remove all manage or configure permissions for each path in paths. |
void |
removeManagementPermissions(java.lang.String[] paths,
java.lang.String type,
java.lang.String[][] principals)
Remove the manage or configure permissions in the corresponding principals array for each path in paths. |
void |
setDefaultManagementPermissions()
Set the global default manage and configure permissions for the Administrators group. |
void |
setDomainElement(com.sonicsw.mf.common.dirconfig.IDeltaDirElement element)
Applies a modification to the domain-wide settings element. |
void |
setManagementPermissions(java.lang.String[] paths,
java.lang.String type,
IManagementPermission[][] permissions)
Set management permissions. |
| Method Detail |
|---|
com.sonicsw.mf.common.dirconfig.IDirElement getDomainElement(boolean forUpdate)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
Although the configuration element containing domain-wide management security settings is available through this API, it is recommened that users configure the domain-wide settings through the Sonic Management Console or strictly follow the sample located at: <installdir>/MQ<version>/samples/Management/mgmtSecurityAPI/java
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if there is a problem accessing the underlying storage.
IManagementPermission[][] getManagementPermissions(java.lang.String[] paths,
java.lang.String type)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
Will throw a runtime ConfigurePermissionDeniedException if the calling user does not have IConfigurePermissionBit.ALLOW_READ permission on any of the paths.
paths - The logical names of folders or configurations (for "configure" permissions) or folders, containers or
components for "manage" permissions.type - "manage" or "configure", for manage or configure permissions.
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if a path is invalid, or there's a problem getting the permissions information.IManagementPermission,
IConfigureScopeBits,
IConfigurePermissionBits,
IManageScopeBits,
IManagePermissionBits
void removeAllManagementPermissions()
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if there's a problem updating the permissions information.
void removeManagementPermissions(java.lang.String[] paths,
java.lang.String type)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
Will throw a ConfigurePermissionDeniedException if the caller does not have IConfigurePermissionBits.ALLOW_SET_PERMISSIONS permission on any of the paths.
paths - The logical names of folders or configurations (for "configure" permissions) or folders, containers or components for "manage" permissions.type - "manage" or "configure", for manage or configure permissions.
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if a path is invalid, or there's a problem getting the permissions information.IManagementPermission,
IConfigureScopeBits,
IConfigurePermissionBits,
IManageScopeBits,
IManagePermissionBits
void removeManagementPermissions(java.lang.String[] paths,
java.lang.String type,
java.lang.String[][] principals)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException,
InvalidManagementPermissionException
Will throw a runtime ConfigurePermissionDeniedException if the caller does not have IConfigurePermissionBits.ALLOW_SET_PERMISSIONS permission on any of the paths.
paths - The logical names of folders or configurations (for "configure" permissions) or folders, containers or components for "manage" permissions.type - "manage" or "configure", for manage or configure permissions.principals - An array of array of principals for each path in paths. This method removes the permissions set for each principal.
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if a path is invalid, or there's a problem getting the permissions information.
InvalidManagementPermissionException - Thrown if a given principal does not have a permission on the associated path.IManagementPermission,
IConfigureScopeBits,
IConfigurePermissionBits,
IManageScopeBits,
IManagePermissionBits
void setDefaultManagementPermissions()
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if there's a problem updating the permissions information.
void setDomainElement(com.sonicsw.mf.common.dirconfig.IDeltaDirElement element)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException
Although the configuration element containing domain-wide management security settings is available through this API, it is recommened that users configure the domain-wide settings through the Sonic Management Console or strictly follow the sample located at: <installdir>/MQ<version>/samples/Management/mgmtSecurityAPI/java
element - The delta element to be applied to the DS.
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if there is a problem accessing the underlying storage
or the folder does not exist.
void setManagementPermissions(java.lang.String[] paths,
java.lang.String type,
IManagementPermission[][] permissions)
throws com.sonicsw.mf.common.dirconfig.DirectoryServiceException,
InvalidManagementPermissionException
For "manage" permissions, the path of components in containers is specified as /<folder1>/.../<foldern>/<ContainerName>:ID=<ComponentName>
Will throw a runtime ConfigurePermissionDeniedException if the caller does not have IConfigurePermissionBits.ALLOW_SET_PERMISSIONS permission on any of the paths.
paths - The logical names of folders or configurations (for "configure" permissions) or folders, containers or
components for "manage" permissions.type - "manage" or "configure", for manage or configure permissions.permissions - An array of permissions for each one of the paths.
com.sonicsw.mf.common.dirconfig.DirectoryServiceException - Thrown if a path is invalid, or there's a problem getting or modifying the permissions information.
InvalidPermissionException - Thrown if a scope specification is incorrect for the path, or a principal
does not exist in the global authentication domain.
InvalidManagementPermissionExceptionIManagementPermission,
IConfigureScopeBits,
IConfigurePermissionBits,
IManageScopeBits,
IManagePermissionBits
|
Sonic Management API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||