|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldType
Method Summary | |
---|---|
void |
clearDescriptions()
|
void |
clearLabels()
|
void |
clearSelectionList()
Clears(removes) the SelectionList for this FieldType. |
LinkQuerySelectionList |
createLinkQuerySelectionList(java.lang.String whereClause,
boolean filterVariants)
Creates and returns a LinkQuerySelectionList. |
QuerySelectionList |
createQuerySelectionList(java.lang.String query,
boolean filterVariants,
SortOrder sortOrder)
Creates and returns a QuerySelectionList. |
StaticSelectionList |
createStaticSelectionList()
Creates and returns a StaticSelectionList. |
boolean |
getAllowFreeEntry()
|
java.lang.String |
getDescription(java.util.Locale locale)
|
java.lang.String |
getDescriptionExact(java.util.Locale locale)
|
java.util.Locale[] |
getDescriptionLocales()
Returns the locales for which a description is set. |
long |
getId()
|
java.lang.String |
getLabel(java.util.Locale locale)
Gets the label in the given locale, using the usual locale fallback mechanisms if not found in the exactly specified locale, and finally returning the fieldtype's name if no label is available. |
java.lang.String |
getLabelExact(java.util.Locale locale)
|
java.util.Locale[] |
getLabelLocales()
|
java.util.Date |
getLastModified()
When was this PartType last changed (persistently). |
long |
getLastModifier()
Who (which user) last changed this PartType (persistently). |
java.lang.String |
getName()
|
SelectionList |
getSelectionList()
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). |
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 |
isMultiValue()
|
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 |
setDescription(java.util.Locale locale,
java.lang.String description)
|
void |
setLabel(java.util.Locale locale,
java.lang.String label)
|
void |
setName(java.lang.String name)
|
void |
setSize(int size)
Sets the size of this FieldType. |
Method Detail |
---|
long getId()
ValueType getValueType()
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getDescription(java.util.Locale locale)
java.lang.String getDescriptionExact(java.util.Locale locale)
void setDescription(java.util.Locale locale, java.lang.String description)
description
- if null, the description for this locale will be removed.void clearDescriptions()
java.util.Locale[] getDescriptionLocales()
java.lang.String getLabel(java.util.Locale locale)
java.lang.String getLabelExact(java.util.Locale locale)
void setLabel(java.util.Locale locale, java.lang.String label)
label
- if null, the label for this locale will be removed.void clearLabels()
java.util.Locale[] getLabelLocales()
boolean isDeprecated()
void setDeprecated(boolean deprecated)
int getSize()
void setSize(int size)
boolean isAclAllowed()
void setAclAllowed(boolean aclAllowed)
boolean isMultiValue()
java.util.Date getLastModified()
long getLastModifier()
void clearSelectionList()
SelectionList getSelectionList()
StaticSelectionList createStaticSelectionList()
LinkQuerySelectionList createLinkQuerySelectionList(java.lang.String whereClause, boolean filterVariants)
This only works for link-type fields.
QuerySelectionList createQuerySelectionList(java.lang.String query, boolean filterVariants, SortOrder sortOrder)
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.
org.outerx.daisy.x10.FieldTypeDocument getXml()
void setAllFromXml(org.outerx.daisy.x10.FieldTypeDocument.FieldType fieldTypeXml)
void save() throws RepositoryException
RepositoryException
long getUpdateCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |