edu.uoc.tfc.dbmodel.security
Class Operation

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

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

Classe que representa una operació al model de base de dades

See Also:
Serialized Form

Nested Class Summary
static class Operation.Factory
          Constructs new instances of Operation.
 
Constructor Summary
Operation()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if the argument is an Operation instance and all identifiers for this entity equal the identifiers of the argument entity.
 java.lang.String getDescription()
           Descripció de la operació
 java.lang.Long getId()
           
 java.lang.String getName()
           Nom de la operació
 java.lang.Integer getOrdre()
           Ordre d'aparició en el menú
 java.lang.Integer getParent()
           Menú pare de la opció
 java.util.Collection getRoles()
           
 java.lang.String getUrl()
           URL d'accés
 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 setName(java.lang.String name)
           
 void setOrdre(java.lang.Integer ordre)
           
 void setParent(java.lang.Integer parent)
           
 void setRoles(java.util.Collection roles)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation

public Operation()
Method Detail

getName

public java.lang.String getName()

Nom de la operació


setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

Descripció de la operació


setDescription

public void setDescription(java.lang.String description)

getUrl

public java.lang.String getUrl()

URL d'accés


setUrl

public void setUrl(java.lang.String url)

getParent

public java.lang.Integer getParent()

Menú pare de la opció


setParent

public void setParent(java.lang.Integer parent)

getOrdre

public java.lang.Integer getOrdre()

Ordre d'aparició en el menú


setOrdre

public void setOrdre(java.lang.Integer ordre)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getRoles

public java.util.Collection getRoles()

setRoles

public void setRoles(java.util.Collection roles)

equals

public boolean equals(java.lang.Object object)
Returns true if the argument is an Operation 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