Package mc.core.model.cc
Class Permission
java.lang.Object
mc.core.model.cc.Permission
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
Entity representing the assignment of a Right to a ComplexEntity for a Principal, serving as access control
information for the ComplexEntity. The ComplexEntity must implement IRightManaged. Principal can either be User or a
UserGroup, meaning that all Users of this UserGroup have this Right on the entity. For locale dependent Rights the
locale must be given, for locale independent Rights the undefined locale is stored.
HrcEntities: If the Right is inherited from a parent set flag inherited to true and set the ComplexEntity that is the ancestor carrying the original Right as
Rights inclusion: Rights can include other Rights, for example includes the Right EDIT the Right READ in the same locale. Rights inclusion is coded in RightTypes. The application takes care only to store the highest including Right in the database to avoid redundant data.
HrcEntities: If the Right is inherited from a parent set flag inherited to true and set the ComplexEntity that is the ancestor carrying the original Right as
inheritedFrom.Rights inclusion: Rights can include other Rights, for example includes the Right EDIT the Right READ in the same locale. Rights inclusion is coded in RightTypes. The application takes care only to store the highest including Right in the database to avoid redundant data.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()booleangetRight()inthashCode()voidsetId(long id) voidsetInherited(boolean inherited) voidsetInheritedFrom(ComplexEntity inheritedFrom) voidvoidsetObject(ComplexEntity object) voidsetPrincipal(Principal principal) voidtoString()
-
Constructor Details
-
Permission
public Permission()
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getPrincipal
-
setPrincipal
-
getObject
- Returns:
- the ComplexEntity for which the Permission is
-
setObject
-
getInherited
public boolean getInherited() -
setInherited
public void setInherited(boolean inherited) -
getInheritedFrom
-
setInheritedFrom
-
getRight
-
setRight
-
getLocale
-
setLocale
-
equals
-
hashCode
public int hashCode() -
toString
-