|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.system.usermanagement.SecurityObject
public class SecurityObject
A SecurityObject is the generalization of Role
s and
Grant
s and combines common used properties of both.
Role
,
Grant
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary | |
---|---|
static String |
NQ_FIND_ALL
Query to find all SecurityObject s. |
static String |
NQ_FIND_BY_UNIQUE_QUERY
Query to find one SecurityObject by its natural
key. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
protected |
SecurityObject()
Accessed by persistence provider. |
|
SecurityObject(String name)
Create a new SecurityObject with a name. |
|
SecurityObject(String name,
String description)
Create a new SecurityObject with name and description. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare the uid property field. |
String |
getDescription()
Returns the description text. |
Long |
getId()
Return the technical key value. |
String |
getName()
Returns the name. |
long |
getVersion()
Return the value of the optimistic locking field. |
int |
hashCode()
Use the uid to calculate the hashCode. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setDescription(String description)
Set the description for the SecurityObject . |
String |
toString()
Return the name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NQ_FIND_ALL
SecurityObject
s. Name is "SecurityObject.findAll" .
public static final String NQ_FIND_BY_UNIQUE_QUERY
SecurityObject
by its natural
key. SecurityObject
to search for.
Constructor Detail |
---|
protected SecurityObject()
public SecurityObject(String name)
SecurityObject
with a name.
name
- The name of the SecurityObject
public SecurityObject(String name, String description)
SecurityObject
with name and description.
name
- The name of the SecurityObject
description
- The description text of the SecurityObject
Method Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public String getName()
SecurityObject
public String getDescription()
SecurityObject
as textpublic void setDescription(String description)
SecurityObject
.
description
- The description of the SecurityObject
as textpublic long getVersion()
getVersion
in interface DomainObject<Long>
public int hashCode()
hashCode
in class AbstractEntity
Object.hashCode()
public boolean equals(Object obj)
equals
in class AbstractEntity
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |