@StableMinor(version="10.1", 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).
|
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)
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.