Interface IRepositoryConnection
- All Superinterfaces:
IRepositoryReadOnlyConnection
Connection to some hierarchical file storage. The connection can be obtained
only inside transaction and is automatically closed on transaction end.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopies resource from old location to new location.voidcreate(ILocation loc, InputStream content) Creates empty file on given location.voidcreate(ILocation loc, InputStream content, Boolean locExists) voidDeletes given location.voidmakeFolders(ILocation loc) Makes all folders on the given location path (if not already created).voidMoves resource from old location to new location.voidremoveProperty(ILocation loc, String name) Removes property.voidsetContent(ILocation loc, InputStream content) Sets file content.voidsetProperty(ILocation loc, String name, String value) Sets property value.Methods inherited from interface com.polarion.platform.service.repository.IRepositoryReadOnlyConnection
exists, getChanges, getChanges, getChanges, getChanges, getContent, getCurrentRepositoryState, getFirstRevision, getLastRevision, getMergedRevisionsMetaData, getNextState, getPreviousState, getProperties, getProperty, getRepositoryInfo, getRepositoryState, getRepositoryStateDate, getResourceProperties, getRevisionMetaData, getRevisionsMetaData, getRevisionsMetaData, getSubLocations, getSubLocations, isConnected, isFile, isFolder
-
Method Details
-
makeFolders
Makes all folders on the given location path (if not already created).The location can't be a
nullor have a revision- Parameters:
loc- location- Throws:
RepositoryException- if error occurs
-
create
Creates empty file on given location.The location can't be a
nullor have a revision- Parameters:
loc- locationcontent- content of a new file- Throws:
RepositoryException- if error occurs
-
create
- Parameters:
loc-content-locExists-- Throws:
RepositoryException- Since:
- 3.4.1
-
delete
Deletes given location.Does conflict detection if location has revision.
The location can't be a
null- Parameters:
loc- location- Throws:
RepositoryException- if error occurs
-
move
Moves resource from old location to new location.Does conflict detection if old location has revision.
The locations can't be a
nulland new location can't have a revision- Parameters:
oldLoc- old locationnewLoc- new location- Throws:
RepositoryException- if error occurs
-
copy
Copies resource from old location to new location.Conflict detection is not used.
The locations can't be a
nulland new location can't have a revision- Parameters:
oldLoc- old locationnewLoc- new location- Throws:
RepositoryException- if error occurs
-
setContent
Sets file content.Does conflict detection if location has revision.
The location and content can't be a
null- Parameters:
loc- locationcontent- new content as stream of bytes- Throws:
RepositoryException- if error occurs
-
setProperty
Sets property value.Does conflict detection if location has revision.
The location, name and value can't be a
null- Parameters:
loc- resource locationname- property namevalue- property value- Throws:
RepositoryException- if error occurs
-
removeProperty
Removes property.Does conflict detection if location has revision.
The location and the name can't be a
null- Parameters:
loc- resource locationname- property name- Throws:
RepositoryException- if error occurs
-