|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tibco.tibjms.admin.Permissions
This class represents a set of permissions on destinations. Permissions objects are used with ACLEntries to represent the user-level and optionally administrative permissions that a principal has on a destination.
Field Summary | |
static long |
BROWSE
Browse permission for a queue. |
static long |
BROWSE_PERMISSION
Browse permission for a queue, deprecated. |
static long |
CREATE
Administrative permission to create destination. |
static long |
DELETE
Administrative permission to delete destination. |
static long |
DURABLE
Permission to create a durable subscriber for a topic. |
static long |
DURABLE_PERMISSION
Permission to create a durable subscriber for a topic, deprecated. |
static long |
MODIFY
Administrative permission to modify destination. |
static long |
PUBLISH
Publish permission for a topic. |
static long |
PUBLISH_PERMISSION
Publish permission for a topic, deprecated. |
static long |
PURGE
Administrative permission to purge destination. |
static long |
RECEIVE
Receive permission for a queue. |
static long |
RECEIVE_PERMISSION
Receive permission for a queue, deprecated. |
static long |
SEND
Send permission for a queue. |
static long |
SEND_PERMISSION
Send permission for a queue, deprecated. |
static long |
SUBSCRIBE
Subscribe permission for a topic. |
static long |
SUBSCRIBE_PERMISSION
Subscribe permission for a topic, deprecated. |
static long |
USE_DURABLE
Permission to use a durable subscription that already exists on the EMS server. |
static long |
VIEW
Administrative permission to view destination. |
Constructor Summary | |
Permissions()
Default constructor which creates empty set of permissions. |
|
Permissions(long perms)
Creates given set of permissions. |
Method Summary | |
boolean |
hasPermission(long perm)
Determine if the given permission is present in these Permissions. |
boolean |
isEmpty()
Indicates whether or not the Permissions object has any permissions set. |
void |
setPermission(long perm,
boolean grant)
Set or unset given permissions in this set of permissions. |
java.lang.String |
toString()
Generate a string representation of this Permissions. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long SEND
public static final long SEND_PERMISSION
public static final long RECEIVE
public static final long RECEIVE_PERMISSION
public static final long BROWSE
public static final long BROWSE_PERMISSION
public static final long PUBLISH
public static final long PUBLISH_PERMISSION
public static final long SUBSCRIBE
public static final long SUBSCRIBE_PERMISSION
public static final long DURABLE
public static final long DURABLE_PERMISSION
public static final long USE_DURABLE
public static final long VIEW
public static final long CREATE
public static final long DELETE
public static final long MODIFY
public static final long PURGE
Constructor Detail |
public Permissions()
public Permissions(long perms)
perms
- the permissions.Method Detail |
public boolean isEmpty()
public boolean hasPermission(long perm)
perm
- permissions
public void setPermission(long perm, boolean grant)
perm
- permissionsgrant
- true if permissions should be added to the set, false if they should be removedpublic java.lang.String toString()
|
TIBCO Enterprise Message Service Version 4.3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |