|
|||||||||
| Home >> All >> org >> acs >> damsel >> srvr >> [ repository overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.acs.damsel.srvr.repository
Class RepositoryMgr

java.lang.Objectorg.acs.damsel.srvr.repository.RepositoryMgr
- All Implemented Interfaces:
- java.io.Serializable
- public class RepositoryMgr
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Title: RepositoryMgr
Description: The RepositoryMgr Class manages the assets in the database. Assets can be added and removed from the database through the RepositoryMgr.
- Version:
- 1.0
| Field Summary | |
private static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
RepositoryMgr()
Default constructor |
|
| Method Summary | |
int |
addAsset(org.acs.damsel.srvr.asset.Asset a,
java.lang.String collectionName)
Adds a specified asset to the database. |
org.acs.damsel.srvr.asset.Asset |
getAsset(java.lang.String FileName)
Method retrieves an asset from the database given the asset's filename. |
java.util.Vector |
getRepositoryList()
Method retrieves a list of all repositories existing in the database. |
boolean |
isInAssetTable(org.acs.damsel.srvr.asset.Asset a)
Checks if a specified asset is contained in the database. |
int |
removeAsset(org.acs.damsel.srvr.asset.Asset a)
Removes a specified asset from the database if the asset is contained within the database. |
int |
removeAssetFromAllCollections(org.acs.damsel.srvr.asset.Asset a)
Removes the Asset only from the AssetsCollectionsTable, leaving it in the AssetTable. |
boolean |
removeAssetFromCollection(org.acs.damsel.srvr.asset.Asset asset,
java.lang.String collectionName)
Removes the specified asset from the collection. |
void |
updateAsset(org.acs.damsel.srvr.asset.Asset a)
Updates the specified assets entry in the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.log4j.Logger log
| Constructor Detail |
RepositoryMgr
public RepositoryMgr()
- Default constructor
| Method Detail |
getAsset
public org.acs.damsel.srvr.asset.Asset getAsset(java.lang.String FileName) throws java.sql.SQLException
- Method retrieves an asset from the database given the asset's filename.
isInAssetTable
public boolean isInAssetTable(org.acs.damsel.srvr.asset.Asset a) throws java.sql.SQLException
- Checks if a specified asset is contained in the database. Returns true
if contained in the database, false otherwise.
addAsset
public int addAsset(org.acs.damsel.srvr.asset.Asset a, java.lang.String collectionName) throws java.sql.SQLException
- Adds a specified asset to the database. The asset is added to the given
collection. If the collection is public, the Asset is also added to the
AllAssets collection. Note that AssetDB.addAsset checks to see if the asset
already belongs to the given collection or if the asset is already in the
AssetsTable. In those cases, the asset will not be added again.
removeAsset
public int removeAsset(org.acs.damsel.srvr.asset.Asset a) throws java.sql.SQLException
- Removes a specified asset from the database if the asset is contained
within the database. (Both the AssetsCollectionsTable AND the AssetTable)
removeAssetFromAllCollections
public int removeAssetFromAllCollections(org.acs.damsel.srvr.asset.Asset a) throws java.sql.SQLException
- Removes the Asset only from the AssetsCollectionsTable, leaving it in the
AssetTable.
removeAssetFromCollection
public boolean removeAssetFromCollection(org.acs.damsel.srvr.asset.Asset asset, java.lang.String collectionName) throws java.sql.SQLException
- Removes the specified asset from the collection. Checks if asset is in the
specified collection, if so, removes the asset from the collection (by
deleting the row in the AssetsCollectionsTable) and returns true. If asset
is not in the collection, returns false and does not remove.
updateAsset
public void updateAsset(org.acs.damsel.srvr.asset.Asset a) throws java.sql.SQLException
- Updates the specified assets entry in the database.
getRepositoryList
public java.util.Vector getRepositoryList() throws java.sql.SQLException
- Method retrieves a list of all repositories existing in the database.
|
|||||||||
| Home >> All >> org >> acs >> damsel >> srvr >> [ repository overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acs.damsel.srvr.repository.RepositoryMgr