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, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, 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)
listDocumentationItems
in interface DocumentationService
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()
getCategoryKeys
in interface DocumentationService
public Map<String,String> getCategories()
getCategories
in interface DocumentationService
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)
getAvailableDescriptions
in interface DocumentationService
Copyright © 2015 Nuxeo SA. All rights reserved.