public class DocumentsServiceImpl extends AbstractAppService implements DocumentsService
| Constructor and Description |
|---|
DocumentsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Node |
createFolderBookmark(java.nio.file.Path path,
java.lang.String name,
Repository repository) |
java.lang.String |
getAppBaseName()
Returns the current App name
|
java.lang.String |
getDefaultRelPath(Node entity)
Computes the App specific relative path for a known type based on properties
of the passed node
|
java.lang.String |
getDefaultRelPath(Session session,
java.lang.String nodeType,
java.lang.String id)
Computes the App specific relative path for this known node type based on the
passed id
|
NodeIterator |
getLastUpdatedDocuments(Session session) |
java.nio.file.Path[] |
getMyBookmarks(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session) |
Node[] |
getMyBookmarks(Session session) |
Node |
getMyBookmarksParent(Session session) |
java.nio.file.Path[] |
getMyDocumentsPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session) |
java.nio.file.Path[] |
getMyGroupsFilesPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session) |
java.nio.file.Path |
getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
java.lang.String nodePath) |
java.nio.file.Path |
getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
java.net.URI uri) |
boolean |
isKnownType(Node entity)
Simply checks if the passed entity has a primary or mixin type that is known
and thus can be managed by the this App
|
boolean |
isKnownType(java.lang.String nodeType)
Simply checks if the passed type is known and thus can be managed by the this
App.
|
Node |
publishEntity(Node parent,
java.lang.String nodeType,
Node srcNode,
boolean removeSrcNode) |
createDraftEntity, getDisplayName, getDraftParent, getEntityByUid, saveEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDraftEntity, getBaseRelPath, getDisplayName, getDraftParent, getEntityByUid, getLabel, getMainNodeType, publishEntity, saveEntitypublic Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity in interface AppServicepublishEntity in class AbstractAppServiceRepositoryExceptionpublic java.lang.String getAppBaseName()
AppServicegetAppBaseName in interface AppServicepublic java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppServicegetDefaultRelPath in interface AppServiceRepositoryExceptionpublic java.lang.String getDefaultRelPath(Session session, java.lang.String nodeType, java.lang.String id)
AppServicegetDefaultRelPath in interface AppServicesession - TODOpublic boolean isKnownType(Node entity)
AppServiceisKnownType in interface AppServicepublic boolean isKnownType(java.lang.String nodeType)
AppServiceisKnownType in interface AppServicepublic java.nio.file.Path[] getMyDocumentsPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session)
getMyDocumentsPath in interface DocumentsServicepublic java.nio.file.Path[] getMyGroupsFilesPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session)
getMyGroupsFilesPath in interface DocumentsServicepublic java.nio.file.Path[] getMyBookmarks(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
Session session)
getMyBookmarks in interface DocumentsServicepublic Node[] getMyBookmarks(Session session)
getMyBookmarks in interface DocumentsServicepublic Node getMyBookmarksParent(Session session)
getMyBookmarksParent in interface DocumentsServicepublic java.nio.file.Path getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
java.lang.String nodePath)
getPath in interface DocumentsServicepublic NodeIterator getLastUpdatedDocuments(Session session)
getLastUpdatedDocuments in interface DocumentsServicepublic java.nio.file.Path getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider,
java.net.URI uri)
getPath in interface DocumentsServicepublic Node createFolderBookmark(java.nio.file.Path path, java.lang.String name, Repository repository)
createFolderBookmark in interface DocumentsServiceCopyright © 2007–2020. All rights reserved.