edu.uoc.tfc.dbmodel.security
Class Role

java.lang.Object
  extended by edu.uoc.tfc.dbmodel.security.Role
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RoleImpl

public abstract class Role
extends java.lang.Object
implements java.io.Serializable

Classe que representa un rol al model de base de dades.

Tenim tres rols, ADMIN, PERIT i FACTURACIO

See Also:
Serialized Form

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

Role

public Role()
Method Detail

getRoleId

public java.lang.String getRoleId()

Identificador del rol


setRoleId

public void setRoleId(java.lang.String roleId)

getDescription

public java.lang.String getDescription()

Descripció del rol


setDescription

public void setDescription(java.lang.String description)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getUsers

public java.util.Collection getUsers()

setUsers

public void setUsers(java.util.Collection users)

getOperations

public java.util.Collection getOperations()

setOperations

public void setOperations(java.util.Collection operations)

equals

public 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. Returns false otherwise.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hash code based on this entity's identifiers.

Overrides:
hashCode in class java.lang.Object