|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An implementation of this interface must be provided to the persistence manager. If you don't need user rights, use the default implementation (which allows everything).
DefaultPersistenceRights.| Method Summary | |
boolean |
canAdd(java.lang.String userNameParam,
java.lang.Class valueObjectClassParam)
Discover whether or not the owner of the current persistence session has the right to add a value object of the given type. |
boolean |
canAmend(java.lang.String userNameParam,
ValueObject valueObjectParam)
Discover whether or not the owner of the current persistence session has the right to change this value object generally. |
boolean |
canAmend(java.lang.String userNameParam,
ValueObject valueObjectParam,
java.lang.String fieldNameParam)
Discover whether or not the owner of the current persistence session has the right to change a specific field on this value object. |
boolean |
canRemove(java.lang.String userNameParam,
ValueObject valueObjectParam)
Discover whether or not the owner of the current persistence session has the right to remove this value object. |
| Method Detail |
public boolean canAdd(java.lang.String userNameParam,
java.lang.Class valueObjectClassParam)
userNameParam - identifies the current user. May not be relevant to
all system (when it can be null).valueObjectClassParam - class of value object to be added to the
system.
true if the current persistence session may add an
object of this type, otherwise false.
public boolean canAmend(java.lang.String userNameParam,
ValueObject valueObjectParam)
Discover whether or not the owner of the current persistence session has the right to change this value object generally.
Note this
method can return true but the field-name-specific version
of canAmend
returns false, in which case some fields can be changed but
not all.
userNameParam - identifies the current user. May not be relevant to
all system (when it can be null).valueObjectParam - value object to be amended.
true if the current persistence session may amend
the object, otherwise false.
public boolean canAmend(java.lang.String userNameParam,
ValueObject valueObjectParam,
java.lang.String fieldNameParam)
Discover whether or not the owner of the current persistence session has the right to change a specific field on this value object.
Note this
method can return false but the generic-specific version
of canAmend
returns true, in which case some fields can be changed but
not the one specified by fieldNameParam.
userNameParam - identifies the current user. May not be relevant to
all system (when it can be null).valueObjectParam - value object to be amended.fieldNameParam - name of the field to be changed on this value
object.
true if the current persistence session may amend
this field on this object, otherwise false.
public boolean canRemove(java.lang.String userNameParam,
ValueObject valueObjectParam)
Discover whether or not the owner of the current persistence session has the right to remove this value object.
userNameParam - identifies the current user. May not be relevant to
all system (when it can be null).valueObjectParam - value object to be removed.
true if the current persistence session may remove
this object, otherwise false.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||