|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.security.ModulePermission
public final class ModulePermission
Indicates which permissions the user has for a specific module.
Constructor Summary | |
---|---|
protected |
ModulePermission(int moduleIdx)
Creates a new instance |
Method Summary | |
---|---|
void |
addPermission(Permission field)
Sets the permission for a specific field |
int |
getModuleIdx()
The module index. |
Permission |
getPermision(int fieldIdx)
|
boolean |
isAuthorized()
Checks if the user is allowed to see the module. |
boolean |
isAuthorized(DcField field)
Indicates if the user is authorized to view the field. |
boolean |
isEditingAllowed()
Checks if the user is allowed to make changes to items belonging to the module. |
void |
setModuleIdx(int moduleIdx)
Sets the module index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ModulePermission(int moduleIdx)
moduleIdx
- Method Detail |
---|
public final int getModuleIdx()
public final void setModuleIdx(int moduleIdx)
moduleIdx
- Module indexpublic final Permission getPermision(int fieldIdx)
public final void addPermission(Permission field)
field
- public final boolean isAuthorized(DcField field)
field
- public final boolean isAuthorized()
public final boolean isEditingAllowed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |