|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryFacade
public class RepositoryFacade
An object simplifying access to the repository.
Nested Class Summary | |
---|---|
static class |
RepositoryFacade.RepositoryFacadeException
Repository facade exception. |
static class |
RepositoryFacade.UnsupportedSchemeException
Unsupported scheme exception. |
class |
RepositoryFacade.VersionMap
Maps element names to their current versions. |
Method Summary | |
---|---|
VersionedEntity[] |
cloneEntities(RepositoryConfiguration developmentRC,
VersionedEntity[] entities)
Clones entity from source repository into destination repository honoring dependencies between entities. |
VersionedEntity[] |
cloneEntities(RepositoryConfiguration developmentRC,
VersionedEntity[] entities,
boolean dryRun,
boolean seekDeps)
Clones entity from source repository into destination repository. |
VersionedEntity[] |
cloneEntity(RepositoryConfiguration developmentRC,
VersionedEntity entity)
Clones entity from source repository into destination repository honoring dependencies between entities. |
VersionedEntity[] |
cloneEntity(RepositoryConfiguration developmentRC,
VersionedEntity entity,
boolean dryRun,
boolean seekDeps)
Clones entity from source repository into destination repository. |
Architecture |
createArchitecture(Architecture previous,
Frame _implements)
Creates new version of already existing architecture. |
Architecture |
createArchitecture(java.lang.String name,
Frame _implements)
Creates new architecture |
Aspect |
createAspect(Aspect prev)
Creates new version of the already existing aspect. |
Aspect |
createAspect(java.lang.String name)
Creates new aspect. |
AssemblyDescriptor |
createAssemblyDesc(AssemblyDescriptor previous,
Architecture topLevelArch)
Creates new version of already existing assembly descriptor. |
AssemblyDescriptor |
createAssemblyDesc(java.lang.String name,
Architecture topLevelArch)
Creates new assembly descriptor. |
CodeBundle |
createCodeBundle(java.lang.String name,
VersionedEntity entity)
Creates code bundle for the given entity. |
DeploymentPlan |
createDeploymentPlan(DeploymentPlan plan,
AssemblyDescriptor assembly)
Creates new version of the already existing deplplan plan for the given assembly descriptor. |
DeploymentPlan |
createDeploymentPlan(java.lang.String name,
AssemblyDescriptor assembly)
Creates new deplplan plan for the given assembly descriptor. |
RepositoryFacade.VersionMap |
createEmptyVersionMap()
Creates an empty version map . |
Frame |
createFrame(Frame previous)
Creates new version of already existing frame. |
Frame |
createFrame(java.lang.String name)
Creates new frame. |
InterfaceType |
createInterfaceType(InterfaceType previous,
java.lang.String signature)
Creates new version of already existing interface type. |
InterfaceType |
createInterfaceType(java.lang.String name,
java.lang.String signature)
Creates new interface type. |
MicroComponent |
createMicroComponent(MicroComponent prev)
Creates new version of the already existing micro component. |
MicroComponent |
createMicroComponent(java.lang.String name)
Creates new micro component. |
MicroInterfaceType |
createMicroInterfaceType(MicroInterfaceType prev)
Creates new version of the already existing micro interface type. |
MicroInterfaceType |
createMicroInterfaceType(java.lang.String name)
Creates new micro interface type. |
CodeBundle |
createStandaloneCodeBundle(CodeBundle previous)
Creates new version of already existing code bundle. |
CodeBundle |
createStandaloneCodeBundle(java.lang.String name)
Creates standalone code bundle. |
boolean |
deleteEntities(VersionedEntity[] entityArray,
boolean deleteDependencies)
Deletes entities in the repository |
boolean |
deleteEntity(VersionedEntity entity,
boolean deleteDependencies)
Deletes an entity in the repository |
VersionedEntity[] |
getDeletingDependencies(VersionedEntity entity)
Gets the dependencies to be deleted with the entity. |
VersionedEntity[] |
getDeletingDependencies(VersionedEntity[] entities)
Gets the dependencies to be deleted with the entities. |
VersionedEntity |
getLastHeadVersion(java.lang.String name)
Deprecated. Nothing like head version exists anymore. |
boolean |
isLocked()
Returns the status of the lock on the repository. |
boolean |
lock()
Locks the lock on repository. |
boolean |
lock(long timeout)
Locks the lock on repository. |
boolean |
lock(long timeout,
long spinTime)
Locks the lock on repository. |
DeploymentPlan |
lookupDeploymentPlanByVersion(java.lang.String name,
java.lang.String version)
Looks up deployment plan. |
java.util.List<VersionedEntity> |
lookupEntityByName(java.lang.String name)
Looks up all entities with the given name. |
VersionedEntity |
lookupEntityByTag(java.lang.String name,
java.lang.String tag)
Looks up entity with given name and version tag. |
VersionedEntity |
lookupEntityByVersion(java.lang.String name,
java.lang.String version)
Looks up entity. |
VersionedEntity |
lookupEntityByVersionOrTag(java.lang.String name,
java.lang.String versionOrTag)
Looks up entity. |
VersionedEntity[] |
mergeEntities(RepositoryConfiguration developmentRC,
VersionedEntity[] entities)
Merges entity from development repository into production repository honoring dependencies between entities. |
VersionedEntity[] |
mergeEntities(RepositoryConfiguration developmentRC,
VersionedEntity[] entities,
boolean dryRun,
boolean seekDeps)
Merges entity from development repository into production repository. |
VersionedEntity[] |
mergeEntity(RepositoryConfiguration developmentRC,
VersionedEntity entity)
Merges entity from development repository into production repository honoring dependencies between entities. |
VersionedEntity[] |
mergeEntity(RepositoryConfiguration developmentRC,
VersionedEntity entity,
boolean dryRun,
boolean seekDeps)
Merges entity from development repository into production repository. |
boolean |
unlock()
Unlocks the lock on repository. |
Architecture |
updateArchitecture(java.io.File srcxmi,
Architecture orig,
RepositoryFacade.VersionMap vm)
Updates the given architecture according to info obtained from the xmi file - WARNING: it can return a different instance. |
Aspect |
updateAspect(java.io.File srcxmi,
Aspect orig,
RepositoryFacade.VersionMap vm)
Updates the given aspect according to info obtained from the xmi file - WARNING: it can return a different instance. |
AssemblyDescriptor |
updateAssembly(java.io.File srcxmi,
AssemblyDescriptor orig,
RepositoryFacade.VersionMap vm)
Updates the given assembly descriptor according to info obtained from the xmi file - WARNING: it can return a different instance. |
Frame |
updateFrame(java.io.File srcxmi,
Frame orig,
RepositoryFacade.VersionMap vm)
Updates the given frame according to info obtained from the xmi file - WARNING: it can return a different instance. |
InterfaceType |
updateInterfaceType(java.io.File srcxmi,
InterfaceType orig)
Updates the given interface type according to info obtained from the xmi file - WARNING: it can return a different instance. |
MicroComponent |
updateMicroComponent(java.io.File srcxmi,
MicroComponent orig,
RepositoryFacade.VersionMap vm)
Updates the given micro component according to info obtained from the xmi file - WARNING: it can return a different instance. |
MicroInterfaceType |
updateMicroInterfaceType(java.io.File srcxmi,
MicroInterfaceType orig)
Updates the given micro interface type according to info obtained from the xmi file - WARNING: it can return a different instance. |
CodeBundle |
updateStandaloneCodeBundle(java.io.File srcxmi,
CodeBundle orig,
RepositoryFacade.VersionMap vm)
Updates the given standalone code bundle according to info obtained from the xmi file - WARNING: it can return a different instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public InterfaceType createInterfaceType(java.lang.String name, java.lang.String signature)
name
- name of the interface typesignature
- signature
public InterfaceType createInterfaceType(InterfaceType previous, java.lang.String signature)
previous
- previous versionsignature
- signature
public Frame createFrame(java.lang.String name)
name
- name
public Frame createFrame(Frame previous)
previous
- previous version
public Architecture createArchitecture(java.lang.String name, Frame _implements)
name
- name_implements
- frame implemented by the architecture
public Architecture createArchitecture(Architecture previous, Frame _implements)
previous
- previous version_implements
- frame implemented by the architecture
public AssemblyDescriptor createAssemblyDesc(java.lang.String name, Architecture topLevelArch)
name
- nametopLevelArch
- top level architecture
public AssemblyDescriptor createAssemblyDesc(AssemblyDescriptor previous, Architecture topLevelArch)
previous
- previous versiontopLevelArch
- top level architecture
public CodeBundle createCodeBundle(java.lang.String name, VersionedEntity entity)
name
- name of the code bundleentity
- entity for which code bundle has to be created
public CodeBundle createStandaloneCodeBundle(java.lang.String name)
name
- name of the code bundle
public CodeBundle createStandaloneCodeBundle(CodeBundle previous)
previous
- previous version
public DeploymentPlan createDeploymentPlan(java.lang.String name, AssemblyDescriptor assembly)
name
- name of the deployment planassembly
- assembly
public DeploymentPlan createDeploymentPlan(DeploymentPlan plan, AssemblyDescriptor assembly)
plan
- previous versionassembly
- assembly
public MicroComponent createMicroComponent(java.lang.String name)
name
- name of the micro component
public MicroComponent createMicroComponent(MicroComponent prev)
prev
- previous version
public MicroInterfaceType createMicroInterfaceType(java.lang.String name)
name
- name of the micro interface type
public MicroInterfaceType createMicroInterfaceType(MicroInterfaceType prev)
prev
- previous version
public Aspect createAspect(java.lang.String name)
name
- name of the aspect
public Aspect createAspect(Aspect prev)
prev
- previous version
public java.util.List<VersionedEntity> lookupEntityByName(java.lang.String name)
RepositoryUtil.lookupNamedEntityByName(String, RepositoryQuery)
.
name
- name of an entity
null
public VersionedEntity lookupEntityByTag(java.lang.String name, java.lang.String tag)
RepositoryUtil.lookupNamedEntityByTag(String, String, RepositoryQuery)
.
name
- entity nametag
- version tag
null
public VersionedEntity lookupEntityByVersion(java.lang.String name, java.lang.String version)
name
- name of an entityversion
- version identifier of an entity
null
public VersionedEntity lookupEntityByVersionOrTag(java.lang.String name, java.lang.String versionOrTag)
name
- name of an entityversionOrTag
- version or version tag identifier of an entity
null
public DeploymentPlan lookupDeploymentPlanByVersion(java.lang.String name, java.lang.String version)
name
- name of the deployment planversion
- version of the deployment plan
null
public VersionedEntity getLastHeadVersion(java.lang.String name)
null
if object does not exist.
name
- name of the given object
null
public RepositoryFacade.VersionMap createEmptyVersionMap()
version map
.
version map
public InterfaceType updateInterfaceType(java.io.File srcxmi, InterfaceType orig) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updated
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic Frame updateFrame(java.io.File srcxmi, Frame orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic Architecture updateArchitecture(java.io.File srcxmi, Architecture orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic AssemblyDescriptor updateAssembly(java.io.File srcxmi, AssemblyDescriptor orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic CodeBundle updateStandaloneCodeBundle(java.io.File srcxmi, CodeBundle orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic MicroInterfaceType updateMicroInterfaceType(java.io.File srcxmi, MicroInterfaceType orig) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updated
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic MicroComponent updateMicroComponent(java.io.File srcxmi, MicroComponent orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic Aspect updateAspect(java.io.File srcxmi, Aspect orig, RepositoryFacade.VersionMap vm) throws RepositoryFacade.RepositoryFacadeException
srcxmi
- xmi with new infoorig
- original object to be updatedvm
- version map for translating entities without given version
RepositoryFacade.RepositoryFacadeException
- if something bad happenedpublic boolean deleteEntity(VersionedEntity entity, boolean deleteDependencies) throws java.io.IOException
entity
- The entity to be deleteddeleteDependencies
- Should also the dependencies of the entity be deleted?
java.io.IOException
public boolean deleteEntities(VersionedEntity[] entityArray, boolean deleteDependencies) throws java.io.IOException
entityArray
- The entities to be deleteddeleteDependencies
- Should also the dependencies of the entities be deleted?
java.io.IOException
public VersionedEntity[] getDeletingDependencies(VersionedEntity entity)
entity
- the entity that's dependencies are to be returned
public VersionedEntity[] getDeletingDependencies(VersionedEntity[] entities)
entities
- the entities of which the dependencies are to be returned
public VersionedEntity[] cloneEntity(RepositoryConfiguration developmentRC, VersionedEntity entity) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entity
- VersionedEntity to be cloned.
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] cloneEntity(RepositoryConfiguration developmentRC, VersionedEntity entity, boolean dryRun, boolean seekDeps) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entity
- VersionedEntity to be cloned.dryRun
- Don't clone anything, only return, what should be cloned.seekDeps
- Seek dependencies hierarchically?
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] mergeEntity(RepositoryConfiguration developmentRC, VersionedEntity entity) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entity
- VersionedEntity to be merged.
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] mergeEntity(RepositoryConfiguration developmentRC, VersionedEntity entity, boolean dryRun, boolean seekDeps) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entity
- VersionedEntity to be merged.dryRun
- Don't clone anything, only return, what should be merged.seekDeps
- Seek dependencies hierarchically?
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] cloneEntities(RepositoryConfiguration developmentRC, VersionedEntity[] entities) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entities
- VersionedEntity to be cloned.
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] cloneEntities(RepositoryConfiguration developmentRC, VersionedEntity[] entities, boolean dryRun, boolean seekDeps) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entities
- VersionedEntity to be cloned.dryRun
- Don't clone anything, only return, what should be cloned.seekDeps
- Seek dependencies hierarchically?
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] mergeEntities(RepositoryConfiguration developmentRC, VersionedEntity[] entities) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entities
- VersionedEntity to be merged.
RepositoryCloner.RepositoryClonerException
public VersionedEntity[] mergeEntities(RepositoryConfiguration developmentRC, VersionedEntity[] entities, boolean dryRun, boolean seekDeps) throws RepositoryCloner.RepositoryClonerException
developmentRC
- Configuration of the development repository (host, port, context).entities
- VersionedEntity to be merged.dryRun
- Don't clone anything, only return, what should be merged.seekDeps
- Seek dependencies hierarchically?
RepositoryCloner.RepositoryClonerException
public boolean isLocked()
lock()
,
unlock()
,
SofaServlet
public boolean lock()
isLocked()
,
unlock()
,
SofaServlet
public boolean lock(long timeout)
timeout
- In seconds
isLocked()
,
unlock()
,
SofaServlet
public boolean lock(long timeout, long spinTime)
timeout
- In secondsspinTime
- Spin time in milliseconds - retry interval
isLocked()
,
unlock()
,
SofaServlet
public boolean unlock()
isLocked()
,
lock()
,
SofaServlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |