com.pcbsys.nirvana.base.nStorePermission Class Reference

Base implementation of a permission entry that provides ability for setting specific Channel/Queue security settings. More...

Public Member Functions

boolean canGetLastEventId ()
 Checks whether the specified user has permission to access last event id. More...
 
boolean canManage ()
 Checks whether the specified user has permission to add and remove other permissions. More...
 
boolean canPop ()
 Checks whether the specified user has permission to pop from a Queue. More...
 
boolean canPurge ()
 Checks whether the specified user can purge events from the Queue/Channel. More...
 
boolean canRead ()
 Checks whether the specified user has permission to read from a destination. More...
 
boolean canUseNamedSubscription ()
 Checks whether the specified user has permission to to use named subscription. More...
 
boolean canWrite ()
 Checks whether the specified user has permission to write to a destination. More...
 
String getHost ()
 Returns the host name for which the permission entry has been created. More...
 
String getName ()
 Returns the name of the group or the user for this permission entry. More...
 
long getPermissions ()
 Returns the permissions to be applied on a Channel/Queue as long. More...
 
String getSubject ()
 Returns the complete subject in the format user. More...
 
boolean hasFullPrivileges ()
 Checks whether the specified user has full privileges for the Queue/Channel. More...
 
boolean isGroup ()
 Checks whether the current instance containing information about the permissions to be set on a Queue/Channel has been created for a group or for a single user. More...
 

Detailed Description

Base implementation of a permission entry that provides ability for setting specific Channel/Queue security settings.

Member Function Documentation

boolean com.pcbsys.nirvana.base.nStorePermission.canGetLastEventId ( )

Checks whether the specified user has permission to access last event id.

This is applicable only for Channels.

Returns
true if the user can access last event id, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canManage ( )

Checks whether the specified user has permission to add and remove other permissions.

Returns
true if the user has manage permissions, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canPop ( )

Checks whether the specified user has permission to pop from a Queue.

This is applicable only for Queues.

Returns
true if the user can pop events, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canPurge ( )

Checks whether the specified user can purge events from the Queue/Channel.

Returns
true if the user has purge permission, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canRead ( )

Checks whether the specified user has permission to read from a destination.

Read permission is equivalent to subscribe for a Channel and peek for a Queue respectively.

Returns
true if the user has permission to read, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canUseNamedSubscription ( )

Checks whether the specified user has permission to to use named subscription.

This is applicable only for Channels.

Returns
true if the user is authorized to use named subscriptions, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.canWrite ( )

Checks whether the specified user has permission to write to a destination.

Write permission is equivalent to publish for a Channel and push for a Queue respectively.

Returns
true if the user has permission to write, false otherwise
String com.pcbsys.nirvana.base.nStorePermission.getHost ( )

Returns the host name for which the permission entry has been created.

Returns
the name of the host
String com.pcbsys.nirvana.base.nStorePermission.getName ( )

Returns the name of the group or the user for this permission entry.

Returns
group or user name
long com.pcbsys.nirvana.base.nStorePermission.getPermissions ( )

Returns the permissions to be applied on a Channel/Queue as long.

Returns
permission mask to be set on a Channel/Queue
String com.pcbsys.nirvana.base.nStorePermission.getSubject ( )

Returns the complete subject in the format user.

If the permission entry is created for group, the name of the group is returned.

Returns
String representation of the subject
boolean com.pcbsys.nirvana.base.nStorePermission.hasFullPrivileges ( )

Checks whether the specified user has full privileges for the Queue/Channel.

Returns
true if the user has full privileges set, false otherwise
boolean com.pcbsys.nirvana.base.nStorePermission.isGroup ( )

Checks whether the current instance containing information about the permissions to be set on a Queue/Channel has been created for a group or for a single user.

Returns
true if the permission entry has been created for a group, false otherwise