public class RolePermissions extends BaseManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
void |
addPermission(java.lang.String sPermission)
Adds a permission to all objects managed by this instance.
|
void |
addPermission(java.lang.String catalogName,
java.lang.String sPermission)
Adds a permission for the specified catalog object.
|
java.util.List |
getObjectNames()
Returns the list of objects managed by this instance.
|
java.util.List<java.lang.String> |
getPermissions()
Returns the permissions given for all objects
|
java.util.List<java.lang.String> |
getPermissions(java.lang.String catalogName)
Returns a list of assigned permissions for the given catalog object
|
void |
removePermission(java.lang.String sPermission)
Removes the specified permissions from all objects.
|
void |
removePermission(java.lang.String catalogName,
java.lang.String sPermission)
Removes a permission from the specified catalog object.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.util.List getObjectNames()
public void addPermission(java.lang.String sPermission)
sPermission
- permission to addpublic void removePermission(java.lang.String sPermission)
sPermission
- permission to removepublic java.util.List<java.lang.String> getPermissions()
Strings
public void addPermission(java.lang.String catalogName, java.lang.String sPermission)
catalogName
- the object to add the permission forsPermission
- the permission to addpublic void removePermission(java.lang.String catalogName, java.lang.String sPermission)
catalogName
- the object to remove the permission fromsPermission
- the permission to removepublic java.util.List<java.lang.String> getPermissions(java.lang.String catalogName)
catalogName
- the catalog to get the permissions forwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.