Package com.logicaldoc.core.security
Class Menu
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.Menu
- All Implemented Interfaces:
Serializable
,Comparable<Menu>
This class represents the key concept of security. A Menu not only models
menus but also it is used as an element to build hierarchies. With menugroups
you can associate groups to a given menu and grant some permissions. Also
setting the recurityRef you can specify another reference menu that contains
the security policies.
- Version:
- 1.0
- Author:
- Michael Scholz, Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final int
static final int
static final long
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new element, substituting a previous one with the same groupId.void
int
boolean
int
getIcon()
long
getId()
Unique identifier in the data storegetMenuGroup
(long groupId) long[]
getName()
long
int
int
getType()
void
setAutomation
(String automation) void
setDescription
(String description) void
setEnabled
(int enabled) void
void
setId
(long id) void
setMenuGroup
(long[] groups) Adds MenuGroup object given in a String array to the ArrayList of MenuGroups.void
setMenuGroups
(Set<MenuGroup> mgroup) void
void
setParentId
(long parentId) void
setPosition
(int position) void
setRoutineId
(Long routineId) void
setSecurityRef
(Long securityRef) void
setType
(int type) Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getLastModified, getRecordVersion, getTenantId, hashCode, setCreation, setDeleted, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
ROOT
public static final long ROOT- See Also:
-
ADMINISTRATION
public static final long ADMINISTRATION- See Also:
-
FRONTEND
public static final long FRONTEND- See Also:
-
SETTINGS
public static final long SETTINGS- See Also:
-
SECURITY
public static final long SECURITY- See Also:
-
MAINMENU
public static final long MAINMENU- See Also:
-
DOCUMENTS
public static final long DOCUMENTS- See Also:
-
SEARCH
public static final long SEARCH- See Also:
-
DASHBOARD
public static final long DASHBOARD- See Also:
-
MESSAGES
public static final long MESSAGES- See Also:
-
SESSIONS
public static final long SESSIONS- See Also:
-
VERSIONS
public static final long VERSIONS- See Also:
-
ALIASES
public static final long ALIASES- See Also:
-
PREVIEW
public static final long PREVIEW- See Also:
-
RATING
public static final long RATING- See Also:
-
PARAMETERS
public static final long PARAMETERS- See Also:
-
ADMIN_SESSIONS
public static final long ADMIN_SESSIONS- See Also:
-
LOGS
public static final long LOGS- See Also:
-
SUBSCRIPTIONS
public static final long SUBSCRIPTIONS- See Also:
-
ACCOUNT
public static final long ACCOUNT- See Also:
-
CONTACTS
public static final long CONTACTS- See Also:
-
CHAT
public static final long CHAT- See Also:
-
INTERFACE_DENSITY
public static final long INTERFACE_DENSITY- See Also:
-
CUSTOM_ACTIONS
public static final long CUSTOM_ACTIONS- See Also:
-
TYPE_DEFAULT
public static final int TYPE_DEFAULT- See Also:
-
TYPE_CUSTOM_ACTION
public static final int TYPE_CUSTOM_ACTION- See Also:
-
-
Constructor Details
-
Menu
public Menu()
-
-
Method Details
-
getId
public long getId()Description copied from class:PersistentObject
Unique identifier in the data store- Overrides:
getId
in classPersistentObject
- Returns:
- the unique identifier of this record
-
getParentId
public long getParentId() -
getIcon
-
getType
public int getType() -
getMenuGroups
-
clearMenuGroups
public void clearMenuGroups() -
setId
public void setId(long id) - Overrides:
setId
in classPersistentObject
-
setParentId
public void setParentId(long parentId) -
setIcon
-
setType
public void setType(int type) -
setMenuGroups
-
getMenuGroupIds
public long[] getMenuGroupIds() -
setMenuGroup
public void setMenuGroup(long[] groups) Adds MenuGroup object given in a String array to the ArrayList of MenuGroups.- Parameters:
groups
- array of group ids
-
addMenuGroup
Adds a new element, substituting a previous one with the same groupId.- Parameters:
mg
- the menu group
-
getMenuGroup
-
getDescription
-
setDescription
-
getSecurityRef
-
setSecurityRef
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Menu>
-
equals
- Overrides:
equals
in classPersistentObject
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getName
-
setName
-
getEnabled
public int getEnabled() -
setEnabled
public void setEnabled(int enabled) -
getRoutineId
-
setRoutineId
-
getAutomation
-
setAutomation
-