public class UserPermissions extends java.lang.Object implements IUserPermissions
IUserPermissions
interface. If you want to associate
permissioning information with a KeyMaster token, you must create instances of this class.Constructor and Description |
---|
UserPermissions()
Initializes a new instance of the
UserPermissions class. |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(ISubjectMapping mapping)
Adds a new subject mapping to the user's permissioning information.
|
void |
addPermission(IPermission permission)
Adds a new subject permission to the user's permissioning information.
|
java.lang.String |
toPermissionString()
Returns a string representation of the user's permissions.
|
java.lang.String |
toString()
Returns a String that represents this instance.
|
public UserPermissions()
UserPermissions
class.public void addPermission(IPermission permission)
IUserPermissions
Permissions are applied on a first match basis, and the matching process is in the order that the permissions
were added to the IUserPermissions
. As a result, you should add more specific permissions before
more general ones. For example, you should add a permission for /FX/GBPEUR before adding a permission for ^/FX.
addPermission
in interface IUserPermissions
permission
- The subject permission to add.public void addMapping(ISubjectMapping mapping)
IUserPermissions
Mappings are applied on a first match basis, and the matching process is in the order that the mappings were
added to the IUserPermissions
. As a result, you should add more specific mappings before more
general ones.
addMapping
in interface IUserPermissions
mapping
- The subject mapping to add.public java.lang.String toPermissionString()
IUserPermissions
toPermissionString
in interface IUserPermissions
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support