Class FileServerServiceImpl
java.lang.Object
net.datenwerke.treedb.service.treedb.TreeDBManagerImpl<AbstractFileServerNode>
net.datenwerke.security.service.treedb.LoggedTreeDbManagerImpl<AbstractFileServerNode>
net.datenwerke.security.service.treedb.SecuredTreeDBManagerImpl<AbstractFileServerNode>
net.datenwerke.rs.fileserver.service.fileserver.FileServerServiceImpl
- All Implemented Interfaces:
FileServerService,TreeDBManager<AbstractFileServerNode>
public class FileServerServiceImpl
extends SecuredTreeDBManagerImpl<AbstractFileServerNode>
implements FileServerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckNewName(String name, AbstractFileServerNode node) booleancheckNewParent(AbstractNode<AbstractFileServerNode> parent, AbstractFileServerNode node) createFileAtLocation(String locationPath) Checks rights.createFileAtLocation(String locationPath, boolean checkRights) createFileAtLocation(VFSLocation location) Checks rights.createFileAtLocation(VFSLocation location, boolean checkRights) createFolderAtLocation(String locationPath) Checks rights.createFolderAtLocation(String locationPath, boolean checkRights) createFolderAtLocation(VFSLocation location) Checks rights.createFolderAtLocation(VFSLocation location, boolean checkRights) getFileByKey(String key) longgetFileIdFromKey(String key) getNodeById(long id) Searches for a node by its idgetNodeByKey(String key) getNodeByPath(String path) getNodeByPath(String path, boolean checkRights) getRoots()Methods inherited from class net.datenwerke.security.service.treedb.SecuredTreeDBManagerImpl
copy, forceRemove, getVirtualRoots, move, move, move, move, persist, removeMethods inherited from class net.datenwerke.security.service.treedb.LoggedTreeDbManagerImpl
mergeMethods inherited from class net.datenwerke.treedb.service.treedb.TreeDBManagerImpl
allowsMultipleRoots, copy, getBaseType, getChildrenWithName, isFolder, updateFlagsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.datenwerke.treedb.service.treedb.TreeDBManager
allowsMultipleRoots, copy, forceRemove, getBaseType, getChildrenWithName, getVirtualRoots, isFolder, merge, move, move, persist, remove, updateFlags
-
Constructor Details
-
FileServerServiceImpl
public FileServerServiceImpl()
-
-
Method Details
-
getRoots
- Specified by:
getRootsin interfaceTreeDBManager<AbstractFileServerNode>
-
getAllNodes
- Specified by:
getAllNodesin interfaceTreeDBManager<AbstractFileServerNode>
-
getNodeById
Description copied from interface:TreeDBManagerSearches for a node by its id- Specified by:
getNodeByIdin interfaceTreeDBManager<AbstractFileServerNode>
-
getNodeByPath
- Specified by:
getNodeByPathin interfaceFileServerService
-
getNodeByPath
- Specified by:
getNodeByPathin interfaceFileServerService
-
createFileAtLocation
Description copied from interface:FileServerServiceChecks rights.- Specified by:
createFileAtLocationin interfaceFileServerService- Parameters:
location-
-
createFolderAtLocation
Description copied from interface:FileServerServiceChecks rights.- Specified by:
createFolderAtLocationin interfaceFileServerService- Parameters:
location-
-
createFileAtLocation
- Specified by:
createFileAtLocationin interfaceFileServerService
-
createFolderAtLocation
- Specified by:
createFolderAtLocationin interfaceFileServerService
-
createFileAtLocation
Description copied from interface:FileServerServiceChecks rights.- Specified by:
createFileAtLocationin interfaceFileServerService- Parameters:
locationPath-
-
createFolderAtLocation
Description copied from interface:FileServerServiceChecks rights.- Specified by:
createFolderAtLocationin interfaceFileServerService- Parameters:
locationPath-
-
createFolderAtLocation
- Specified by:
createFolderAtLocationin interfaceFileServerService
-
createFileAtLocation
- Specified by:
createFileAtLocationin interfaceFileServerService
-
getFileFromUploadFile
- Specified by:
getFileFromUploadFilein interfaceFileServerService
-
getFileIdFromKey
@QueryByAttribute(select=<error>, from=FileServerFile.class, where=<error>, throwNoResultException=true) public long getFileIdFromKey(String key) - Specified by:
getFileIdFromKeyin interfaceFileServerService
-
getFileByKey
- Specified by:
getFileByKeyin interfaceFileServerService
-
getNodeByKey
- Specified by:
getNodeByKeyin interfaceTreeDBManager<AbstractFileServerNode>
-
checkNewName
- Specified by:
checkNewNamein interfaceFileServerService
-
checkNewParent
public boolean checkNewParent(AbstractNode<AbstractFileServerNode> parent, AbstractFileServerNode node) - Specified by:
checkNewParentin interfaceFileServerService
-