com.waveset.object
Class Permission
java.lang.Object
com.waveset.object.Permission
- public class Permission
- extends java.lang.Object
A Permission is ...
Field Summary |
static java.lang.String |
code_id
|
Constructor Summary |
Permission()
|
Permission(java.lang.String type,
Right right)
|
Permission(java.lang.String type,
Right[] rights)
|
Permission(java.lang.String type,
Right[] rights,
boolean init)
|
Permission(java.lang.String type,
Right[] rights,
ObjectRef objectRef)
|
Permission(java.lang.String type,
Right right,
boolean init)
|
Permission(Type type,
Right right)
|
Permission(Type type,
Right[] rights)
|
Permission(Type type,
Right[] rights,
boolean init)
|
Permission(Type type,
Right[] rights,
ObjectRef objectRef)
|
Permission(Type type,
Right[] rights,
PersistentObject object)
|
Permission(Type type,
Right[] rights,
java.lang.String id)
|
Permission(Type type,
Right right,
boolean init)
|
Permission(Type type,
Right right,
ObjectRef objectRef)
|
Permission(Type type,
Right right,
PersistentObject object)
|
Permission(Type type,
Right right,
java.lang.String id)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
Permission
public Permission()
Permission
public Permission(Type type,
Right right)
throws WavesetException
Permission
public Permission(Type type,
Right[] rights)
throws WavesetException
Permission
public Permission(Type type,
Right right,
PersistentObject object)
throws WavesetException
Permission
public Permission(Type type,
Right[] rights,
PersistentObject object)
throws WavesetException
Permission
public Permission(Type type,
Right right,
ObjectRef objectRef)
throws WavesetException
Permission
public Permission(Type type,
Right[] rights,
ObjectRef objectRef)
throws WavesetException
Permission
public Permission(java.lang.String type,
Right[] rights,
ObjectRef objectRef)
throws WavesetException
Permission
public Permission(Type type,
Right right,
java.lang.String id)
throws WavesetException
Permission
public Permission(Type type,
Right[] rights,
java.lang.String id)
throws WavesetException
Permission
public Permission(Type type,
Right right,
boolean init)
Permission
public Permission(Type type,
Right[] rights,
boolean init)
Permission
public Permission(java.lang.String type,
Right right,
boolean init)
Permission
public Permission(java.lang.String type,
Right[] rights,
boolean init)
Permission
public Permission(java.lang.String type,
Right right)
throws WavesetException
Permission
public Permission(java.lang.String type,
Right[] rights)
toString
public java.lang.String toString()
getTypeName
public java.lang.String getTypeName()
getType
public Type getType()
getRights
public Right[] getRights()
getObjectGroupRefs
public ObjectRef[] getObjectGroupRefs()
getObjectGroups
public ObjectGroup[] getObjectGroups()
throws WavesetException
- Throws:
WavesetException
getObjectRefs
public ObjectRef[] getObjectRefs()
getObjects
public PersistentObject[] getObjects()
throws WavesetException
- Throws:
WavesetException
getDayTime
public java.lang.String getDayTime()
hasEffectiveRight
public boolean hasEffectiveRight(Right r)
throws WavesetException
- Throws:
WavesetException
setType
public void setType(Type type)
throws WavesetException
- Throws:
WavesetException
setTypeName
public void setTypeName(java.lang.String name)
- Set the type by name. Could check valid rights here, but that
would require access to the AuthorizationTypes object. This
should be handled in the GUI anyway.
setRights
public void setRights(Right[] rights)
throws WavesetException
- Throws:
WavesetException
setObjectGroupRefs
public void setObjectGroupRefs(ObjectRef[] objectGroupRefs)
setObjectRefs
public void setObjectRefs(ObjectRef[] objectRefs)
setDayTime
public void setDayTime(java.lang.String daytime)
setPrincipal
public void setPrincipal(Principal principal)
addRight
public void addRight(Right right)
throws WavesetException
- Throws:
WavesetException
addObjectGroupRef
public void addObjectGroupRef(ObjectRef objectGroup)
addObjectRef
public void addObjectRef(ObjectRef object)
clear
public void clear()
clonePermission
public Permission clonePermission()
throws WavesetException
- Throws:
WavesetException
empty
public boolean empty()
merge
public void merge(Permission perm)
throws WavesetException
- Throws:
WavesetException
equals
public boolean equals(java.lang.Object obj)
toXml
public void toXml(java.lang.StringBuffer b,
int indent)