Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.database
Class DbPermissionsManager.PermissionsBundle

java.lang.Object
  extended by com.jivesoftware.base.database.DbPermissionsManager.PermissionsBundle
All Implemented Interfaces:
Cacheable, com.tangosol.io.ExternalizableLite, java.io.Serializable
Enclosing class:
DbPermissionsManager

public static class DbPermissionsManager.PermissionsBundle
extends java.lang.Object
implements Cacheable, com.tangosol.io.ExternalizableLite

Stores the full set of permissions for a permissions context (an objectType and an objectID).

See Also:
Serialized Form

Constructor Summary
DbPermissionsManager.PermissionsBundle()
          Constructor for internal use only.
DbPermissionsManager.PermissionsBundle(long anonymousAdditivePerms, long anonymousNegativePerms, long registeredAdditivePerms, long registeredNegativePerms, long[] additiveUserIDs, long[] negativeUserIDs, long[] additiveUserPerms, long[] negativeUserPerms, long[] additiveGroupIDs, long[] negativeGroupIDs, long[] additiveGroupPerms, long[] negativeGroupPerms)
          Creates a new permissions bundle.
 
Method Summary
 long getAnonymousPerms(PermissionType permissionType)
           
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 long getGroupPerms(long groupID, PermissionType permissionType)
           
 long[] getGroupsWithPerm(PermissionType permissionType, long permission)
           
 long getRegisteredPerms(PermissionType permissionType)
           
 long getUserPerms(long userID, PermissionType permissionType)
           
 long[] getUsersWithPerm(PermissionType permissionType, long permission)
           
 void readExternal(java.io.DataInput in)
           
 void writeExternal(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbPermissionsManager.PermissionsBundle

public DbPermissionsManager.PermissionsBundle(long anonymousAdditivePerms,
                                              long anonymousNegativePerms,
                                              long registeredAdditivePerms,
                                              long registeredNegativePerms,
                                              long[] additiveUserIDs,
                                              long[] negativeUserIDs,
                                              long[] additiveUserPerms,
                                              long[] negativeUserPerms,
                                              long[] additiveGroupIDs,
                                              long[] negativeGroupIDs,
                                              long[] additiveGroupPerms,
                                              long[] negativeGroupPerms)
Creates a new permissions bundle. The corresponding array lengths must match.

Parameters:
anonymousAdditivePerms - value for anonymous additive permissions
anonymousNegativePerms - value for anonymous negative permissions
registeredAdditivePerms - value for registered user additive permissions
registeredNegativePerms - value for registered user negative permissions
additiveUserIDs - an array of userID's that have additive permissions.
negativeUserIDs - an array of userID's that have negative permissions
additiveUserPerms - an array of the additive permission values for users.
negativeUserPerms - an array of the negative permission values for users.
additiveGroupPerms - an array of the additive permission values for groups.
negativeGroupPerms - an array of the negative permission values for groups.

DbPermissionsManager.PermissionsBundle

public DbPermissionsManager.PermissionsBundle()
Constructor for internal use only.

Method Detail

readExternal

public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

getAnonymousPerms

public long getAnonymousPerms(PermissionType permissionType)

getRegisteredPerms

public long getRegisteredPerms(PermissionType permissionType)

getUserPerms

public long getUserPerms(long userID,
                         PermissionType permissionType)

getGroupPerms

public long getGroupPerms(long groupID,
                          PermissionType permissionType)

getUsersWithPerm

public long[] getUsersWithPerm(PermissionType permissionType,
                               long permission)

getGroupsWithPerm

public long[] getGroupsWithPerm(PermissionType permissionType,
                                long permission)

getCachedSize

public int getCachedSize()
Description copied from interface: Cacheable
Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.

Specified by:
getCachedSize in interface Cacheable
Returns:
the size of the Object in bytes.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.