Package org.openwms.core.uaa.impl
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>
@Entity
public class SecurityObject
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
A SecurityObject is the generalization of
Role
s and Grant
s and combines common used properties of both.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
A descriptive text for theSecurityObject
.private @NotBlank(groups={Create.class,Modify.class}) String
Unique name of theSecurityObject
.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
ModifierConstructorDescriptionprotected
Dear JPA...SecurityObject
(String name) Create a newSecurityObject
with a name.SecurityObject
(String name, String description) Create a newSecurityObject
with name and description. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the name.Returns the description text.getName()
Returns the name.int
hashCode()
void
setDescription
(String description) Set the description for theSecurityObject
.protected void
void
setPersistentKey
(String pKey) toString()
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
-
Field Details
-
name
@NotBlank(groups={Create.class,Modify.class}) private @NotBlank(groups={Create.class,Modify.class}) String nameUnique name of theSecurityObject
. -
description
A descriptive text for theSecurityObject
.
-
-
Constructor Details
-
SecurityObject
protected SecurityObject()Dear JPA... -
SecurityObject
Create a newSecurityObject
with a name.- Parameters:
name
- The name of theSecurityObject
- Throws:
IllegalArgumentException
- if name is null or an empty String
-
SecurityObject
Create a newSecurityObject
with name and description.- Parameters:
name
- The name of theSecurityObject
description
- The description text of theSecurityObject
- Throws:
IllegalArgumentException
- if name is null or an empty String
-
-
Method Details
-
setPersistentKey
- Overrides:
setPersistentKey
in classorg.ameba.integration.jpa.ApplicationEntity
-
getName
Returns the name.- Returns:
- The name of the
SecurityObject
-
setName
-
getDescription
Returns the description text.- Returns:
- The description of the
SecurityObject
as text
-
setDescription
Set the description for theSecurityObject
.- Parameters:
description
- The description of theSecurityObject
as text
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
- See Also:
-
equals
Compare the name.- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
- See Also:
-
toString
Return the name.
-