|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.AssetIdentification
public class AssetIdentification
Provides the unique identification for an asset: all that is necessary to identify an asset.
| Constructor Summary | |
|---|---|
AssetIdentification()
Construct an empty identification. |
|
AssetIdentification(java.lang.String GUID,
java.lang.String version)
Convenience constructor to create fully filled in. |
|
AssetIdentification(java.lang.String GUID,
java.lang.String version,
boolean pending)
Convenience constructor to create fully filled in. |
|
AssetIdentification(java.lang.String GUID,
java.lang.String version,
boolean pending,
RepositoryIdentification repositoryIdentification)
Convenience constructor to create fully filled in. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getGUID()
|
RepositoryIdentification |
getRepositoryIdentification()
Optionally provide information about which repository this asset belongs to. |
java.lang.String |
getVersion()
|
int |
hashCode()
|
boolean |
isPendingAsset()
Answer whether this is a pending asset or a main asset. |
void |
setGUID(java.lang.String id)
|
void |
setPendingAsset(boolean pendingAsset)
Set whether this is a pending asset or a main asset. |
void |
setRepositoryIdentification(RepositoryIdentification repositoryIdentification)
Optionally set information about which repository this asset is from |
void |
setVersion(java.lang.String version)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssetIdentification()
public AssetIdentification(java.lang.String GUID,
java.lang.String version)
GUID - external id of the asset.version - the version of the asset.
public AssetIdentification(java.lang.String GUID,
java.lang.String version,
boolean pending)
GUID - external id of the asset.version - the version of the asset.fPendingAsset - true if submission asset, false if not main asset.
Repository ID will default to null
public AssetIdentification(java.lang.String GUID,
java.lang.String version,
boolean pending,
RepositoryIdentification repositoryIdentification)
GUID - external id of the asset.version - the version of the asset.fPendingAsset - true if submission asset, false if not main asset.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getGUID()
public void setGUID(java.lang.String id)
the - unique id for this asset.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the version of this asset.public boolean isPendingAsset()
true if this is a submission asset, false if this is the main asset.public void setPendingAsset(boolean pendingAsset)
pendingAsset - true if this is a submission asset, false if this is the main asset.public RepositoryIdentification getRepositoryIdentification()
null if one is not available.public void setRepositoryIdentification(RepositoryIdentification repositoryIdentification)
repositoryIdentification - The repositoryIdentification to set.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||