Package com.logicaldoc.core.security
Class MenuGroup
- java.lang.Object
-
- com.logicaldoc.core.security.MenuGroup
-
- All Implemented Interfaces:
Serializable
public class MenuGroup extends Object implements Serializable
This class represents security permissions for a group in relation to a menu- Version:
- 1.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getDelete()
long
getGroupId()
int
getManageSecurity()
int
getPermissions()
Parsing each permission and creates the integer representationint
getRename()
int
getWrite()
int
hashCode()
void
setDelete(int delete)
void
setGroupId(long groupId)
void
setManageSecurity(int manageSecurity)
void
setPermissions(int permissions)
Set each permission evaluating the given integer representation.void
setRename(int rename)
void
setWrite(int write)
-
-
-
Constructor Detail
-
MenuGroup
public MenuGroup()
-
MenuGroup
public MenuGroup(MenuGroup source)
-
MenuGroup
public MenuGroup(long groupId)
-
-
Method Detail
-
getManageSecurity
public int getManageSecurity()
-
setManageSecurity
public void setManageSecurity(int manageSecurity)
-
getDelete
public int getDelete()
-
setDelete
public void setDelete(int delete)
-
getRename
public int getRename()
-
setRename
public void setRename(int rename)
-
getGroupId
public long getGroupId()
-
getWrite
public int getWrite()
-
setGroupId
public void setGroupId(long groupId)
-
setWrite
public void setWrite(int write)
-
getPermissions
public int getPermissions()
Parsing each permission and creates the integer representation- Returns:
- Permissions settings as integer representation.
-
setPermissions
public void setPermissions(int permissions)
Set each permission evaluating the given integer representation.- Parameters:
permissions
- mask(the last slot is for the 'read' permission and it is not evaluated)
-
-