|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface tcImportOperationsIntf
Method Summary | |
---|---|
void |
acquireLock(boolean forcedAcquisition) Try to acquire the lock |
java.util.Collection |
addLastPreviewedFile() Add the file previewed before into the files to be imported. |
void |
addSubstitution(RootObject robj, java.lang.String name) Create a substitutions for a given root object. |
java.util.Collection |
addXMLFile(java.lang.String filename, java.lang.String content) Add a new XML File to import some more objects in the current session. |
RootObject |
findITResourceType(RootObject obj) Return IT Resource type |
java.util.Collection |
findITResourceTypeParams(RootObject obj) Return Collection which contains IT Resource type parameters |
LockOwner |
getCurrentLockInfo() Return information about the current owner of the lock |
java.util.Collection |
getFileList() Retrieve list of files currently added for import |
FilePreview |
getFilePreview(java.lang.String filename, java.lang.String content) Get the preview of a file. |
java.util.HashMap |
getImportMessages(java.util.Collection col) Get the import plan of selected objects. |
ImportView |
getImportView(java.util.Collection col) Get the import view. |
java.util.Collection |
getMissingDependencies(java.util.Collection selection, java.lang.String type) Return list of missing dependencies. |
java.util.HashMap |
getSubstitutions() get the current substitutions |
boolean |
isLockAcquired() Check to see if we have the lock |
java.util.Collection |
listPossibleSubstitutions(java.util.Collection col) Return a list of root objects that allow substitions, and are dependencies to the objects passed as collection. |
void |
performImport(java.util.Collection col) Perform the actual import operation on the selected objects. |
java.util.Collection |
removeFiles(java.util.Collection filenames) Removes the selected XML Files and recomputes what is going to happen. |
void |
removeSubstitution(RootObject robj) Remove substitutions for a given root object |
Methods inherited from interface Thor.API.Base.tcUtilityOperationsIntf |
---|
close, getName, setCountry, setLanguage, setVariant |
Method Detail |
---|
boolean isLockAcquired() throws tcAPIException
tcAPIException
LockOwner getCurrentLockInfo() throws tcAPIException
tcAPIException
void acquireLock(boolean forcedAcquisition) throws java.sql.SQLException, javax.naming.NamingException, DDMException, tcAPIException
forcedAcquisition
- True, if lock must be acquired regardless of another import in progressSQLException
NamingException
UnableToAcquireLock
DDMException
tcAPIException
java.util.Collection addXMLFile(java.lang.String filename, java.lang.String content) throws DDMException, TransformationException, tcAPIException
filename
- Filename of the file being imported. For tracking purposes.content
- Content of the file to be imported.DDMException
- Generic deployment manager errorTransformationException
- Input file version is different from the current version and transformation of the data to current version failed.DuplicateObjectException
- Same object is also being imported from a different file.tcAPIException
java.util.Collection removeFiles(java.util.Collection filenames) throws DDMException, TransformationException, tcAPIException
filenames
- Files to be removedDDMException
- Generic Deployment error during mergingTransformationException
- Input versions cannot be transformed to current versiontcAPIException
FilePreview getFilePreview(java.lang.String filename, java.lang.String content) throws DDMException, TransformationException, tcAPIException
DDMException
- Generic deployment manager exceptionTransformationException
- Transformation of the file failedDuplicateObjectException
- When the file being added conflicts with another objectstcAPIException
java.util.Collection getFileList() throws DDMException, tcAPIException
DDMException
tcAPIException
java.util.Collection addLastPreviewedFile() throws DDMException, tcAPIException
DDMException
tcAPIException
java.util.HashMap getImportMessages(java.util.Collection col) throws DDMException, tcAPIException
col
- Collection of RootObjectsDDMException
tcAPIException
ImportView getImportView(java.util.Collection col) throws DDMException, tcAPIException
col
- Collection of RootObjectsDDMException
tcAPIException
java.util.Collection listPossibleSubstitutions(java.util.Collection col) throws DDMException, tcAPIException
col
- collection of objects for which substitutions can be madeDDMException
- Deployment ErrortcAPIException
RootObject findITResourceType(RootObject obj) throws java.sql.SQLException, DDMException, tcAPIException
obj
- IT Resource ObjectDDMException
- Deployment Errorjava.sql.SQLException
tcAPIException
java.util.Collection findITResourceTypeParams(RootObject obj) throws java.sql.SQLException, DDMException, tcAPIException
obj
- IT Resource ObjectDDMException
- Deployment Errorjava.sql.SQLException
tcAPIException
void addSubstitution(RootObject robj, java.lang.String name) throws DDMException, java.sql.SQLException, tcAPIException
robj
- RootObjectname
- Name of the substitutionDDMException
java.sql.SQLException
tcAPIException
void removeSubstitution(RootObject robj) throws DDMException, tcAPIException
robj
- RootObjectDDMException
tcAPIException
java.util.HashMap getSubstitutions() throws DDMException, tcAPIException
DDMException
tcAPIException
void performImport(java.util.Collection col) throws DDMException, javax.naming.NamingException, tcBulkException, tcAPIException
col
- Collection of RootObjectsNamingException
DDMException
- General ExceptiontcBulkException
tcAPIException
java.util.Collection getMissingDependencies(java.util.Collection selection, java.lang.String type) throws DDMException, tcAPIException
selection
- List of objects selected for importtype
- Type of the objects interested in.DDMException
tcAPIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |