|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.mtdesktop.fileutility.AssetRegistry
public class AssetRegistry
The Class AssetRegistry.
Method Summary | |
---|---|
void |
addFileTransferListener(FileTransferListener listener)
Adds the file transfer listener. |
boolean |
getAsset(java.lang.String siteUrl,
java.lang.String assetName,
java.lang.String destinationPath)
Gets the asset. |
boolean |
getAssets(java.lang.String destinationPath)
Gets the assets. |
static AssetRegistry |
getInstance()
Gets the single instance of AssetRegistry. |
Uploader |
getUploader()
Gets the uploader. |
boolean |
isRegistered(java.lang.String assetName)
Checks if is registered. |
boolean |
registerAsset(java.lang.String ftpServletUrl,
java.lang.String assetId,
java.io.File file)
Register asset. |
boolean |
registerAsset(java.lang.String ftpServletUrl,
java.lang.String assetId,
java.lang.String filePath)
Register asset. |
void |
removeAllFileTransferListeners()
Removes the all file transfer listeners. |
void |
removeFileTransferListener(FileTransferListener listener)
Removes the file transfer listener. |
boolean |
unregisterAsset(java.lang.String assetName)
Unregister asset. |
void |
unregisterAssets()
Unregister assets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AssetRegistry getInstance()
public void addFileTransferListener(FileTransferListener listener)
listener
- the listenerpublic boolean getAsset(java.lang.String siteUrl, java.lang.String assetName, java.lang.String destinationPath) throws java.net.MalformedURLException, java.io.IOException
siteUrl
- the site urlassetName
- the asset namedestinationPath
- the destination path
java.net.MalformedURLException
- the malformed url exception
java.io.IOException
- Signals that an I/O exception has occurred.public boolean getAssets(java.lang.String destinationPath)
destinationPath
- the destination path
public Uploader getUploader()
public boolean isRegistered(java.lang.String assetName)
assetName
- the asset name
public boolean registerAsset(java.lang.String ftpServletUrl, java.lang.String assetId, java.io.File file) throws java.io.IOException
ftpServletUrl
- the ftp servlet urlassetId
- the asset idfile
- the file
java.io.IOException
- Signals that an I/O exception has occurred.public boolean registerAsset(java.lang.String ftpServletUrl, java.lang.String assetId, java.lang.String filePath) throws java.io.IOException
ftpServletUrl
- the ftp servlet urlassetId
- the asset idfilePath
- the file path
java.io.IOException
- Signals that an I/O exception has occurred.public void removeAllFileTransferListeners()
public void removeFileTransferListener(FileTransferListener listener)
listener
- the listenerpublic boolean unregisterAsset(java.lang.String assetName)
assetName
- the asset name
public void unregisterAssets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |