public interface CentraSiteImporter
Modifier and Type | Method and Description |
---|---|
CentraSiteImporterCallback |
getImporterCallback()
Obtains the callback instance.
|
java.util.Collection<CentraSiteObject> |
importFile(java.lang.String fileName,
java.lang.String username,
java.lang.String password)
Imports the given file in CentraSite and creates the corresponding asset instance.
|
void |
initialize(CentraSiteSession session,
CentraSiteObject object)
Initializes the Importer implementation.
|
void |
setImporterCallback(CentraSiteImporterCallback callback)
Sets the callback for the importer.
|
void initialize(CentraSiteSession session, CentraSiteObject object) throws CLLException
session
- The CentraSiteSession
instanceobject
- The CentraSiteObject
instance to which the file may be attached
using AttachDocumentAction. If null
, then the file is imported from
Create Asset activity.CLLException
- If an error occurred while initializing the importervoid setImporterCallback(CentraSiteImporterCallback callback)
callback
- The CentraSiteImporterCallback
instanceCentraSiteImporterCallback getImporterCallback()
CentraSiteImporterCallback
instancejava.util.Collection<CentraSiteObject> importFile(java.lang.String fileName, java.lang.String username, java.lang.String password) throws CLLException
fileName
- The full file path/URL of the file to importusername
- The username to access the file (if fileName is a URL and is protected)password
- The password to access the file (if fileName is a URL and is protected)Collection
of CentraSiteObject
instances to saveCLLException
- If an error occurs while parsing the imported file
or while creating the asset instance