public class DocumentationComponent extends DefaultComponent implements DocumentationService
Modifier and Type | Field and Description |
---|---|
static String |
DIRECTORY_NAME |
static String |
Read_Grp |
static String |
Root_NAME |
static String |
Root_PATH |
static String |
Write_Grp |
Constructor and Description |
---|
DocumentationComponent() |
activate, applicationStarted, deactivate, registerContribution, registerExtension, unregisterContribution, unregisterExtension
public static final String DIRECTORY_NAME
public static final String Root_PATH
public static final String Root_NAME
public static final String Read_Grp
public static final String Write_Grp
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classpublic Map<String,List<DocumentationItem>> listDocumentationItems(CoreSession session, String category, String targetType) throws Exception
listDocumentationItems
in interface DocumentationService
Exception
public List<DocumentationItem> findDocumentItems(CoreSession session, NuxeoArtifact nxItem) throws ClientException
findDocumentItems
in interface DocumentationService
ClientException
public List<DocumentationItem> findDocumentationItemVariants(CoreSession session, DocumentationItem item) throws ClientException
findDocumentationItemVariants
in interface DocumentationService
ClientException
public List<DocumentModel> findDocumentModelVariants(CoreSession session, DocumentationItem item) throws ClientException
ClientException
public DocumentationItem createDocumentationItem(CoreSession session, NuxeoArtifact item, String title, String content, String type, List<String> applicableVersions, boolean approved, String renderingType) throws ClientException
createDocumentationItem
in interface DocumentationService
ClientException
public void deleteDocumentationItem(CoreSession session, String uuid) throws ClientException
deleteDocumentationItem
in interface DocumentationService
ClientException
public DocumentationItem updateDocumentationItem(CoreSession session, DocumentationItem docItem) throws ClientException
updateDocumentationItem
in interface DocumentationService
ClientException
public List<String> getCategoryKeys() throws Exception
getCategoryKeys
in interface DocumentationService
Exception
public Map<String,String> getCategories() throws Exception
getCategories
in interface DocumentationService
Exception
public void exportDocumentation(CoreSession session, OutputStream out)
exportDocumentation
in interface DocumentationService
public void importDocumentation(CoreSession session, InputStream is)
importDocumentation
in interface DocumentationService
public String getDocumentationStats(CoreSession session)
getDocumentationStats
in interface DocumentationService
public Map<String,DocumentationItem> getAvailableDescriptions(CoreSession session, String targetType) throws Exception
getAvailableDescriptions
in interface DocumentationService
Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.