Package org.cyclos.entities.access
Class Agreement
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity
@Entity public class Agreement extends ConfigurationEntity implements DefinesNetwork
An agreement represents a legal texts that can either be required for users to operate in the system, or can be required.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description Agreement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NamedEntity o)StringgetContent()NetworkgetNetwork()Returns the network this entity belongs tobooleanisRequired()voidsetContent(String content)voidsetNetwork(Network network)voidsetRequired(boolean required)-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
compareTo
public int compareTo(NamedEntity o)
- Specified by:
compareToin interfaceComparable<NamedEntity>- Overrides:
compareToin classNamedEntity
-
getContent
public String getContent()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
isRequired
public boolean isRequired()
-
setContent
public void setContent(String content)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setRequired
public void setRequired(boolean required)
-
-