|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentFieldTypeManager
Manages the creation and deletion of Document Field Types for Clearspace.
DocumentFieldType| Method Summary | |
|---|---|
DocumentFieldType |
createDocumentFieldType(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
DocumentFieldType.DataType dataType,
DocumentFieldValidator validator,
DocumentFieldFormatter formatter)
Creates a new DocumentFieldType. |
void |
deleteDocumentFieldType(DocumentFieldType documentFieldType)
Deletes an existing DocumentFieldType. |
DocumentFieldType |
getDocumentFieldType(long id)
Returns the DocumentFieldType with a given id |
DocumentFieldType |
getDocumentFieldType(java.lang.String name)
Returns the DocumentFieldType with a given name |
java.util.Collection<DocumentFieldType> |
getDocumentFieldTypes()
Returns a collection of all the DocumentFieldTypes. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
DocumentFieldType getDocumentFieldType(long id)
throws DocumentObjectNotFoundException
id - id of the DocumentFieldType
DocumentObjectNotFoundException - thrown if there is no DocumentFieldType with the given id.
DocumentFieldType getDocumentFieldType(java.lang.String name)
throws DocumentObjectNotFoundException
name - name of the DocumentField Type
DocumentObjectNotFoundException - thrown if there is no DocumentFieldType with the given
name.java.util.Collection<DocumentFieldType> getDocumentFieldTypes()
DocumentFieldType
DocumentFieldType createDocumentFieldType(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
DocumentFieldType.DataType dataType,
DocumentFieldValidator validator,
DocumentFieldFormatter formatter)
throws UnauthorizedException
name - the unique name of the DocumentFieldType. Should be something that is easy to
bind to such as "BOOLEAN"displayName - A friendly name to display in the admin tool.description - description of the DocumentFieldType to display in the admin tool.dataType - the xmpp data form type.validator - the validator for this DocumentFieldType.formatter - the formatter for this DocumentFieldType.
UnauthorizedException - thrown if the user does not have the permissions to create new
document field types.
void deleteDocumentFieldType(DocumentFieldType documentFieldType)
throws UnauthorizedException
documentFieldType - the DocumentFieldType to delete
UnauthorizedException - thrown if the user does not have permissions to delete document
field types.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||