Class SecurityObject

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.core.uaa.impl.SecurityObject
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>
Direct Known Subclasses:
Grant, Role

@Entity public class SecurityObject extends org.ameba.integration.jpa.ApplicationEntity implements Serializable
A SecurityObject is the generalization of Roles and Grants and combines common used properties of both.
Author:
Heiko Scherrer
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    A descriptive text for the SecurityObject.
    private @NotBlank(groups={Create.class,Modify.class}) String
    Unique name of the SecurityObject.

    Fields inherited from class org.ameba.integration.jpa.ApplicationEntity

    C_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA...
     
    Create a new SecurityObject with a name.
     
    SecurityObject(String name, String description)
    Create a new SecurityObject with name and description.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compare the name.
    Returns the description text.
    Returns the name.
    int
    void
    setDescription(String description)
    Set the description for the SecurityObject.
    protected void
     
    void
     
    Return the name.

    Methods inherited from class org.ameba.integration.jpa.ApplicationEntity

    getPersistentKey, hasPersistentKey, onEntityPersist, onPersist

    Methods inherited from class org.ameba.integration.jpa.BaseEntity

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • SecurityObject

      protected SecurityObject()
      Dear JPA...
    • SecurityObject

      public SecurityObject(String name)
      Create a new SecurityObject with a name.
      Parameters:
      name - The name of the SecurityObject
      Throws:
      IllegalArgumentException - if name is null or an empty String
    • SecurityObject

      public SecurityObject(String name, String description)
      Create a new SecurityObject with name and description.
      Parameters:
      name - The name of the SecurityObject
      description - The description text of the SecurityObject
      Throws:
      IllegalArgumentException - if name is null or an empty String
  • Method Details

    • setPersistentKey

      public void setPersistentKey(String pKey)
      Overrides:
      setPersistentKey in class org.ameba.integration.jpa.ApplicationEntity
    • getName

      public String getName()
      Returns the name.
      Returns:
      The name of the SecurityObject
    • setName

      protected void setName(String name)
    • getDescription

      public String getDescription()
      Returns the description text.
      Returns:
      The description of the SecurityObject as text
    • setDescription

      public void setDescription(String description)
      Set the description for the SecurityObject.
      Parameters:
      description - The description of the SecurityObject as text
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity
      See Also:
    • equals

      public boolean equals(Object obj)
      Compare the name.
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
      See Also:
    • toString

      public String toString()
      Return the name.
      Overrides:
      toString in class Object
      Returns:
      the name