Package com.tibco.tibjms.admin
Class AdminPermissions
- java.lang.Object
- 
- com.tibco.tibjms.admin.AdminPermissions
 
- 
 public class AdminPermissions extends java.lang.ObjectThis class represents a set of positive and negative administrative permissions. Negative permissions are only returned when the entry is returned from the server. In grant() and revoke() methods only positive permissions are used to specify the set of permissions which should be granted or revoked. Applications normally use objects returned as a result of a server query to obtain administrative permissions. If any permissions have to be changed, a new AdminPermission object should be created.
- 
- 
Field SummaryFields Modifier and Type Field Description static longALLstatic longCHANGE_ACLstatic longCHANGE_ADMIN_ACLstatic longCHANGE_BRIDGEstatic longCHANGE_CHANNELDeprecated.As of release 8.3static longCHANGE_CONNECTIONstatic longCHANGE_DURABLEstatic longCHANGE_FACTORYstatic longCHANGE_GROUPstatic longCHANGE_MESSAGEstatic longCHANGE_ROUTEstatic longCHANGE_SERVERstatic longCHANGE_USERstatic longCREATE_DESTINATIONstatic longDELETE_DESTINATIONstatic longMODIFY_DESTINATIONstatic longPROTECT1static longPROTECT2static longPROTECT3static longPROTECT4static longPURGE_DESTINATIONstatic longPURGE_DURABLEstatic longSHUTDOWN_SERVERstatic longVIEW_ACLstatic longVIEW_ADMIN_ACLstatic longVIEW_ALLstatic longVIEW_BRIDGEstatic longVIEW_CHANNELDeprecated.As of release 8.3static longVIEW_CONNECTIONstatic longVIEW_DESTINATIONstatic longVIEW_DURABLEstatic longVIEW_FACTORYstatic longVIEW_GROUPstatic longVIEW_MESSAGEstatic longVIEW_ROUTEstatic longVIEW_SERVERstatic longVIEW_USER
 - 
Constructor SummaryConstructors Constructor Description AdminPermissions()Default constructor which creates empty set of permissions.AdminPermissions(long positive_perms)Creates a given set of positive permissions.AdminPermissions(long positive_perms, long negative_perms)Creates a given sets of positive and negative permissions.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasInheritedPermission(long perm)Determine if the given permission is present in the Inherited Permissions.booleanhasNegativePermission(long perm)Indicates whether or not given negative permissions are set.booleanhasPositivePermission(long perm)Indicates whether or not given positive permissions are set.booleanisEmpty()Indicates whether or not this object has no negative or positive permissions set.voidsetPermission(long perm, boolean grant)Set or unset positive permissions.java.lang.StringtoString()Generate a string representation of this AdminPermissions.
 
- 
- 
- 
Field Detail- 
VIEW_FACTORYpublic static final long VIEW_FACTORY - See Also:
- Constant Field Values
 
 - 
CHANGE_FACTORYpublic static final long CHANGE_FACTORY - See Also:
- Constant Field Values
 
 - 
VIEW_ROUTEpublic static final long VIEW_ROUTE - See Also:
- Constant Field Values
 
 - 
CHANGE_ROUTEpublic static final long CHANGE_ROUTE - See Also:
- Constant Field Values
 
 - 
VIEW_CONNECTIONpublic static final long VIEW_CONNECTION - See Also:
- Constant Field Values
 
 - 
CHANGE_CONNECTIONpublic static final long CHANGE_CONNECTION - See Also:
- Constant Field Values
 
 - 
VIEW_DURABLEpublic static final long VIEW_DURABLE - See Also:
- Constant Field Values
 
 - 
CHANGE_DURABLEpublic static final long CHANGE_DURABLE - See Also:
- Constant Field Values
 
 - 
PURGE_DURABLEpublic static final long PURGE_DURABLE - See Also:
- Constant Field Values
 
 - 
VIEW_USERpublic static final long VIEW_USER - See Also:
- Constant Field Values
 
 - 
CHANGE_USERpublic static final long CHANGE_USER - See Also:
- Constant Field Values
 
 - 
VIEW_GROUPpublic static final long VIEW_GROUP - See Also:
- Constant Field Values
 
 - 
CHANGE_GROUPpublic static final long CHANGE_GROUP - See Also:
- Constant Field Values
 
 - 
VIEW_ACLpublic static final long VIEW_ACL - See Also:
- Constant Field Values
 
 - 
CHANGE_ACLpublic static final long CHANGE_ACL - See Also:
- Constant Field Values
 
 - 
