|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FieldType
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()
|
org.outerx.daisy.x10.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()
|
org.outerx.daisy.x10.FieldTypeDocument |
getXml()
|
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(org.outerx.daisy.x10.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? |
void |
setDeprecated(boolean deprecated)
|
void |
setLoadSelectionListAsync(boolean loadAsync)
|
void |
setName(String name)
|
void |
setSize(int size)
Sets the size of this FieldType. |
| Methods inherited from interface org.outerj.daisy.repository.schema.DescriptionEnabled |
|---|
clearDescriptions, getDescription, getDescriptionExact, getDescriptionLocales, setDescription |
| Methods inherited from interface org.outerj.daisy.repository.schema.LabelEnabled |
|---|
clearLabels, getLabel, getLabelExact, getLabelLocales, setLabel |
| Method Detail |
|---|
long getId()
ValueType getValueType()
String getName()
void setName(String name)
boolean isDeprecated()
void setDeprecated(boolean deprecated)
int getSize()
void setSize(int size)
boolean isAclAllowed()
void setAclAllowed(boolean aclAllowed)
boolean isMultiValue()
boolean isHierarchical()
boolean isPrimitive()
So this is basically the same as: !isMultiValue() && !isHierarhical(), but is safe for the case other dimensions would be added in the future.
Date getLastModified()
long getLastModifier()
void clearSelectionList()
SelectionList getSelectionList()
StaticSelectionList createStaticSelectionList()
LinkQuerySelectionList createLinkQuerySelectionList(String whereClause,
boolean filterVariants)
This only works for link-type fields.
QuerySelectionList createQuerySelectionList(String query,
boolean filterVariants,
SortOrder sortOrder)
HierarchicalQuerySelectionList createHierarchicalQuerySelectionList(String whereClause,
String[] fieldTypeNames,
boolean filterVariants)
ParentLinkedSelectionList createParentLinkedSelectionList(String whereClause,
String linkFieldName,
boolean filterVariants)
boolean getAllowFreeEntry()
void setAllowFreeEntry(boolean allowFreeEntry)
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.
boolean getLoadSelectionListAsync()
void setLoadSelectionListAsync(boolean loadAsync)
org.outerx.daisy.x10.ExpSelectionListDocument getExpandedSelectionListXml(long branchId,
long languageId,
Locale locale)
org.outerx.daisy.x10.FieldTypeDocument getXml()
void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)
void save()
throws RepositoryException
RepositoryExceptionlong getUpdateCount()
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||