|
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 DocumentFieldManager
Manages the creation and deletion of document fields in Clearspace.
DocumentField| Method Summary | |
|---|---|
DocumentField |
createDocumentField(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
DocumentFieldType documentFieldType)
Creates a new document field. |
void |
deleteDocumentField(DocumentField field)
Deletes a document field. |
DocumentField |
getDocumentField(long id)
Returns the document field with the given id. |
DocumentField |
getDocumentField(java.lang.String name)
Returns the document field with the given name. |
java.util.Collection<DocumentField> |
getDocumentFields()
Returns an collection of DocumentField objects that list all the current document fields. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
java.util.Collection<DocumentField> getDocumentFields()
DocumentField getDocumentField(long id)
throws DocumentObjectNotFoundException
id - the id of the document field.
DocumentObjectNotFoundException - if the field with the specified ID cannot be found.
DocumentField getDocumentField(java.lang.String name)
throws DocumentObjectNotFoundException
name - the name of the document field.
DocumentObjectNotFoundException - if the field with the specified name cannot be found
DocumentField createDocumentField(java.lang.String name,
java.lang.String displayName,
java.lang.String description,
DocumentFieldType documentFieldType)
throws UnauthorizedException,
NotUniqueException
name - the unique name of the document field.displayName - the unique display name of the field.description - the description of the document field.documentFieldType - the type of the document field.
UnauthorizedException - if not an administrator.
NotUniqueException - if the name or display name is not unique.
void deleteDocumentField(DocumentField field)
throws UnauthorizedException
field - the DocumentField to delete.
UnauthorizedException - if not an administrator.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||