|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.object.control.Permission
| Constructor Summary | |
protected |
Permission()
|
protected |
Permission(java.lang.String reason)
|
| Method Summary | |
static Permission |
allow(boolean allow)
Returns an Allow (Allow.DEFAULT) object if true; Veto (Veto.DEFAULT) if false; |
static Permission |
create(boolean allow)
Deprecated. |
static Permission |
create(boolean allow,
java.lang.String reasonAllowed,
java.lang.String reasonVeteod)
Returns a new Allow object if allow is true; a new Veto if false. |
java.lang.String |
getReason()
Returns the persmission's reason |
abstract boolean |
isAllowed()
Returns true if this object is giving permission. |
abstract boolean |
isVetoed()
Returns true if this object is NOT giving permission. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Permission()
protected Permission(java.lang.String reason)
| Method Detail |
public static final Permission create(boolean allow)
allow(boolean)public static final Permission allow(boolean allow)
public static final Permission create(boolean allow,
java.lang.String reasonAllowed,
java.lang.String reasonVeteod)
allow is true; a new Veto if false. The respective reason is
passed to the newly created object.
public java.lang.String getReason()
public abstract boolean isAllowed()
public abstract boolean isVetoed()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||