|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentField
The DocumentType interface allows for an arbitrary number of document fields to be created for each document type. There are 7 basic types of document fields which correspond to the field types defined in HTML and the Data Form JEP (http://www.jabber.org/jeps/jep-0004.html#protocol-fieldtypes).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.community.DocumentTypeElement |
|---|
DocumentTypeElement.Type |
| Method Summary | |
|---|---|
DocumentFieldAttributes |
getAttributes()
Retrieve the document attributes for the document field. |
String |
getDefaultValue()
Returns a value that should be used as a default for text based (non select,radio,etc) fields during document creation. |
String |
getDescription()
Returns the description of the document field. |
String |
getDisplayName()
Returns the display name for this field. |
DocumentFieldType |
getFieldType()
Returns the DocumentFieldType associated with this DocumentField. |
int |
getMaxFieldSize()
Returns the maximum data size for the field. |
String |
getName()
Returns the unique name of the document field. |
void |
save()
Persists changes of this object to the database. |
void |
setDefaultValue(String defaultValue)
Sets the default value for the document field. |
void |
setDescription(String description)
Sets the description of the document field. |
void |
setDisplayName(String name)
Sets the display name for this field. |
void |
setFieldType(DocumentFieldType documentFieldType)
Associates a DocumentFieldType with this DocumentField. |
void |
setMaxFieldSize(int maxFieldSize)
sets the maximum data size for the field. |
void |
setName(String name)
Sets the unique name of the document field. |
| Methods inherited from interface com.jivesoftware.community.DocumentTypeElement |
|---|
getType |
| Method Detail |
|---|
String getName()
void setName(String name)
throws UnauthorizedException
name - the unique name of the document field.
UnauthorizedException - if not an administrator.String getDisplayName()
name.
void setDisplayName(String name)
throws UnauthorizedException
name - the display name to set.
UnauthorizedException - if not an admistrator.String getDescription()
void setDescription(String description)
throws UnauthorizedException
description - the description of the document field.
UnauthorizedException - if not an administrator.String getDefaultValue()
UnsupportedOperationException if called on such a instance.
void setDefaultValue(String defaultValue)
throws UnauthorizedException
defaultValue - the default getValue for the document field
UnauthorizedException - if not an administrator.DocumentFieldType getFieldType()
DocumentFieldType associated with this DocumentField.
DocumentFieldType associated with this DocumentField.
void setFieldType(DocumentFieldType documentFieldType)
throws UnauthorizedException
DocumentFieldType with this DocumentField.
documentFieldType - DocumentFieldType to set for this DocumentField.
UnauthorizedException - if not an administratorint getMaxFieldSize()
void setMaxFieldSize(int maxFieldSize)
throws UnauthorizedException
maxFieldSize - the maximum data size for the field.
UnauthorizedException - if not an administrator.DocumentFieldAttributes getAttributes()
DocumentFieldAttributes
void save()
throws UnauthorizedException
UnauthorizedException - If the user is not allowed to modify this object.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||