|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.versionmanager.VersionManagerURI
public class VersionManagerURI
URIs used by the version manager are of the form DEV_LINE = atgvm://versionmanager/development-line-name REPOSITORY_ITEM = atgvm://versionmanager/versioned-repository-name/item-descriptor-name/item-id#version-id VIRTUAL_FILE = atgvm://versionmanager/versioned-virtual-filesystem-name/virtual-file-path#version NOTE: A version manager URI is not thread-safe. Use a new one in each thread.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static int |
DEV_LINE
|
static int |
DEV_LINE_NAME
|
static int |
DEV_LINE_UID
|
static java.lang.String |
METHOD
|
static int |
REPOSITORY_ITEM
|
static int |
REPOSITORY_ITEM_DESCRIPTOR
|
static int |
REPOSITORY_ITEM_ID
|
static int |
REPOSITORY_NAME
|
static int |
REPOSITORY_VERSION
|
static int |
REPOSITORY_VIRTUAL_FILE
|
static int |
VERMAN_NAME
|
static int |
VERSION_MANAGER
|
static int |
VIRTUAL_FILE
|
static int |
VIRTUAL_FILE_PATH
|
static int |
VIRTUAL_FILE_VERSION
|
static int |
VVFS_NAME
|
Constructor Summary | |
---|---|
VersionManagerURI()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getAssetVersion()
Get the asset version of this URI. |
java.lang.String |
getNameURIPart()
|
static java.lang.String |
getPartSeparator()
|
Repository |
getRepository(VersionManager pVersionManager)
Return the repository component configured with the given version manager and which was used to create this uri. |
java.lang.String |
getRepositoryID()
Return the repository ID of the asset that this URI points to. |
RepositoryItemDescriptor |
getRepositoryItemDescriptor(VersionManager pVersionManager)
Return the item descriptor type that this URI points to. |
java.lang.String |
getRepositoryItemDescriptorName(VersionManager pVersionManager)
Return the item descriptor type name that this URI points to. |
static VersionManagerURI |
getRVFSURI(java.lang.String versionManagerName,
java.lang.String repositoryName,
java.lang.String itemName,
java.lang.String itemId,
java.lang.Integer version)
This is the preferend method of creating a file asset URI. |
int |
getType()
Gets the type of this URI. |
static VersionManagerURI |
getURI(int uriType,
java.lang.String stringFormOfURI)
Creates a VersionManagerAPI from a string, passing one of DEV_LINE, REPOSITORY_ITEM or VIRTUAL_FILE to indicate what the URI type is. |
static VersionManagerURI |
getURI(int uriType,
VersionManagerURI uriRoot,
java.lang.String version)
Creates a VersionManagerAPI from a string, passing one of DEV_LINE, REPOSITORY_ITEM or VIRTUAL_FILE to indicate what the URI type is. |
static VersionManagerURI |
getURI(java.lang.String versionManagerName,
java.lang.String repositoryName,
java.lang.String itemName,
java.lang.String itemId)
|
static VersionManagerURI |
getURI(java.lang.String versionManagerName,
java.lang.String repositoryName,
java.lang.String itemName,
java.lang.String itemId,
java.lang.Integer version)
|
static VersionManagerURI |
getURI(java.lang.String stringFormOfURI,
VersionManager pVersionManager)
Creates a VersionManagerAPI from a string. |
java.lang.String |
getURIPart(int part)
Returns the part of the URI at the given index, parsing using the rules for the given type of URI. |
java.lang.String |
getURIString()
Returns the URI as a String. |
VersionID |
getVersionID()
|
VersionManagerURI |
getVersionlessURI()
|
static java.lang.String |
getVersionSeparator()
|
static VersionManagerURI |
getVFSURI(java.lang.String versionManagerName,
java.lang.String vfsServiceName,
java.lang.String vfsPath,
java.lang.Integer version)
Deprecated. use getRVFSURI() instead. |
atg.vfs.repository.RepositoryVirtualFileSystem |
getVirtualFileSystem(VersionManager pVersionManager)
Return the virtual file system component configured with the given version manager and which was used to create this uri if this is a repository for a VirtualFile asset. |
int |
hashCode()
|
boolean |
isFileFolder(VersionManager pVersionManager)
Does this URI represent a file folder. |
boolean |
isParentOfURI(VersionManagerURI otherURI)
Returns true if the given URI belongs to the same namespace as this URI. |
boolean |
isValid()
Checks to see that the URI is not missing any parts. |
boolean |
setFullURI(int uriType,
java.lang.String stringFormOfURI)
Fills in a VersionManagerURI by taking a complete URI including the method. |
java.lang.String |
toString()
Returns the URI as a String |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final int VERSION_MANAGER
public static final int DEV_LINE
public static final int REPOSITORY_ITEM
public static final int VIRTUAL_FILE
public static final int REPOSITORY_VIRTUAL_FILE
public static final java.lang.String METHOD
public static final int VERMAN_NAME
public static final int REPOSITORY_NAME
public static final int REPOSITORY_ITEM_DESCRIPTOR
public static final int REPOSITORY_ITEM_ID
public static final int REPOSITORY_VERSION
public static final int VVFS_NAME
public static final int VIRTUAL_FILE_PATH
public static final int VIRTUAL_FILE_VERSION
public static final int DEV_LINE_NAME
public static final int DEV_LINE_UID
Constructor Detail |
---|
public VersionManagerURI()
Method Detail |
---|
public static VersionManagerURI getURI(java.lang.String stringFormOfURI, VersionManager pVersionManager)
stringFormOfURI
- the URI string
public static VersionManagerURI getURI(int uriType, java.lang.String stringFormOfURI)
stringFormOfURI
-
public static VersionManagerURI getURI(int uriType, VersionManagerURI uriRoot, java.lang.String version)
stringFormOfURI
-
public static VersionManagerURI getVFSURI(java.lang.String versionManagerName, java.lang.String vfsServiceName, java.lang.String vfsPath, java.lang.Integer version)
versionManagerName
- vfsServiceName
- vfsPath
- version
-
public static VersionManagerURI getRVFSURI(java.lang.String versionManagerName, java.lang.String repositoryName, java.lang.String itemName, java.lang.String itemId, java.lang.Integer version)
versionManagerName
- repositoryName
- the name of the ContentRepository underneath the RepositoryFileSystemitemName
- ContentRepositoryItem or ContentRepositoryFolder's item descriptor name.itemId
- the repository ID of the item.version
-
public static VersionManagerURI getURI(java.lang.String versionManagerName, java.lang.String repositoryName, java.lang.String itemName, java.lang.String itemId, java.lang.Integer version)
public static VersionManagerURI getURI(java.lang.String versionManagerName, java.lang.String repositoryName, java.lang.String itemName, java.lang.String itemId)
public boolean setFullURI(int uriType, java.lang.String stringFormOfURI)
stringFormOfURI
- public boolean isFileFolder(VersionManager pVersionManager) throws VersionException
VersionException
public boolean isParentOfURI(VersionManagerURI otherURI)
otherURI
-
public boolean isValid()
public int getType()
public java.lang.String getURIPart(int part)
public java.lang.String getNameURIPart()
public VersionManagerURI getVersionlessURI()
public VersionID getVersionID()
public java.lang.String getURIString()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public static java.lang.String getPartSeparator()
public static java.lang.String getVersionSeparator()
public Repository getRepository(VersionManager pVersionManager)
pVersionManager
-
public RepositoryItemDescriptor getRepositoryItemDescriptor(VersionManager pVersionManager) throws RepositoryException
pVersionManager
-
RepositoryException
public java.lang.String getRepositoryItemDescriptorName(VersionManager pVersionManager) throws RepositoryException
pVersionManager
-
RepositoryException,
- VersionRuntimeException
RepositoryException
public java.lang.String getRepositoryID()
public atg.vfs.repository.RepositoryVirtualFileSystem getVirtualFileSystem(VersionManager pVersionManager)
pVersionManager
-
public java.lang.Integer getAssetVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |