public class Permissions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Permissions()
Default constructor which creates empty set of permissions.
|
Permissions(long perms)
Creates given set of permissions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasInheritedPermission(long perm)
Determine if the given permission is present in the Inherited Permissions.
|
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.
|
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
public Permissions()
public Permissions(long perms)
perms
- the permissions.public boolean isEmpty()
public boolean hasPermission(long perm)
perm
- permissionspublic void setPermission(long perm, boolean grant)
perm
- permissionsgrant
- true if permissions should be added to the set, false if they should be removedpublic boolean hasInheritedPermission(long perm)
perm
- permissionspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © Cloud Software Group, Inc. All rights reserved