lumis.content.source.field
Class VersionActiveField
java.lang.Object
lumis.doui.source.field.BaseSourceField
lumis.doui.source.field.BaseTabularSourceField
lumis.doui.table.field.BaseTableSourceField
lumis.doui.table.field.GenericTableSourceField
lumis.doui.table.field.SingleColumnTableSourceField
lumis.content.source.field.MetaDataSourceField
lumis.content.source.field.VersionActiveField
- All Implemented Interfaces:
- ISourceField, ITabularSourceField, ITableSourceField
public class VersionActiveField
- extends MetaDataSourceField
Boolean field that indicates if the current version is active or not.
- Since:
- 4.2.0
Fields inherited from class lumis.doui.source.field.BaseSourceField |
converter, dataType, defaultValue, definitionNode, display, doOptionLookup, externalData, getData, id, introduction, keywords, localize, maximumValue, minimumValue, name, parentId, pattern, readOnly, required, requiredWhenVisible, source |
Methods inherited from class lumis.doui.source.field.BaseSourceField |
convertToFieldValueClass, createConverter, getConverter, getDataType, getDefaultControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isKeywords, isLocalize, isParentId, isReadOnly, isRequired, isRequiredWhenVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.source.field.ISourceField |
getConverter, getDataType, getDefaultControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isKeywords, isParentId, isPrimaryName, isReadOnly, isRequired, isRequiredWhenVisible |
VersionActiveField
public VersionActiveField()
throws PortalException
- Throws:
PortalException
init
public void init(Source source,
Node fieldNode)
throws PortalException
- Description copied from interface:
ISourceField
- Initializes this source field. This method is called by the source
after the field is created and before it is used.
The implementation of this method must initialize all of this instance's attributes.
- Specified by:
init
in interface ISourceField
- Overrides:
init
in class SingleColumnTableSourceField
- Parameters:
source
- the source this field will belong to.fieldNode
- the xml node that contains this field's definition.
- Throws:
PortalException
- if this field could not be initialized.
getTableMapping
public TableSourceFieldMapping getTableMapping(QueryBase queryBase)
throws PortalException
- Description copied from interface:
ITableSourceField
- Returns the table mapping for this field. This specifies how
the field data is accessed.
- Specified by:
getTableMapping
in interface ITableSourceField
- Overrides:
getTableMapping
in class SingleColumnTableSourceField
- Parameters:
queryBase
- the query the mapping will be used.
- Returns:
- the field table mapping.
- Throws:
PortalException
convertRowToFieldData
public void convertRowToFieldData(ISourceData databaseRow,
ISourceData sourceRow)
throws PortalException
- Description copied from class:
BaseTabularSourceField
- Converts a row read from the data provider to this source field type.
This base implementation just copies the value in the database row relative to this field's id
to the source row using the same id, converting it using
BaseSourceField.convertToFieldValueClass(Object, java.util.Locale, String)
.
- Specified by:
convertRowToFieldData
in interface ITabularSourceField
- Overrides:
convertRowToFieldData
in class GenericTableSourceField
- Parameters:
databaseRow
- a row containing the original data.sourceRow
- the row to be populated with this field's data.
- Throws:
PortalException
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.