wt.ixb.handlers.netmarkets
Class IXServiceClone
java.lang.Object
wt.ixb.handlers.netmarkets.IXServiceClone
- public class IXServiceClone
- extends Object
These methods should be added to the API of the wt.ixb.clientAccess
service. Limited though this is, it is at least usable by a generic applet,
jsp, servlet, or html based client.
The primary purpose of this class is to ensure that the same procedure
is used export/import files as is used in product replication, it also
serves to streamline things in a manner appropriate to a PJL environemnt.
This class really should be moved.
Method Summary |
private List |
constructIgnoreList(String[] fnames)
|
File |
doExport(NmIXExportParameters ixparams)
|
boolean |
doImport(WTContainerRef target,
File dataFile,
IxbDocument ruleFile,
boolean targetIsFolder)
|
private void |
exportAdHocAcls(List adhocControlled,
Exporter exporter)
|
File |
exportDefinedObjectSet(WTContainerRef contRef,
File outFile,
Object[] objectSet,
IxbDocument ruleFile,
boolean includeFolders,
boolean doViewables)
|
File |
exportDefinedObjectSet(WTContainerRef contRef,
File outFile,
Object[] objectSet,
IxbDocument ruleFile,
boolean includeFolders,
boolean doViewables,
boolean doAdHocs)
This is a convenience method that can be used if the set of objects to be
exported is already known by the caller. |
private void |
exportFolderStructure(String[] genIds,
String[] genParams,
Exporter exp)
|
File |
exportProjectPlanSubset(File outFile,
ProjectPlan plan,
IxbDocument ruleFile,
boolean doActivities,
boolean doMilestones)
ProjectPlans are a little weird, we need to tune some settings in the ExportHandler since
there is a possibility that the user does not want to export the whole plan. |
Set |
filterObjects(Set res,
WTContainerRef source_ref)
|
private static String |
getIdStr(Object obj)
|
private ObjectIdentifier |
getOid(Object obj)
|
private boolean |
isShared(Object obj,
WTContainerRef containerRef)
|
private boolean |
isTypeDefinition(Persistable obj)
|
private void |
setArchiveMode(Exporter exp)
|
private String |
showObjs(Collection objs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_IS_TAG
private static final String NAME_IS_TAG
- See Also:
- Constant Field Values
_rb
private static final String _rb
- See Also:
- Constant Field Values
EPM_NAVIGATOR
private static final String EPM_NAVIGATOR
- See Also:
- Constant Field Values
DEF_PARAMS
private static final Object[] DEF_PARAMS
TYPE_DEF_CLASS
private static final Class TYPE_DEF_CLASS
TYPE_DEF_MASTER_CLASS
private static final Class TYPE_DEF_MASTER_CLASS
IXServiceClone
public IXServiceClone()
filterObjects
public Set filterObjects(Set res,
WTContainerRef source_ref)
throws WTException
- Throws:
WTException
doExport
public File doExport(NmIXExportParameters ixparams)
throws WTException
- Throws:
WTException
exportFolderStructure
private void exportFolderStructure(String[] genIds,
String[] genParams,
Exporter exp)
throws WTException
- Throws:
WTException
exportAdHocAcls
private void exportAdHocAcls(List adhocControlled,
Exporter exporter)
throws WTException
- Throws:
WTException
exportDefinedObjectSet
public File exportDefinedObjectSet(WTContainerRef contRef,
File outFile,
Object[] objectSet,
IxbDocument ruleFile,
boolean includeFolders,
boolean doViewables)
throws WTException
- Throws:
WTException
exportDefinedObjectSet
public File exportDefinedObjectSet(WTContainerRef contRef,
File outFile,
Object[] objectSet,
IxbDocument ruleFile,
boolean includeFolders,
boolean doViewables,
boolean doAdHocs)
throws WTException
- This is a convenience method that can be used if the set of objects to be
exported is already known by the caller. There are cases where you might
want to have a class drive a customized export. In which case a holder
class may be passed in instead of a genuine persistable.
- Throws:
WTException
exportProjectPlanSubset
public File exportProjectPlanSubset(File outFile,
ProjectPlan plan,
IxbDocument ruleFile,
boolean doActivities,
boolean doMilestones)
throws WTException
- ProjectPlans are a little weird, we need to tune some settings in the ExportHandler since
there is a possibility that the user does not want to export the whole plan.
- Throws:
WTException
doImport
public boolean doImport(WTContainerRef target,
File dataFile,
IxbDocument ruleFile,
boolean targetIsFolder)
throws WTException
- Throws:
WTException
constructIgnoreList
private List constructIgnoreList(String[] fnames)
throws WTException
- Throws:
WTException
isTypeDefinition
private boolean isTypeDefinition(Persistable obj)
throws WTException
- Throws:
WTException
isShared
private boolean isShared(Object obj,
WTContainerRef containerRef)
throws WTException
- Throws:
WTException
setArchiveMode
private void setArchiveMode(Exporter exp)
throws WTException
- Throws:
WTException
showObjs
private String showObjs(Collection objs)
throws WTException
- Throws:
WTException
getOid
private ObjectIdentifier getOid(Object obj)
throws WTException
- Throws:
WTException
getIdStr
private static String getIdStr(Object obj)
throws WTException
- Throws:
WTException