public interface ResourceService extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
checkout(Resource resource,
DavSession session)
Versioning-part.
|
void |
copyResource(Resource destinResource,
Resource resource,
DavSession session)
Copying of a resource within logicalDOC.
|
Resource |
createResource(Resource parentResource,
String name,
boolean isCollection,
ImportContext context,
DavSession session)
Handle of resource creation by passed parent resource as well as the most
import parameters needed for a resource creation.
|
void |
deleteResource(Resource resource,
DavSession session)
Deletion of a resource within logicalDOC.
|
Resource |
getChildByName(Resource parentResource,
String name)
Based on the parent resource it will be tried to get a child by a
specific name
|
List<Resource> |
getChildResources(Resource parentResource)
On passing a valid
|
List<Resource> |
getHistory(Resource resource)
Versioning-part.
|
Resource |
getParentResource(Resource resource)
Based on the current resource location it will be turned back the upper
resource
|
Resource |
getParentResource(String location,
long userId,
DavSession session)
Based on a location path (given by
|
Resource |
getResource(String location,
DavSession session)
On passing a location as well as the current session you gettin back the
appropriated resource.
|
Resource |
move(Resource target,
Resource destination,
DavSession session)
Moves a resource named target to the folder dictionary destination
|
boolean |
resourceExists(Resource resource)
Check for existing resource(logically)
|
void |
streamIn(Resource resource,
InputStream is) |
InputStream |
streamOut(Resource resource) |
void |
uncheckout(Resource resource,
DavSession session) |
Resource |
updateResource(Resource resource)
Updating a resource on passing all new properties though a valid resource
object.
|
void |
updateResource(Resource resource,
ImportContext context,
DavSession session)
Updating a resource on passing all new properties though a valid resource
object.
|
Resource getResource(String location, DavSession session) throws org.apache.jackrabbit.webdav.DavException
location
- The location retrieved through DavResourceLocator.getResourcePath()
session
- The current sessionorg.apache.jackrabbit.webdav.DavException
List<Resource> getChildResources(Resource parentResource)
parentResource
- The resource(mostly a folder) from which are all
direct childs has to be fetched and turned backResource createResource(Resource parentResource, String name, boolean isCollection, ImportContext context, DavSession session) throws org.apache.jackrabbit.webdav.DavException
parentResource
- The parent resource(mostly a folder)name
- the filename and titlename of the childisCollection
- is the resource folder?context
- for inputstreamsession
- the current sessionResource
org.apache.jackrabbit.webdav.DavException
Resource updateResource(Resource resource)
resource
- The updateable resourcevoid updateResource(Resource resource, ImportContext context, DavSession session) throws org.apache.jackrabbit.webdav.DavException
resource
- The updateable resourcecontext
- the ImportContextsession
- the current sessionorg.apache.jackrabbit.webdav.DavException
boolean resourceExists(Resource resource)
resource
- The ResourceResource getChildByName(Resource parentResource, String name)
parentResource
- The parent resourcename
- name of the child must beResource getParentResource(Resource resource)
resource
- the current resourceResource getParentResource(String location, long userId, DavSession session)
location
- the resource pathuserId
- the user idsession
- the current sessionDavResourceLocator#getResourcePath()} the system tries to get
the parent resource
Resource move(Resource target, Resource destination, DavSession session) throws org.apache.jackrabbit.webdav.DavException
target
- the resource that is involveddestination
- the destination of the move operationsession
- the current sessionorg.apache.jackrabbit.webdav.DavException
void streamIn(Resource resource, InputStream is)
resource
- is
- InputStream streamOut(Resource resource)
resource
- void deleteResource(Resource resource, DavSession session) throws org.apache.jackrabbit.webdav.DavException
resource
- a vaild resourcesession
- the current sessionorg.apache.jackrabbit.webdav.DavException
void copyResource(Resource destinResource, Resource resource, DavSession session) throws org.apache.jackrabbit.webdav.DavException
destinResource
- resource
- session
- the current sessionorg.apache.jackrabbit.webdav.DavException
void checkout(Resource resource, DavSession session) throws org.apache.jackrabbit.webdav.DavException
resource
- The appropriated resource that has to be checked outsession
- the current sessionorg.apache.jackrabbit.webdav.DavException
List<Resource> getHistory(Resource resource)
resource
- The appropriated resourcevoid uncheckout(Resource resource, DavSession session)
resource
- session
- the current sessionCopyright © 2008-2014 Logical Objects. All Rights Reserved.