| org.outerj.daisy.repository.schema.FieldType
All known Subclasses: org.outerj.daisy.repository.commonimpl.schema.FieldTypeImpl, org.outerj.daisy.repository.commonimpl.schema.FieldTypeWrapper,
FieldType | public interface FieldType extends DescriptionEnabled,LabelEnabled(Code) | | Describes a type of field in the repository.
Instances are retrieved from
RepositorySchema .
The equals method for FieldType is supported, two field types are
equal if all their defining data is equal, with exception of the ID.
|
Method Summary | |
void | clearSelectionList() Clears(removes) the SelectionList for this FieldType. | HierarchicalQuerySelectionList | createHierarchicalQuerySelectionList(String whereClause, String[] fieldTypeNames, boolean filterVariants) | LinkQuerySelectionList | createLinkQuerySelectionList(String whereClause, boolean filterVariants) Creates and returns a LinkQuerySelectionList. | ParentLinkedSelectionList | createParentLinkedSelectionList(String whereClause, String linkFieldName, boolean filterVariants) | QuerySelectionList | createQuerySelectionList(String query, boolean filterVariants, SortOrder sortOrder) Creates and returns a QuerySelectionList. | StaticSelectionList | createStaticSelectionList() Creates and returns a StaticSelectionList. | boolean | getAllowFreeEntry() | ExpSelectionListDocument | getExpandedSelectionListXml(long branchId, long languageId, Locale locale) Returns the content of the selection list as XML. | long | getId() | Date | getLastModified() When was this PartType last changed (persistently). | long | getLastModifier() Who (which user) last changed this PartType (persistently). | boolean | getLoadSelectionListAsync() | String | getName() | SelectionList | getSelectionList() Returns the SelectionList for this FieldType if one has been defined,
null if no SelectionList had been defined (i.e. | int | getSize() | long | getUpdateCount() | ValueType | getValueType() | FieldTypeDocument | getXml() | boolean | hasSelectionList() | boolean | isAclAllowed() Indicates whether fields of this type can be used in object expressions of ACL rules. | boolean | isDeprecated() | boolean | isHierarchical() | boolean | isMultiValue() | boolean | isPrimitive() Returns true if the values of fields of this field type are simple objects,
rather than more complex objects, which is the case for multivalue and/or
hierarchical fields. | void | save() | void | setAclAllowed(boolean aclAllowed) | void | setAllFromXml(FieldTypeDocument.FieldType fieldTypeXml) | void | setAllowFreeEntry(boolean allowFreeEntry) When a field type has a selection list, should the user also be able to
enter other values then those available in the selection list?
Note that in either case, it is not checked whether the fields' value
occurs in the selection list. | void | setDeprecated(boolean deprecated) | void | setLoadSelectionListAsync(boolean loadAsync) | void | setName(String name) | void | setSize(int size) Sets the size of this FieldType. |
clearSelectionList | void clearSelectionList()(Code) | | Clears(removes) the SelectionList for this FieldType.
|
createLinkQuerySelectionList | LinkQuerySelectionList createLinkQuerySelectionList(String whereClause, boolean filterVariants)(Code) | | Creates and returns a LinkQuerySelectionList. The selection list automatically
becomse the selection list of this field type.
This only works for link-type fields.
|
createQuerySelectionList | QuerySelectionList createQuerySelectionList(String query, boolean filterVariants, SortOrder sortOrder)(Code) | | Creates and returns a QuerySelectionList. The selection list automatically
becomse the selection list of this field type.
|
createStaticSelectionList | StaticSelectionList createStaticSelectionList()(Code) | | Creates and returns a StaticSelectionList. The selection list automatically
becomse the selection list of this field type.
|
getAllowFreeEntry | boolean getAllowFreeEntry()(Code) | | |
getExpandedSelectionListXml | ExpSelectionListDocument getExpandedSelectionListXml(long branchId, long languageId, Locale locale)(Code) | | Returns the content of the selection list as XML. Returns null if there is
no selection list.
|
getLastModified | Date getLastModified()(Code) | | When was this PartType last changed (persistently). Returns null on newly
created FieldTypes.
|
getLastModifier | long getLastModifier()(Code) | | Who (which user) last changed this PartType (persistently). Returns -1 on
newly created FieldTypes.
|
getLoadSelectionListAsync | boolean getLoadSelectionListAsync()(Code) | | |
getSelectionList | SelectionList getSelectionList()(Code) | | Returns the SelectionList for this FieldType if one has been defined,
null if no SelectionList had been defined (i.e. not set for this FieldType
using the setSelectionList(SelectionList selectionList) method).
|
getUpdateCount | long getUpdateCount()(Code) | | |
getXml | FieldTypeDocument getXml()(Code) | | |
hasSelectionList | boolean hasSelectionList()(Code) | | |
isAclAllowed | boolean isAclAllowed()(Code) | | Indicates whether fields of this type can be used in object expressions of ACL rules.
When fields can be used in ACL object expressions, this means that changing the
value of such as field can influence the result of the ACL.
|
isDeprecated | boolean isDeprecated()(Code) | | |
isHierarchical | boolean isHierarchical()(Code) | | |
isMultiValue | boolean isMultiValue()(Code) | | |
isPrimitive | boolean isPrimitive()(Code) | | Returns true if the values of fields of this field type are simple objects,
rather than more complex objects, which is the case for multivalue and/or
hierarchical fields.
So this is basically the same as: !isMultiValue() && !isHierarhical(),
but is safe for the case other dimensions would be added in the future.
|
setAclAllowed | void setAclAllowed(boolean aclAllowed)(Code) | | |
setAllFromXml | void setAllFromXml(FieldTypeDocument.FieldType fieldTypeXml)(Code) | | |
setAllowFreeEntry | void setAllowFreeEntry(boolean allowFreeEntry)(Code) | | When a field type has a selection list, should the user also be able to
enter other values then those available in the selection list?
Note that in either case, it is not checked whether the fields' value
occurs in the selection list. This is only a hint towards the editing GUI.
|
setDeprecated | void setDeprecated(boolean deprecated)(Code) | | |
setLoadSelectionListAsync | void setLoadSelectionListAsync(boolean loadAsync)(Code) | | |
setSize | void setSize(int size)(Code) | | Sets the size of this FieldType. If this method isn't called,
the size will be 0. The size can be used for presentational purposes,
and doesn't cause any validation to happen.
|
|
|