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, saveEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDraftEntity, getBaseRelPath, getDisplayName, getDraftParent, getEntityByUid, getLabel, getMainNodeType, publishEntity, saveEntity
public Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity
in interface AppService
publishEntity
in class AbstractAppService
RepositoryException
public java.lang.String getAppBaseName()
AppService
getAppBaseName
in interface AppService
public java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppService
getDefaultRelPath
in interface AppService
RepositoryException
public java.lang.String getDefaultRelPath(Session session, java.lang.String nodeType, java.lang.String id)
AppService
getDefaultRelPath
in interface AppService
session
- TODOpublic boolean isKnownType(Node entity)
AppService
isKnownType
in interface AppService
public boolean isKnownType(java.lang.String nodeType)
AppService
isKnownType
in interface AppService
public java.nio.file.Path[] getMyDocumentsPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider, Session session)
getMyDocumentsPath
in interface DocumentsService
public java.nio.file.Path[] getMyGroupsFilesPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider, Session session)
getMyGroupsFilesPath
in interface DocumentsService
public java.nio.file.Path[] getMyBookmarks(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider, Session session)
getMyBookmarks
in interface DocumentsService
public Node[] getMyBookmarks(Session session)
getMyBookmarks
in interface DocumentsService
public Node getMyBookmarksParent(Session session)
getMyBookmarksParent
in interface DocumentsService
public java.nio.file.Path getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider, java.lang.String nodePath)
getPath
in interface DocumentsService
public NodeIterator getLastUpdatedDocuments(Session session)
getLastUpdatedDocuments
in interface DocumentsService
public java.nio.file.Path getPath(java.nio.file.spi.FileSystemProvider nodeFileSystemProvider, java.net.URI uri)
getPath
in interface DocumentsService
public Node createFolderBookmark(java.nio.file.Path path, java.lang.String name, Repository repository)
createFolderBookmark
in interface DocumentsService
Copyright © 2007–2020. All rights reserved.