Package org.cyclos.entities.users
Class RecordType
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,HasSvgIcon,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity
- Direct Known Subclasses:
SystemRecordType,UserRecordType
@Entity public abstract class RecordType extends ConfigurationEntity implements HasSvgIcon, DefinesNetwork
Base class for record types
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description RecordType()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, 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
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getDisplayTemplate
public String getDisplayTemplate()
-
getFieldColumns
public int getFieldColumns()
-
getFields
public List<RecordCustomField> getFields()
-
getIcon
public String getIcon()
-
getInformationText
public String getInformationText()
-
getNature
public abstract RecordTypeNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOrder
public Integer getOrder(RecordCustomField field)
Returns null if the field doesn't belong to or is not linked to this record type
-
getPluralName
public String getPluralName()
-
getRecordTypeSharedField
public RecordTypeSharedRecordField getRecordTypeSharedField(RecordCustomField field)
-
getResultsLayout
public RecordTypeResultsLayout getResultsLayout()
-
getSection
public RecordSection getSection(RecordCustomField field)
Returns null if the field doesn't belong to or is not linked to this record type
-
getSections
public List<RecordSection> getSections()
-
getSharedFields
public List<RecordTypeSharedRecordField> getSharedFields()
-
getSortField
public RecordCustomField getSortField()
-
getSvgIcon
public String getSvgIcon()
- Specified by:
getSvgIconin interfaceHasSvgIcon
-
isHideDateOnList
public boolean isHideDateOnList()
-
isNowrapLabels
public boolean isNowrapLabels()
-
isRequireConfirmationForManage
public boolean isRequireConfirmationForManage()
-
isUseViewPage
public boolean isUseViewPage()
-
setDisplayTemplate
public void setDisplayTemplate(String displayTemplate)
-
setFieldColumns
public void setFieldColumns(int fieldColumns)
-
setFields
public void setFields(List<RecordCustomField> fields)
-
setHideDateOnList
public void setHideDateOnList(boolean hideDateOnList)
-
setIcon
public void setIcon(String icon)
-
setInformationText
public void setInformationText(String informationText)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setNowrapLabels
public void setNowrapLabels(boolean nowrapLabels)
-
setOrder
public void setOrder(RecordCustomField field, Integer order)
-
setPluralName
public void setPluralName(String pluralName)
-
setRequireConfirmationForManage
public void setRequireConfirmationForManage(boolean requireConfirmationForManage)
-
setResultsLayout
public void setResultsLayout(RecordTypeResultsLayout resultsLayout)
-
setSections
public void setSections(List<RecordSection> sections)
-
setSharedFields
public void setSharedFields(List<RecordTypeSharedRecordField> sharedFields)
-
setSortField
public void setSortField(RecordCustomField sortField)
-
setSvgIcon
public void setSvgIcon(String svgIcon)
- Specified by:
setSvgIconin interfaceHasSvgIcon
-
setUseViewPage
public void setUseViewPage(boolean useViewPage)
-
-