Class Right

All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IEntity, ISortableEntity

@Entity public class Right extends SimpleEntity
Entity that serves as database representation for a RightType and holds the information if it is locale dependent.
See Also:
  • Field Details

    • USER_DEFINED_RIGHT

      public static final long USER_DEFINED_RIGHT
      used as synthetic id for display and select simulated right for user defined right
      See Also:
  • Constructor Details

    • Right

      public Right()
      default constructor
  • Method Details

    • getRightType

      public RightType getRightType()
    • setRightType

      public void setRightType(RightType rightType)
    • getLocaleDependent

      public boolean getLocaleDependent()
    • setLocaleDependent

      public void setLocaleDependent(boolean localeDependent)
    • isExcluded

      public boolean isExcluded()
    • setExcluded

      public void setExcluded(boolean excluded)
    • getAllowedEntityClasses

      public Set<String> getAllowedEntityClasses()
    • setAllowedEntityClasses

      public void setAllowedEntityClasses(List<String> entityClassNames)
    • getExcludedEntityClasses

      public Set<String> getExcludedEntityClasses()
    • setExcludedEntityClasses

      public void setExcludedEntityClasses(List<String> entityClassNames)
    • isAllowedFor

      public boolean isAllowedFor(IBaseEntity object)
    • isAllowedFor

      public boolean isAllowedFor(Class<? extends IBaseEntity> entityClass)
    • toString

      public String toString()
      Description copied from class: EntityBase
      for logging/debugging
      Overrides:
      toString in class EntityBase