Package org.cyclos.entities.access
Class PrincipalType
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,HasOrder,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity
- Direct Known Subclasses:
ActivatablePrincipalType,BuiltInPrincipalType,CustomFieldPrincipalType
@Entity public abstract class PrincipalType extends ConfigurationOrderableEntity implements DefinesNetwork
Represents a principal type, like the username, e-mail, mobile phone, profile field or token
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description PrincipalType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(NamedEntity o)DataTranslationTypegetDataTranslationType()If this entity allows data translation, should return the translation typeabstract PrincipalTypeNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toabstract booleanisUsedExternalPayment()voidsetNetwork(Network network)-
Methods inherited from class org.cyclos.entities.ConfigurationOrderableEntity
getOrder, setOrder, toString
-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString
-
Methods inherited from class org.cyclos.entities.NamedEntity
getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
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 classConfigurationOrderableEntity
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getNature
public abstract PrincipalTypeNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
isUsedExternalPayment
public abstract boolean isUsedExternalPayment()
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
-