@StableMinor(version="12.4", sinceVersion="4.0") public interface ISourceField
Modifier and Type | Method and Description |
---|---|
void |
addDocumentFields(Document document,
ISourceData data)
Adds document fields values relative to this field to a document.
|
void |
addDocumentTypeFields(IDocumentTypeBuilder<?> documentTypeBuilder)
Adds document type fields relative to this field to a document type.
|
IConverter |
getConverter()
Returns the default converter for this field's values.
|
ISourceFieldDataType |
getDataType() |
Node |
getDefaultControlDefinition()
Returns the default control definition to be used for this field.
|
Node |
getDefaultInputControlDefinition()
Returns the default input control definition to be used for editing this field's value.
|
Object |
getDefaultValue() |
Node |
getDefaultViewControlDefinition()
Returns the default control definition to be used for viewing this field's value.
|
Node |
getDefinitionNode()
Deprecated.
hopefully this should not be used.
|
String |
getId() |
Object |
getMaximumValue() |
Object |
getMinimumValue() |
String |
getName() |
Class<?> |
getValueClass()
Returns the class this field's possible values are assignable to.
|
void |
init(Source<?> source,
Node fieldNode)
Initializes this source field.
|
boolean |
isDisplay() |
boolean |
isExternalData() |
boolean |
isGetData() |
boolean |
isIntroduction() |
boolean |
isIntroductionImage()
Returns whether this field is the introduction image of the corresponding data.
|
boolean |
isKeywords() |
boolean |
isParentId() |
boolean |
isPrimaryName() |
boolean |
isPublishStartDate()
Returns whether this field is the publish start date of the corresponding data.
|
boolean |
isReadOnly()
Returns true if this field is read-only and should not be rendered
editable.
|
boolean |
isRequired() |
boolean |
isRequiredWhenVisible() |
boolean |
isSearchable()
Returns whether this field included to be found in a simple search (search without specifying a field).
|
default void |
postAdd(SourcePostAddDataEvent event)
Method called for each source field after data is added.
|
default void |
postDelete(SourcePostDeleteDataEvent event)
Method called for each source field after data is deleted.
|
default void |
postUpdate(SourcePostUpdateDataEvent event)
Method called for each source field after data is updated.
|
default void |
preAdd(SourcePreAddDataEvent event)
Method called for each source field before data is added.
|
default void |
preDelete(SourcePreDeleteDataEvent event)
Method called for each source field before data is deleted.
|
default void |
preUpdate(SourcePreUpdateDataEvent event)
Method called for each source field before data is updated.
|
Node getDefinitionNode()
String getId()
String getName()
boolean isDisplay()
boolean isPrimaryName()
boolean isIntroduction()
boolean isIntroductionImage()
true
if this field is the introduction image, false
otherwise.boolean isPublishStartDate()
true
if this field is the publish start date, false
otherwise.boolean isKeywords()
boolean isExternalData()
boolean isGetData()
boolean isRequired()
boolean isRequiredWhenVisible()
boolean isParentId()
ISourceFieldDataType getDataType()
Object getDefaultValue()
Object getMinimumValue()
Object getMaximumValue()
boolean isReadOnly()
boolean isSearchable()
true
if this field is included in simple search, false
otherwise.Node getDefaultControlDefinition() throws PortalException
PortalException
getDefaultInputControlDefinition()
,
getDefaultViewControlDefinition()
Node getDefaultInputControlDefinition() throws PortalException
PortalException
getDefaultControlDefinition()
,
getDefaultViewControlDefinition()
Node getDefaultViewControlDefinition() throws PortalException
PortalException
getDefaultInputControlDefinition()
,
getDefaultControlDefinition()
void init(Source<?> source, Node fieldNode) throws PortalException
source
- the source this field will belong to.fieldNode
- the xml node that contains this field's definition.PortalException
- if this field could not be initialized.Class<?> getValueClass()
IDouiDataType.getValueClass()
IConverter getConverter()
void addDocumentTypeFields(IDocumentTypeBuilder<?> documentTypeBuilder)
documentType
- the document type builder where the fields are to be added to.addDocumentFields(Document, ISourceData)
void addDocumentFields(Document document, ISourceData data)
document
- the document.data
- the source data to be used to obtain the field value.addDocumentTypeFields(IDocumentTypeBuilder)
default void preDelete(SourcePreDeleteDataEvent event) throws PortalException
Default implementation calls
getDataType()
.preDelete(this, event)
.
event
- the event that contains information about the delete operation.PortalException
default void postDelete(SourcePostDeleteDataEvent event) throws PortalException
Default implementation calls
getDataType()
.preDelete(this, event)
.
event
- the event that contains information about the delete operation.PortalException
default void preAdd(SourcePreAddDataEvent event) throws PortalException
event
- the event that contains information about the add operation.PortalException
default void postAdd(SourcePostAddDataEvent event) throws PortalException
event
- the event that contains information about the add operation.PortalException
default void preUpdate(SourcePreUpdateDataEvent event) throws PortalException
event
- the event that contains information about the update operation.PortalException
default void postUpdate(SourcePostUpdateDataEvent event) throws PortalException
event
- the event that contains information about the update operation.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.