com.zphinx.spine.security
Class MemberPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by com.zphinx.spine.security.SpinePermission
              extended by com.zphinx.spine.security.MemberPermission
All Implemented Interfaces:
Serializable, Cloneable, Guard

public class MemberPermission
extends SpinePermission
implements Serializable

A MemberPermission object encapsulates the logic behind the permission system which dictates the properties of principals and roles registered within the spine framework.

Version:
$Revision: 1.9 $ $Date: 2008/06/12 22:35:56 $

copyright © Zphinx Software Solutions

Author:
David Ladapo
See Also:
Group, User, Administrator, Application, Serialized Form

Field Summary
 
Fields inherited from class com.zphinx.spine.security.SpinePermission
PERMISSION_ADMINISTRATOR, PERMISSION_GROUP, PERMISSION_PUBLIC_USER, PERMISSION_USER
 
Constructor Summary
MemberPermission()
          Default Constructor
MemberPermission(int memberType)
          Public constructor for the MemberPermission object
 
Method Summary
 boolean isAdmin()
          Return the maintenance isAdmin to be taken by this MemberPermission object.
 boolean isSuperUser()
          Return the group flag of this MemberPermission.
 boolean isUser()
          Return the userFlag of this MemberPermission.
 
Methods inherited from class com.zphinx.spine.security.SpinePermission
checkGuard, clone, getActions, getAdminNames, getExecuteFlag, getGroupNames, getIdTag, getOwnerObjectType, getPermissionLevel, getPermit, getReadFlag, getWriteFlag, setAdminNames, setGroupNames, setIdTag, setOwnerObjectType, setPermissionLevel, setPermissionLevel
 
Methods inherited from class java.security.BasicPermission
equals, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
getName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberPermission

public MemberPermission()
Default Constructor


MemberPermission

public MemberPermission(int memberType)
Public constructor for the MemberPermission object

Parameters:
memberType - The type of member whose permission is been instantiated
Method Detail

isAdmin

public boolean isAdmin()
Return the maintenance isAdmin to be taken by this MemberPermission object.

Returns:
boolean The maintenance isAdmin to be taken by this MemberPermission object.

isUser

public boolean isUser()
Return the userFlag of this MemberPermission.

Returns:
boolean The userFlag of this MemberPermission.

isSuperUser

public boolean isSuperUser()
Return the group flag of this MemberPermission.

Returns:
boolean The group flag of this MemberPermission.