com.flexive.shared.security
Class PermissionSet

java.lang.Object
  extended by com.flexive.shared.security.PermissionSet
All Implemented Interfaces:
java.io.Serializable

public final class PermissionSet
extends java.lang.Object
implements java.io.Serializable

A concrete permission set for a given content instance. By definition, if such a permission object exists at least the read permission for the related object must have been set, so you cannot create this object without read permissions.

Version:
$Rev: 462 $
Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Constructor Summary
PermissionSet(boolean mayEdit, boolean mayRelate, boolean mayDelete, boolean mayExport, boolean mayCreate)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean isMayCreate()
           
 boolean isMayDelete()
           
 boolean isMayEdit()
           
 boolean isMayExport()
           
 boolean isMayRead()
           
 boolean isMayRelate()
           
 boolean isPermitted(ACL.Permission permission)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionSet

public PermissionSet(boolean mayEdit,
                     boolean mayRelate,
                     boolean mayDelete,
                     boolean mayExport,
                     boolean mayCreate)
Method Detail

isPermitted

public boolean isPermitted(ACL.Permission permission)

isMayRead

public boolean isMayRead()

isMayEdit

public boolean isMayEdit()

isMayRelate

public boolean isMayRelate()

isMayDelete

public boolean isMayDelete()

isMayExport

public boolean isMayExport()

isMayCreate

public boolean isMayCreate()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object