VIEW_DESTINATIONpublic static final long VIEW_DESTINATION - See Also:
- Constant Field Values
 
 - 
CREATE_DESTINATIONpublic static final long CREATE_DESTINATION - See Also:
- Constant Field Values
 
 - 
DELETE_DESTINATIONpublic static final long DELETE_DESTINATION - See Also:
- Constant Field Values
 
 - 
MODIFY_DESTINATIONpublic static final long MODIFY_DESTINATION - See Also:
- Constant Field Values
 
 - 
PURGE_DESTINATIONpublic static final long PURGE_DESTINATION - See Also:
- Constant Field Values
 
 - 
VIEW_MESSAGEpublic static final long VIEW_MESSAGE - See Also:
- Constant Field Values
 
 - 
CHANGE_MESSAGEpublic static final long CHANGE_MESSAGE - See Also:
- Constant Field Values
 
 - 
VIEW_SERVERpublic static final long VIEW_SERVER - See Also:
- Constant Field Values
 
 - 
CHANGE_SERVERpublic static final long CHANGE_SERVER - See Also:
- Constant Field Values
 
 - 
SHUTDOWN_SERVERpublic static final long SHUTDOWN_SERVER - See Also:
- Constant Field Values
 
 - 
VIEW_ADMIN_ACLpublic static final long VIEW_ADMIN_ACL - See Also:
- Constant Field Values
 
 - 
CHANGE_ADMIN_ACLpublic static final long CHANGE_ADMIN_ACL - See Also:
- Constant Field Values
 
 - 
VIEW_BRIDGEpublic static final long VIEW_BRIDGE - See Also:
- Constant Field Values
 
 - 
CHANGE_BRIDGEpublic static final long CHANGE_BRIDGE - See Also:
- Constant Field Values
 
 - 
VIEW_CHANNEL@Deprecated public static final long VIEW_CHANNEL Deprecated.As of release 8.3- See Also:
- Constant Field Values
 
 - 
CHANGE_CHANNEL@Deprecated public static final long CHANGE_CHANNEL Deprecated.As of release 8.3- See Also:
- Constant Field Values
 
 - 
PROTECT1public static final long PROTECT1 - See Also:
- Constant Field Values
 
 - 
PROTECT2public static final long PROTECT2 - See Also:
- Constant Field Values
 
 - 
PROTECT3public static final long PROTECT3 - See Also:
- Constant Field Values
 
 - 
PROTECT4public static final long PROTECT4 - See Also:
- Constant Field Values
 
 - 
VIEW_ALLpublic static final long VIEW_ALL - See Also:
- Constant Field Values
 
 - 
ALLpublic static final long ALL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
AdminPermissionspublic AdminPermissions() Default constructor which creates empty set of permissions.
 - 
AdminPermissionspublic AdminPermissions(long positive_perms) Creates a given set of positive permissions.- Parameters:
- positive_perms- the administrative permissions.
 
 - 
AdminPermissionspublic AdminPermissions(long positive_perms, long negative_perms)Creates a given sets of positive and negative permissions.- Parameters:
- positive_perms- the positive permissions.
- negative_perms- the negative permissions.
 
 
- 
 - 
Method Detail- 
isEmptypublic boolean isEmpty() Indicates whether or not this object has no negative or positive permissions set.- Returns:
- a boolean to indicate whether or not both the positive and negative permissions are not set.
 
 - 
hasPositivePermissionpublic boolean hasPositivePermission(long perm) Indicates whether or not given positive permissions are set.- Parameters:
- perm- the positive permissions to be checked.
- Returns:
- boolean to indicate whether or not the positive permissions are set.
 
 - 
setPermissionpublic void setPermission(long perm, boolean grant)Set or unset positive permissions.- Parameters:
- perm- positive permissions to be granted or revoked.
- grant- true if the permissions are to be granted and false if the permissions are to be revoked.
 
 - 
hasNegativePermissionpublic boolean hasNegativePermission(long perm) Indicates whether or not given negative permissions are set.- Parameters:
- perm- the negative permissions to be checked.
- Returns:
- boolean to indicate whether or not the negative permissions are set.
 
 - 
hasInheritedPermissionpublic boolean hasInheritedPermission(long perm) Determine if the given permission is present in the Inherited Permissions.- Parameters:
- perm- permissions
- Returns:
- true if given permissions are all present in inherited permissions
 
 - 
toStringpublic java.lang.String toString() Generate a string representation of this AdminPermissions.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- String representation of this AdminPermissions.
 
 
- 
 
-