Package org.exoplatform.clouddrive.cmis
Class JCRLocalCMISDrive.FileAPI.ContextLocalFile
- java.lang.Object
-
- org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.FileAPI.ContextLocalFile
-
- All Implemented Interfaces:
JCRLocalCMISDrive.LocalFile
- Enclosing class:
- JCRLocalCMISDrive.FileAPI
protected class JCRLocalCMISDrive.FileAPI.ContextLocalFile extends Object implements JCRLocalCMISDrive.LocalFile
The Class ContextLocalFile.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextLocalFile(String fileId, javax.jcr.Node fileNode)Instantiates a new context local file.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringfindRemoteParent(Set<String> remoteParents)Find an Id of remote parent not containing in locals of the file referenced by this file Id.StringfindVersionSeriesCheckedOutId()Latest known locally id of checked-out document (cmiscd:versionSeriesCheckedOutId) or ornullif such property not found (it is a folder or versioning not available for the document).StringfindVersionSeriesId()Latest known locally version series id (cmiscd:versionSeriesId) of the document ornullif it such property not found (it is a folder or versioning not available for the document).voidmarkMoved(String prevParentId)Deprecated.voidmarkRenamed(String prevName)Track file rename locally.
-
-
-
Field Detail
-
fileId
protected final String fileId
The file id.
-
fileNode
protected final javax.jcr.Node fileNode
The file node.
-
-
Constructor Detail
-
ContextLocalFile
protected ContextLocalFile(String fileId, javax.jcr.Node fileNode)
Instantiates a new context local file.- Parameters:
fileId- the file idfileNode- the file node
-
-
Method Detail
-
findRemoteParent
public String findRemoteParent(Set<String> remoteParents) throws CMISException
Find an Id of remote parent not containing in locals of the file referenced by this file Id.- Specified by:
findRemoteParentin interfaceJCRLocalCMISDrive.LocalFile- Parameters:
remoteParents-Setof strings with Ids of remote parents- Returns:
- String an Id or
nullif remote parent not found - Throws:
CMISException- the CMIS exception
-
findVersionSeriesId
public String findVersionSeriesId()
Latest known locally version series id (cmiscd:versionSeriesId) of the document ornullif it such property not found (it is a folder or versioning not available for the document).- Specified by:
findVersionSeriesIdin interfaceJCRLocalCMISDrive.LocalFile- Returns:
- String version series id or
nullif it cannot be found or error happened
-
findVersionSeriesCheckedOutId
public String findVersionSeriesCheckedOutId()
Latest known locally id of checked-out document (cmiscd:versionSeriesCheckedOutId) or ornullif such property not found (it is a folder or versioning not available for the document).- Specified by:
findVersionSeriesCheckedOutIdin interfaceJCRLocalCMISDrive.LocalFile- Returns:
- String version series id or
nullif it cannot be found or error happened
-
markMoved
@Deprecated public void markMoved(String prevParentId)
Deprecated.Track file move locally.- Specified by:
markMovedin interfaceJCRLocalCMISDrive.LocalFile- Parameters:
prevParentId-String
-
markRenamed
public void markRenamed(String prevName)
Track file rename locally.- Specified by:
markRenamedin interfaceJCRLocalCMISDrive.LocalFile- Parameters:
prevName-String
-
-