|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.tfc.dbmodel.security.Role
public abstract class Role
Classe que representa un rol al model de base de dades.
Tenim tres rols, ADMIN, PERIT i FACTURACIO
Nested Class Summary | |
---|---|
static class |
Role.Factory
Constructs new instances of Role . |
Constructor Summary | |
---|---|
Role()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if the argument is an Role instance and all identifiers for this entity
equal the identifiers of the argument entity. |
java.lang.String |
getDescription()
Descripció del rol |
java.lang.Long |
getId()
|
java.util.Collection |
getOperations()
|
java.lang.String |
getRoleId()
Identificador del rol |
java.util.Collection |
getUsers()
|
int |
hashCode()
Returns a hash code based on this entity's identifiers. |
void |
setDescription(java.lang.String description)
|
void |
setId(java.lang.Long id)
|
void |
setOperations(java.util.Collection operations)
|
void |
setRoleId(java.lang.String roleId)
|
void |
setUsers(java.util.Collection users)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Role()
Method Detail |
---|
public java.lang.String getRoleId()
Identificador del rol
public void setRoleId(java.lang.String roleId)
public java.lang.String getDescription()
Descripció del rol
public void setDescription(java.lang.String description)
public java.lang.Long getId()
public void setId(java.lang.Long id)
public java.util.Collection getUsers()
public void setUsers(java.util.Collection users)
public java.util.Collection getOperations()
public void setOperations(java.util.Collection operations)
public boolean equals(java.lang.Object object)
true
if the argument is an Role instance and all identifiers for this entity
equal the identifiers of the argument entity. Returns false
otherwise.
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |