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 
Roles and Grants and combines common used properties of both.- Author:
- Heiko Scherrer
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate StringA descriptive text for theSecurityObject.private @NotBlank(groups={Create.class,Modify.class}) StringUnique name of theSecurityObject.Fields inherited from class org.ameba.integration.jpa.ApplicationEntityC_ID
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDear JPA...SecurityObject(String name) Create a newSecurityObjectwith a name.SecurityObject(String name, String description) Create a newSecurityObjectwith name and description.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCompare the name.Returns the description text.getName()Returns the name.inthashCode()voidsetDescription(String description) Set the description for theSecurityObject.protected voidvoidsetPersistentKey(String pKey) toString()Return the name.Methods inherited from class org.ameba.integration.jpa.ApplicationEntitygetPersistentKey, hasPersistentKey, onEntityPersist, onPersistMethods inherited from class org.ameba.integration.jpa.BaseEntitygetCreatedBy, 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.
- 
descriptionA descriptive text for theSecurityObject.
 
- 
- 
Constructor Details- 
SecurityObjectprotected SecurityObject()Dear JPA...
- 
SecurityObjectCreate a newSecurityObjectwith a name.- Parameters:
- name- The name of the- SecurityObject
- Throws:
- IllegalArgumentException- if name is null or an empty String
 
- 
SecurityObjectCreate a newSecurityObjectwith 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- Overrides:
- setPersistentKeyin class- org.ameba.integration.jpa.ApplicationEntity
 
- 
getNameReturns the name.- Returns:
- The name of the SecurityObject
 
- 
setName
- 
getDescriptionReturns the description text.- Returns:
- The description of the SecurityObjectas text
 
- 
setDescriptionSet the description for theSecurityObject.- Parameters:
- description- The description of the- SecurityObjectas text
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- org.ameba.integration.jpa.ApplicationEntity
- See Also:
 
- 
equalsCompare the name.- Overrides:
- equalsin class- org.ameba.integration.jpa.ApplicationEntity
- See Also:
 
- 
toStringReturn the name.
 
-