|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepositoryHelper
The interface IRepositoryHelper provides an API to work with the ModelBusRepository. To instantiate the helper class, you call
ModelBusCoreLib.getRepositoryHelper()
:
{ @code IRepositoryHelper helper = ModelBusCoreLib.getRepositoryHelper(); }If you use the IRepositoyHelper not in a dosgi-environment, you have to set the mode to CXF:
helper.setMode(IModelBusHelper.MODE_CXF);
To work with the repository, you have to declare a session:
{ @code Session session = new Session(); session.setId("abcdefghijklmno123456789"); Property propertyUserName = new Property(); propertyUserName.setKey("username"); propertyUserName.setValue("Admin"); Property propertyPassword = new Property(); propertyPassword.setKey("password"); propertyPassword.setValue("ModelBus"); session.getProperties().add(propertyUserName); session.getProperties().add(propertyPassword); }Afterwards, you can work with the repository:
String path = "http://test/testfile.uml"
InputStream input = helper.checkOutFile(session,path,-1);
Nested Class Summary | |
---|---|
static class |
IRepositoryHelper.PingType
|
Field Summary | |
---|---|
static java.lang.String |
REVISION_HEAD
|
Fields inherited from interface org.modelbus.core.lib.IModelBusHelper |
---|
MODE_CXF, MODE_DOSGI |
Method Summary | |
---|---|
java.lang.String |
authenticate(java.lang.String username,
java.lang.String password)
Authenticates an user to the ModelBus server. |
void |
checkInFile(Session session,
IModelBusDataSource dataSource,
java.lang.String logMessage)
Commits a file that is encapsulated in a ModelBusDataSource. |
void |
checkInFile(Session session,
IModelBusDataSource dataSource,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Commits a file that is encapsulated in a ModelBusDataSource. |
void |
checkInFile(Session session,
URI fileUri,
java.io.File file,
java.lang.String logMessage)
Commits a file and saves the changed file in the repository. |
void |
checkInFile(Session session,
URI fileUri,
java.io.File file,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Commits a file and saves the changed file in the repository. |
void |
checkInModel(Session session,
java.util.List<Resource> resources,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage)
Commits a list of resources and saves the changed resources in the repository. |
void |
checkInModel(Session session,
java.util.List<Resource> resources,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Commits a list of resources and saves the changed resources in the repository. |
void |
checkInModel(Session session,
Resource resource,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage)
Commits a resource and saves the changed resource in the repository. |
void |
checkInModel(Session session,
Resource resource,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Commits a resource and saves the changed resource in the repository. |
void |
checkInModel(Session session,
Resource resource,
URI localResourceUri,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage)
Commits a resource and saves the changed resource in the repository. |
void |
checkInModel(Session session,
Resource resource,
URI localResourceUri,
java.util.Map<?,?> saveOptions,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Commits a resource and saves the changed resource in the repository. |
java.io.InputStream |
checkOutFile(Session session,
URI fileUri,
java.lang.String revision)
Checks out a file located in the repository at the specified path in a particular revision and returns the InputStream. |
void |
checkOutFile(Session session,
URI fileUri,
java.lang.String revision,
java.io.File file)
Checks out a file located in the repository at the specified path in a particular revision. |
IModelBusDataSource |
checkOutFileAsDataSource(Session session,
URI fileUri,
java.lang.String revision)
Checks out a file located in the repository at the specified path in a particular revision and returns a ModelBusDataSource. |
void |
checkOutModel(Session session,
java.util.List<Resource> resources,
java.util.Map<?,?> loadOptions)
Checks out a list of models with head revision. |
void |
checkOutModel(Session session,
Resource resource,
java.util.Map<?,?> loadOptions)
Checks out a model with head revision. |
void |
checkoutModelWithDependencies(Session session,
Resource model,
java.lang.String revision,
java.util.Map<?,?> loadOptions)
Checks out a model and its dependent models with the specified revision. |
void |
checkOutModelWithRevision(Session session,
java.util.List<Resource> resources,
java.lang.String revision,
java.util.Map<?,?> loadOptions)
Checks out a list of models with the specified revision. |
void |
checkOutModelWithRevision(Session session,
Resource resource,
java.lang.String revision,
java.util.Map<?,?> loadOptions)
Checks out a model with the specified revision. |
java.util.List<RepositoryNodeKind> |
checkPath(Session session,
URI uri,
java.lang.String revision)
Returns the kind ("DIR", "FILE", "MODEL", "UNKNOWN", "NONE") of a repository node located at the specified location in a particular revision. |
void |
commit(Session session,
java.util.List<PathFileContentMapEntry> createFileMap,
java.util.List<PathFileContentMapEntry> checkInFileMap,
java.util.List<java.lang.String> folderPaths,
java.util.List<java.lang.String> deletionPaths,
java.lang.String logMessage)
|
boolean |
commitChangeModel(Session session,
java.lang.String messageId,
URI modelUri,
java.lang.String changeModelAsString)
Commits a serialized EMF ChangeModel. |
boolean |
control(Session session,
URI fragmentUri,
java.lang.String fragmentFileLocation,
java.lang.String logMessage)
Splits a model into fragments. |
boolean |
copy(Session session,
java.lang.String[] srcPaths,
java.lang.String destPath,
java.lang.String logMessage)
Copies repository entries located at the specified srcPaths to a directory located at the specified destPath. |
java.lang.String |
createDir(Session session,
URI uri,
java.lang.String logMessage)
Creates a directory located at the specified path. |
java.lang.String |
createDir(Session session,
URI uri,
java.lang.String logMessage,
java.util.Map<java.lang.String,java.lang.Object> options)
Creates a directory located at the specified path. |
java.lang.String |
delete(Session session,
URI uri,
java.lang.String logMessage)
Deletes the repository entry located at the specified location. |
boolean |
exists(Session session,
URI uri,
java.lang.String revision)
Checks whether the specified location exists in the repository or not |
DependenciesInfo |
getDependencies(Session session,
URI uri)
Gets all incoming and outgoing references for a model or a model element with the specified uri. |
DependenciesInfo |
getDependencies(Session session,
URI uri,
boolean includeIncomingReferences,
boolean includeOutgoingReferences)
Gets all incoming and outgoing references for a model or a model element with the specified uri. |
RepositoryDirEntry[] |
getDirEntries(Session session,
URI uri,
java.lang.String revision)
Returns an array with repository directory entries for a directory located at the specified path in a particular revision. |
RepositoryDirEntry[] |
getDirEntries(Session session,
URI uri,
java.lang.String revision,
java.lang.String[] excludeFilters)
Returns an array with repository directory entries for a directory located at the specified path in a particular revision excluding specified entries. |
ExtendedRepositoryLogEntry |
getExtendedLogEntry(Session session,
java.lang.String revision,
java.lang.Long date)
Returns an log entry for a given commit extended with information about its previous commit. |
java.util.List<java.lang.String> |
getFilesToCheckin()
|
IncomingReferencesInfo[] |
getIncomingReferences(Session session,
URI uri)
Gets all incoming references for a model or a model element with the specified uri. |
java.util.List<RepositoryDirEntry> |
getInfo(Session session,
URI uri,
java.lang.String revision)
Gives information about an entry located at the specified path in a particular revision. |
LockInfo[] |
getLocks(Session session,
java.lang.String urlPrefix)
Gets all lock entries on or below the specified urlPrefix. |
RepositoryLogEntry[] |
getLogEntries(Session session,
java.lang.String[] targetPaths,
java.lang.String startRevision,
java.lang.String endRevision,
boolean changedPath,
boolean strictNode,
long limit,
boolean includeMergedRevisions,
java.lang.String[] revProps)
Traverses revision history and returns an array of log entries. |
java.lang.Integer |
getMode()
|
OutgoingReferencesInfo[] |
getOutgoingReferences(Session session,
URI uri)
Gets all outgoing references for a model or a model element with the specified uri. |
java.util.HashMap<java.lang.String,java.lang.String> |
getProjectPathMap()
Gets the project path map |
java.util.List<Resource> |
getReferencingResources(Session session,
URI referencedObjectUri,
URI referencingTypeUri)
Gets a list of resources, which contain model elements of a certain type (referencingTypeUri) that references the specified element (referencedObjectUri) |
URI |
getResourceUri(URI objectUri)
Returns the resource uri of an object with the specified objectUri; the uri without a fragment. |
RepositoryDirEntry |
getRoot(Session session)
Returns the repository's root directory entry |
boolean |
lock(Session session,
URI uri)
Locks the repository entry located at the specified location. |
void |
move(Session session,
java.lang.String[] srcPaths,
java.lang.String destPath,
java.lang.String logMessage)
Moves repository entries located at the specified srcPaths to a directory located at the specified destPath. |
long |
ping(IRepositoryHelper.PingType type,
Session session)
|
void |
setEnableDependencies(boolean enableDependencies)
Enables dependencies support. |
void |
setMode(java.lang.Integer mode)
|
void |
setModelExtensions(java.lang.String[] modelExtensions)
If the dependencies support is enabled, you have to specify the supported model types |
void |
setProjectPathMap(java.util.HashMap<java.lang.String,java.lang.String> localProjectPaths)
Sets the project path map. |
boolean |
uncontrol(Session session,
URI fragmentUri,
java.lang.String logMessage)
Uncontrols the EObject with the specified fragmentUri. |
boolean |
unlock(Session session,
URI uri)
Unlocks the repository entry located at the specified location. |
Methods inherited from interface org.modelbus.core.lib.IModelBusHelper |
---|
forcesSecureConnection, setForceSecureConnection |
Field Detail |
---|
static final java.lang.String REVISION_HEAD
Method Detail |
---|
void setProjectPathMap(java.util.HashMap<java.lang.String,java.lang.String> localProjectPaths)
localProjectPaths
- java.util.HashMap<java.lang.String,java.lang.String> getProjectPathMap()
java.util.List<java.lang.String> getFilesToCheckin()
java.lang.String authenticate(java.lang.String username, java.lang.String password) throws RepositoryRuntimeException, InvalidValueException
username
- password
-
RepositoryRuntimeException
InvalidValueException
void checkInModel(Session session, Resource resource, java.util.Map<?,?> saveOptions, java.lang.String logMessage) throws RepositoryAuthentificationException, NonExistingResourceException, java.io.IOException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationresource
- the resource to commitlogMessage
- the log message for the transaction
java.io.IOException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
NonExistingResourceException
void checkInModel(Session session, Resource resource, java.util.Map<?,?> saveOptions, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException, NonExistingResourceException, java.io.IOException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationresource
- the resource to commitlogMessage
- the log message for the transactionoptions
- option to use for storing the model
java.io.IOException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
NonExistingResourceException
void checkInModel(Session session, Resource resource, URI localResourceUri, java.util.Map<?,?> saveOptions, java.lang.String logMessage) throws RepositoryAuthentificationException, NonExistingResourceException, java.io.IOException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationresource
- the resource to commitlocalResourceUri
- the local URI of the resource to commitlogMessage
- the log message for the transaction
java.io.IOException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
NonExistingResourceException
void checkInModel(Session session, Resource resource, URI localResourceUri, java.util.Map<?,?> saveOptions, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException, NonExistingResourceException, java.io.IOException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationresource
- the resource to commitlocalResourceUri
- the local URI of the resource to commitlogMessage
- the log message for the transactionoptions
- option to use for storing the model
java.io.IOException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
NonExistingResourceException
void checkOutModel(Session session, Resource resource, java.util.Map<?,?> loadOptions) throws RepositoryAuthentificationException, java.io.IOException, UnresolvedReferencesException, NonExistingResourceException
session
- the current session for authenticationresource
- the resource to check-outloadOptions
- the options for the model check out
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
RepositoryAuthentificationException
void checkOutModelWithRevision(Session session, Resource resource, java.lang.String revision, java.util.Map<?,?> loadOptions) throws RepositoryAuthentificationException, java.io.IOException, UnresolvedReferencesException, NonExistingResourceException
session
- the current session for authenticationresource
- the resource to check-outrevision
- the revision of the model to check outloadOptions
- the options for the model check out
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
RepositoryAuthentificationException
void checkoutModelWithDependencies(Session session, Resource model, java.lang.String revision, java.util.Map<?,?> loadOptions) throws RepositoryAuthentificationException, NonExistingResourceException, UnresolvedReferencesException, java.io.IOException
session
- the current session for authenticationresource
- the resource to check-outrevision
- the revision of the model to check outloadOptions
- the options for the model check out
RepositoryAuthentificationException
NonExistingResourceException
UnresolvedReferencesException
java.io.IOException
void checkInModel(Session session, java.util.List<Resource> resources, java.util.Map<?,?> saveOptions, java.lang.String logMessage) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
#checkInModel(Session, Resource)
is called.
session
- the current session for authenticationresources
- the list of resources to commitlogMessage
- the log message for the transaction
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
void checkInModel(Session session, java.util.List<Resource> resources, java.util.Map<?,?> saveOptions, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
#checkInModel(Session, Resource)
is called.
session
- the current session for authenticationresources
- the list of resources to commitlogMessage
- the log message for the transactionoptions
- option to use for storing the model
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
void checkOutModel(Session session, java.util.List<Resource> resources, java.util.Map<?,?> loadOptions) throws RepositoryAuthentificationException, java.io.IOException, UnresolvedReferencesException, NonExistingResourceException
#checkOutModel(Session, Resource)
is called.
session
- the current session for authenticationresources
- the resources to check-out
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
RepositoryAuthentificationException
void checkOutModelWithRevision(Session session, java.util.List<Resource> resources, java.lang.String revision, java.util.Map<?,?> loadOptions) throws RepositoryAuthentificationException, java.io.IOException, UnresolvedReferencesException, NonExistingResourceException
#checkOutModel(Session, Resource)
is called.
session
- the current session for authenticationresources
- the resources to check-outrevision
- the revision of the model to check outloadOptions
- the options for the model check out
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
RepositoryAuthentificationException
void checkOutFile(Session session, URI fileUri, java.lang.String revision, java.io.File file) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException
session
- the current session for authenticationfileUri
- the remote location of the file to check outrevision
- the revision of the file to check-out (HEAD: -1)file
- the local file
java.io.IOException
NonExistingResourceException
RepositoryAuthentificationException
java.io.InputStream checkOutFile(Session session, URI fileUri, java.lang.String revision) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException
session
- the current session for authenticationfileUri
- the remote location of the file to check-outrevision
- the revision of the file to check-out (HEAD: -1)
java.io.IOException
NonExistingResourceException
RepositoryAuthentificationException
IModelBusDataSource checkOutFileAsDataSource(Session session, URI fileUri, java.lang.String revision) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException
IModelBusDataSource.getInputStream()
session
- the current session for authenticationfileUri
- the remote location of the file to check-outrevision
- the revision of the file to check-out (HEAD: -1)
java.io.IOException
NonExistingResourceException
RepositoryAuthentificationException
void setEnableDependencies(boolean enableDependencies)
#checkInModel(Session, Resource)
commits all referenced models and meta-models
automatically, but only if the referenced models do not already exist in the repository. The incoming references for each model and meta-model
are saved in the repository and are always updated before committing models.
enableDependencies
- default=falsevoid setModelExtensions(java.lang.String[] modelExtensions)
modelExtensions
- the supported extensions ("uml","ecore" for example)void commit(Session session, java.util.List<PathFileContentMapEntry> createFileMap, java.util.List<PathFileContentMapEntry> checkInFileMap, java.util.List<java.lang.String> folderPaths, java.util.List<java.lang.String> deletionPaths, java.lang.String logMessage) throws RepositoryRuntimeException, InvalidValueException, RepositoryAuthentificationException, LockedException
RepositoryRuntimeException
InvalidValueException
RepositoryAuthentificationException
LockedException
void checkInFile(Session session, URI fileUri, java.io.File file, java.lang.String logMessage) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationfileUri
- the remote target location of the file to commitfile
- the local file to commitlogMessage
- the log message for the transaction
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
void checkInFile(Session session, URI fileUri, java.io.File file, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationfileUri
- the remote target location of the file to commitfile
- the local file to commitlogMessage
- the log message for the transactionoptions
- option to use for storing the model
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
void checkInFile(Session session, IModelBusDataSource dataSource, java.lang.String logMessage) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationdataSource
- the data source to commitlogMessage
- the log message for the transaction
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
void checkInFile(Session session, IModelBusDataSource dataSource, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, InvalidValueException, ConstraintViolationException, LockedException, UnresolvedReferencesException
session
- the current session for authenticationdataSource
- the data source to commitlogMessage
- the log message for the transactionoptions
- option to use for storing the model
java.io.IOException
NonExistingResourceException
UnresolvedReferencesException
LockedException
ConstraintViolationException
InvalidValueException
RepositoryAuthentificationException
RepositoryDirEntry getRoot(Session session) throws RepositoryAuthentificationException, java.io.IOException, NonExistingResourceException, RepositoryRuntimeException, InvalidRevisionException
session
- the current session for authentication
RepositoryDirEntry
java.io.IOException
NonExistingResourceException
InvalidRevisionException
RepositoryRuntimeException
RepositoryAuthentificationException
RepositoryDirEntry[] getDirEntries(Session session, URI uri, java.lang.String revision) throws RepositoryAuthentificationException, java.io.IOException, RepositoryRuntimeException, InvalidRevisionException, NonExistingResourceException
session
- the current session for authenticationuri
- the directory's URI to get the entries forrevision
- the revision of the directory (HEAD: -1)
RepositoryDirEntry
java.io.IOException
NonExistingResourceException
InvalidRevisionException
RepositoryRuntimeException
RepositoryAuthentificationException
RepositoryDirEntry[] getDirEntries(Session session, URI uri, java.lang.String revision, java.lang.String[] excludeFilters) throws RepositoryAuthentificationException, java.io.IOException, RepositoryRuntimeException, InvalidRevisionException, NonExistingResourceException
session
- the current session for authenticationuri
- the URI to get the directory entries forrevision
- the revision of the given URL (HEAD: -1)excludeFilters
- entries to exclude (regular expressions)
RepositoryDirEntry
java.io.IOException
NonExistingResourceException
InvalidRevisionException
RepositoryRuntimeException
RepositoryAuthentificationException
java.util.List<RepositoryDirEntry> getInfo(Session session, URI uri, java.lang.String revision) throws RepositoryAuthentificationException, java.io.IOException, InvalidRevisionException, NonExistingResourceException
session
- the current session for authenticationuri
- location of the entry to get the information forrevision
- the revision of the given URL (HEAD: -1)
RepositoryDirEntry
java.io.IOException
NonExistingResourceException
InvalidRevisionException
RepositoryAuthentificationException
boolean exists(Session session, URI uri, java.lang.String revision) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the location to checkrevision
- the revision of the given location (HEAD: -1)
NonExistingResourceException
RepositoryAuthentificationException
java.util.List<RepositoryNodeKind> checkPath(Session session, URI uri, java.lang.String revision) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the location to checkrevision
- the revision of the given location (HEAD: -1)
RepositoryNodeKind
of the specified location
NonExistingResourceException
RepositoryAuthentificationException
java.lang.String delete(Session session, URI uri, java.lang.String logMessage) throws RepositoryAuthentificationException, LockedException, NonExistingResourceException
session
- the current session for authenticationuri
- the location to deletelogMessage
- the log message for the transaction
NonExistingResourceException
LockedException
RepositoryAuthentificationException
boolean lock(Session session, URI uri) throws RepositoryAuthentificationException, InvalidValueException, NonExistingResourceException, RepositoryRuntimeException, LockedException
session
- the current session for authenticationuri
- the uri to lock
NonExistingResourceException
InvalidValueException
LockedException
RepositoryRuntimeException
RepositoryAuthentificationException
boolean unlock(Session session, URI uri) throws RepositoryAuthentificationException, LockedException, NonExistingResourceException
session
- the current session for authenticationuri
- the uri to unlock
NonExistingResourceException
LockedException
RepositoryAuthentificationException
boolean control(Session session, URI fragmentUri, java.lang.String fragmentFileLocation, java.lang.String logMessage) throws RepositoryAuthentificationException, LockedException, NonExistingResourceException
session
- the current session for authenticationfragmentUri
- the URI of the fragment to controlfragmentFileLocation
- the remote repository location of the fragment's resourcelogMessage
- the log message for the transaction
NonExistingResourceException
LockedException
RepositoryAuthentificationException
boolean uncontrol(Session session, URI fragmentUri, java.lang.String logMessage) throws RepositoryAuthentificationException, LockedException, NonExistingResourceException
session
- the current session for authenticationfragmentUri
- the URI of the fragment to uncontrollogMessage
- the log message for the transaction
NonExistingResourceException
LockedException
RepositoryAuthentificationException
LockInfo[] getLocks(Session session, java.lang.String urlPrefix) throws RepositoryAuthentificationException, LockedException, NonExistingResourceException
session
- the current session for authenticationurlPrefix
- the path to get the locks for
LockInfo
for the specified location
NonExistingResourceException
LockedException
RepositoryAuthentificationException
IncomingReferencesInfo[] getIncomingReferences(Session session, URI uri) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the uri of the model or the model element
IncomingReferencesInfo
NonExistingResourceException
RepositoryAuthentificationException
OutgoingReferencesInfo[] getOutgoingReferences(Session session, URI uri) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the uri of the model or the model element
OutgoingReferencesInfo
NonExistingResourceException
RepositoryAuthentificationException
DependenciesInfo getDependencies(Session session, URI uri, boolean includeIncomingReferences, boolean includeOutgoingReferences) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the uri of the model or the model elementincludeIncomingReferences
- whether to include incoming referencesincludeOutgoingReferences
- whether to include outgoing references
DependenciesInfo
NonExistingResourceException
RepositoryAuthentificationException
DependenciesInfo getDependencies(Session session, URI uri) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationuri
- the uri of the model or the model elementincludeIncomingReferences
- whether to include incoming referencesincludeOutgoingReferences
- whether to include outgoing references
DependenciesInfo
NonExistingResourceException
RepositoryAuthentificationException
java.util.List<Resource> getReferencingResources(Session session, URI referencedObjectUri, URI referencingTypeUri) throws RepositoryAuthentificationException, NonExistingResourceException, java.io.IOException, UnresolvedReferencesException
session
- the current session for authenticationreferencedObjectUri
- the URI of the referenced objectreferencingTypeUri
- the URI of referencing object's type
RepositoryAuthentificationException
NonExistingResourceException
java.io.IOException
UnresolvedReferencesException
URI getResourceUri(URI objectUri)
objectUri
-
java.lang.String createDir(Session session, URI uri, java.lang.String logMessage) throws RepositoryAuthentificationException
session
- the current session for authenticationuri
- the path of the new directorylogMessage
- the log message for the transaction
RepositoryAuthentificationException
java.lang.String createDir(Session session, URI uri, java.lang.String logMessage, java.util.Map<java.lang.String,java.lang.Object> options) throws RepositoryAuthentificationException
session
- the current session for authenticationuri
- the path of the new directorylogMessage
- the log message for the transactionoptions
- option to use for storing the model
RepositoryAuthentificationException
void move(Session session, java.lang.String[] srcPaths, java.lang.String destPath, java.lang.String logMessage) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationsrcPaths
- the locations of the entries to movedestPath
- the location of the destination directorylogMessage
- the log message for the transaction
NonExistingResourceException
RepositoryAuthentificationException
boolean copy(Session session, java.lang.String[] srcPaths, java.lang.String destPath, java.lang.String logMessage) throws RepositoryAuthentificationException, NonExistingResourceException
session
- the current session for authenticationsrcPaths
- the locations of the entries to copydestPath
- the location of the destination directorylogMessage
- the log message for the transaction
NonExistingResourceException
RepositoryAuthentificationException
RepositoryLogEntry[] getLogEntries(Session session, java.lang.String[] targetPaths, java.lang.String startRevision, java.lang.String endRevision, boolean changedPath, boolean strictNode, long limit, boolean includeMergedRevisions, java.lang.String[] revProps) throws RepositoryAuthentificationException
session
- the current session for authenticationtargetPaths
- paths that mean only those revisions at which they were changedstartRevision
- a revision to start fromendRevision
- a revision to end atchangedPath
- if true, then revision information will also include all changed paths per revision, otherwise notstrictNode
- if true, then copy history is not to be traversedlimit
- the maximum number of log entries to processincludeMergedRevisions
- revProps
-
RepositoryLogEntry
RepositoryAuthentificationException
java.lang.Integer getMode()
getMode
in interface IModelBusHelper
void setMode(java.lang.Integer mode)
setMode
in interface IModelBusHelper
boolean commitChangeModel(Session session, java.lang.String messageId, URI modelUri, java.lang.String changeModelAsString) throws RepositoryAuthentificationException, java.io.IOException, InvalidValueException
session
- the current session for authenticationmessageId
- a unique identifiermodelUri
- should be empty (not used)changeModelAsString
- the serialized ChangeModel
java.io.IOException
InvalidValueException
RepositoryAuthentificationException
long ping(IRepositoryHelper.PingType type, Session session) throws ModelBusException
type
- The type of the ping request. Could be PingType.WSDL_REQUEST
or PingType.SERVICE_REQUEST
session
- The session to use for the request. Can be null if using type PingType.WSDL_REQUEST
ModelBusException
ExtendedRepositoryLogEntry getExtendedLogEntry(Session session, java.lang.String revision, java.lang.Long date) throws RepositoryRuntimeException, RepositoryAuthentificationException, InvalidValueException, ConstraintViolationException
session
- the current session for authenticationrevision
- the revision (HEAD: -1)date
- the date of the requested revision
RepositoryAuthentificationException
RepositoryRuntimeException
ConstraintViolationException
InvalidValueException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |