|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentTypeManager
Handles the creation, deletion, and access of DocumentTypes. By default, only one type exists which
represents a simple document with just a title, body, attachments and language fields. It is accessed with
getDefaultDocumentType(), which is the only method of interest for users of the api who are not defining
their own types.
DocumentType| Method Summary | |
|---|---|
DocumentType |
createDocumentType(String name,
String description)
Create a new document type with the specified attributes. |
void |
deleteDocumentType(DocumentType documentType)
Deletes the specified document type from the system. |
DocumentType |
getDefaultDocumentType()
Returns the default document type in the system, which includes the fields title, body, attachments, and language. |
DocumentType |
getDocumentType(long typeID)
Retrieve the document type with the specified id. |
List<DocumentType> |
getDocumentTypes()
Returns a list of DocumentType objects that list all the current document types. |
void |
setDocumentTypeIndex(DocumentType documentType,
int newIndex)
Sets the index of the document type. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
List<DocumentType> getDocumentTypes()
DocumentType getDefaultDocumentType()
DocumentType getDocumentType(long typeID)
throws DocumentObjectNotFoundException
typeID - the id of the document to return.
DocumentObjectNotFoundException - if no document type exists for the specified
typeID.
void setDocumentTypeIndex(DocumentType documentType,
int newIndex)
throws UnauthorizedException
documentType - the document type to adjust the index of.newIndex - the new index value for the document type.
UnauthorizedException - if not an administrator
DocumentType createDocumentType(String name,
String description)
throws UnauthorizedException
name - the name of the new document typedescription - the description of the new document type.
UnauthorizedException - if not a system administrator.
void deleteDocumentType(DocumentType documentType)
throws UnauthorizedException
documentType - the document type to delete.
UnauthorizedException - if not a system administrator.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||