|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repository
Field Summary | |
---|---|
static java.util.Vector |
builtinContainerNames
|
static Branch |
nullBranch
|
static DependencyLink |
nullDependencyLink
|
static DependencyMap |
nullDependencyMap
|
static MutableSnapshot |
nullMutableSnapshot
|
static Repository |
nullRepository
|
static RepositoryObject |
nullRepositoryObject
|
static ResolutionPolicy |
nullResolutionPolicy
|
static Resource |
nullResource
|
static ResourceMap |
nullResourceMap
|
static Snapshot |
nullSnapshot
|
static SnapshotMap |
nullSnapshotMap
|
static StorageManager |
nullStorageManager
|
static Version |
nullVersion
|
static VersionByResourceMap |
nullVersionByResourceMap
|
static VersionMap |
nullVersionMap
|
Method Summary | |
---|---|
void |
accept(RepositoryVisitor visitor)
|
java.lang.String |
addStorageManager(StorageManager manager)
Sets the active storage manager to the specified manager. |
Branch |
createBranch(java.lang.String branchName)
Create a new branch and assign the specified branch name to it. |
DependencyLink |
createDependency(java.lang.String dependencyType,
Version sourceVersion,
Resource targetResource,
ResolutionPolicy policy)
Create a new dependency between the specified Version and a target Resource, using the specified resolution policy. |
DependencyLink |
createDependency(java.lang.String dependencyType,
Version sourceVersion,
Resource targetResource,
ResolutionPolicy policy,
java.lang.Object sourceObject)
Factory method for creating new dependency instances based on the dependency type value. |
DependencyLink |
createDependency(java.lang.String dependencyClassName,
Version sourceVersion,
Resource targetResource,
java.lang.String resolutionPolicyClassName)
Creates a new dependency link instance of the specified class and using the specified resolution policy class. |
MutableSnapshot |
createMutableSnapshot(Branch br)
Creates a new mutable snapshot. |
MutableSnapshot |
createMutableSnapshot(Branch br,
java.lang.String name)
Creates a new mutable snapshot and names it. |
ResolutionPolicy |
createResolutionPolicy(java.lang.String policyType)
|
Resource |
createResource(java.lang.String resourceName)
Creates a new resource instance with the specified name. |
Snapshot |
createSnapshot(Branch branch,
MutableSnapshot snapshot,
java.util.Date commitTime)
Create a new immutable snapshot from an existing mutable snapshot. |
Version |
createVersion(java.lang.String name,
Resource res,
java.lang.Class versionSubClass)
Creates a new version instance of the specified class. |
Branch |
getBranch(java.lang.String branchId)
Returns the specified branch. |
Branch |
getBranchById(java.lang.String branchId)
Get a Branch by its repository ID. |
Branch |
getBranchByName(java.lang.String branchName)
|
long |
getBranchCount()
Returns the total number of branches in the repository. |
java.util.Map |
getBranches()
|
java.util.Set |
getBranchIds()
|
java.util.Set |
getBranchNames()
|
StorageManager |
getDefaultStorageManager()
|
java.util.Map |
getDependencies()
|
DependencyLink |
getDependencyById(java.lang.String objId)
|
long |
getDependencyCount()
Returns the total number of dependency objects in the repository. |
java.lang.Integer |
getId()
|
MutableSnapshot |
getMutableSnapshotById(java.lang.String objId)
Gets a mutable snapshot by ID |
long |
getMutableSnapshotCount()
|
SnapshotMap |
getMutableSnapshots()
|
java.lang.String |
getName()
Get the display name of the repository. |
Resource |
getNullResource()
|
Snapshot |
getNullSnapshot()
|
RepositoryObject |
getObjectById(java.lang.String objId)
Returns an object of any type given an object ID. |
ResolutionPolicy |
getPolicyById(java.lang.String token)
Gets the specified resolution policy. |
long |
getPolicyCount()
Returns the number of resolution policy objects in the repository. |
int |
getRepositoryObjectType(java.lang.String objId)
Returns the repository object ID constant for the object identified by the specified object ID. |
java.util.Map |
getResolutionPolicies()
Returns a map of all the resolution policies by object ID. |
Resource |
getResourceById(java.lang.String resId)
Gets a resource by its repository ID. |
Resource |
getResourceByKey(java.lang.String resourceName)
|
long |
getResourceCount()
|
java.util.Set |
getResourceIds()
List of all resource IDs. |
ResourceMap |
getResources()
|
Snapshot |
getSnapshotById(java.lang.String objId)
|
long |
getSnapshotCount()
|
SnapshotMap |
getSnapShots()
|
StorageManager |
getStorageManager(java.lang.String managerId)
Returns the storage manager with the specified ID, if it exists. |
Version |
getVersionById(java.lang.String verId)
|
long |
getVersionCount()
|
VersionMap |
getVersions()
|
boolean |
hasBranchNamed(java.lang.String branchName)
|
boolean |
hasResourceNamed(java.lang.String resourceName)
|
void |
importCompoundDoc(java.io.File compoundDocumentRootFile,
Branch branch,
User user,
java.lang.String docName)
Import a compound document into the repository. |
java.lang.String |
listVersionIds()
|
void |
registerBranchName(Branch branch,
java.lang.String name)
Register a new alias for the specified branch. |
void |
registerSnapshot(Snapshot snapshot)
|
void |
registerVersion(Version ver)
|
void |
setDefaultStorageManager(java.lang.String managerId)
Sets the storage manager that will store new storage objects by default. |
void |
setId(java.lang.Integer id)
|
void |
unRegisterBranchName(Branch branch,
java.lang.String alias)
Delete an alias entry for the specified branch. |
VersionMap |
whereUsedByTypeOnSnapshot(Resource resource,
Snapshot snapshot,
java.lang.Class versionClass)
Returns a version map of versions of the specified type visible on the specified snapshot that have a dependency relationship to the specified resource. |
VersionMap |
whereUsedByTypeOnSnapshot(Resource resource,
Snapshot snapshot,
java.lang.Class versionClass,
java.lang.String dependencyTypeName)
Returns a version map of versions of the specified type visible on the specified snapshot that have a dependency relationship of the specified type to the specified resource. |
VersionMap |
whereUsedOnSnapshot(Resource resource,
Snapshot snapshot)
Returns a version map of versions visible on the specified snapshot that have a dependency relationship to the specified resource. |
VersionMap |
whereUsedOnSnapshot(Resource resource,
Snapshot snapshot,
java.lang.String dependencyTypeName)
Returns a version map of versions visible on the specified snapshot that have a dependency of the specified type to the specified resource. |
Field Detail |
---|
static final Version nullVersion
static final StorageManager nullStorageManager
static final Resource nullResource
static final Branch nullBranch
static final RepositoryObject nullRepositoryObject
static final Snapshot nullSnapshot
static final MutableSnapshot nullMutableSnapshot
static final Repository nullRepository
static final ResourceMap nullResourceMap
static final VersionMap nullVersionMap
static final VersionByResourceMap nullVersionByResourceMap
static final SnapshotMap nullSnapshotMap
static final DependencyMap nullDependencyMap
static final DependencyLink nullDependencyLink
static final ResolutionPolicy nullResolutionPolicy
static final java.util.Vector builtinContainerNames
Method Detail |
---|
void setId(java.lang.Integer id)
java.lang.Integer getId()
Resource createResource(java.lang.String resourceName) throws NameNotUniqueException
resourceName
- The display name to use for the resource.
NameNotUniqueException
Branch createBranch(java.lang.String branchName) throws RepositoryException
branchName
- The name to use for the branch. This will act as an alias for the internal branch ID.
RepositoryException
void importCompoundDoc(java.io.File compoundDocumentRootFile, Branch branch, User user, java.lang.String docName) throws ImporterException, VersionCommitException, NoSuchPolicyTypeException, NoSuchDependencyTypeException, RepositoryException, VersionMutationException
cd1File
- The file to import. Currently expected to be an XML document.
ImporterException
VersionCommitException
NoSuchPolicyTypeException
NoSuchDependencyTypeException
RepositoryException
VersionMutationException
StorageManager getStorageManager(java.lang.String managerId)
managerId
- Branch getBranch(java.lang.String branchId) throws RepositoryException
string
-
RepositoryException
java.util.Set getBranchIds()
java.util.Set getBranchNames()
Branch getBranchByName(java.lang.String branchName)
boolean hasBranchNamed(java.lang.String branchName)
boolean hasResourceNamed(java.lang.String resourceName)
string
-
Resource getResourceByKey(java.lang.String resourceName)
string
-
Resource getResourceById(java.lang.String resId)
resId1
-
java.util.Map getBranches()
Branch getBranchById(java.lang.String branchId)
string
-
DependencyLink createDependency(java.lang.String dependencyType, Version sourceVersion, Resource targetResource, ResolutionPolicy policy) throws RepositoryException, NoSuchDependencyTypeException
dependencyType
- sourceVersion
- targetResource
- policy
-
RepositoryException
NoSuchDependencyTypeException
DependencyLink createDependency(java.lang.String dependencyClassName, Version sourceVersion, Resource targetResource, java.lang.String resolutionPolicyClassName) throws NoSuchDependencyTypeException, RepositoryException, NoSuchPolicyTypeException
dependencyClassName
- Name of the dependency type to instantiatesourceVersion
- The specific version that has the dependencytargetResource
- The resource on which the source version is dependentresolutionPolicyClassName
- The name of the resolution policy type to use for this
dependency.
RepositoryException
NoSuchDependencyTypeException
NoSuchPolicyTypeException
DependencyLink createDependency(java.lang.String dependencyType, Version sourceVersion, Resource targetResource, ResolutionPolicy policy, java.lang.Object sourceObject) throws NoSuchDependencyTypeException, RepositoryException
string
- string2
-
NoSuchDependencyTypeException
RepositoryException
ResolutionPolicy createResolutionPolicy(java.lang.String policyType) throws RepositoryException, NoSuchPolicyTypeException
string
-
RepositoryException
NoSuchPolicyTypeException
MutableSnapshot createMutableSnapshot(Branch br)
MutableSnapshot createMutableSnapshot(Branch br, java.lang.String name)
Version createVersion(java.lang.String name, Resource res, java.lang.Class versionSubClass) throws java.lang.InstantiationException, java.lang.IllegalAccessException
name
- Name (alias) for the version.res
- The resource this is a version ofsubClass
- The subsclass of version to instantiate
java.lang.InstantiationException
java.lang.IllegalAccessException
Version getVersionById(java.lang.String verId)
verId
-
java.lang.String listVersionIds()
VersionMap whereUsedOnSnapshot(Resource resource, Snapshot snapshot)
resource
- The resource whose usage is being queriedsnapshot
- The snapshot the result versionSet must be visible on.
VersionMap whereUsedOnSnapshot(Resource resource, Snapshot snapshot, java.lang.String dependencyTypeName)
resource
- The resource whose usage is being queriedsnapshot
- The snapshot the result versionSet must be visible on.dependencyTypeName
-
VersionMap whereUsedByTypeOnSnapshot(Resource resource, Snapshot snapshot, java.lang.Class versionClass)
resource
- The resource whose usage is being queriedsnapshot
- The snapshot the result versionSet must be visible on.
VersionMap whereUsedByTypeOnSnapshot(Resource resource, Snapshot snapshot, java.lang.Class versionClass, java.lang.String dependencyTypeName)
resource
- The resource whose usage is being queriedsnapshot
- The snapshot the result versionSet must be visible on.
java.util.Set getResourceIds()
Snapshot getSnapshotById(java.lang.String objId)
string
-
RepositoryObject getObjectById(java.lang.String objId)
objId
- The repository ID of the object to retrieve.
int getRepositoryObjectType(java.lang.String objId) throws SnapCMException
objId
-
SnapCMException
void registerSnapshot(Snapshot snapshot)
MutableSnapshot getMutableSnapshotById(java.lang.String objId)
objId
- ID of mutable snapshot.
Snapshot getNullSnapshot()
void unRegisterBranchName(Branch branch, java.lang.String alias)
branch
- The branch whose alias is to be unregistered.alias
- The alias value to unregister.void registerBranchName(Branch branch, java.lang.String name) throws RepositoryException
branch
- The branch to which the alias will be associated.alias
- The alias to be registered.
RepositoryException
void registerVersion(Version ver)
ResourceMap getResources()
VersionMap getVersions()
SnapshotMap getMutableSnapshots()
long getMutableSnapshotCount()
java.util.Map getDependencies()
DependencyLink getDependencyById(java.lang.String objId)
Resource getNullResource()
void accept(RepositoryVisitor visitor) throws java.lang.Throwable
java.lang.Throwable
Snapshot createSnapshot(Branch branch, MutableSnapshot snapshot, java.util.Date commitTime)
branch
- snapshot
- Mutable snapshot with which to initialize the new snapshot.commitTime
-
java.lang.String getName()
long getResourceCount()
long getSnapshotCount()
SnapshotMap getSnapShots()
long getDependencyCount()
long getBranchCount()
java.lang.String addStorageManager(StorageManager manager)
manager
-
void setDefaultStorageManager(java.lang.String managerId)
manager
- StorageManager getDefaultStorageManager()
long getVersionCount()
java.util.Map getResolutionPolicies()
long getPolicyCount()
ResolutionPolicy getPolicyById(java.lang.String token)
objId
- Policy object ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |