|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
com.ptc.netmarkets.nmixb.StandardNmIxbService
Use the newStandardNmIxbService
static factory method(s),
not the StandardNmIxbService
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static Object[] |
DEF_PARAMS
|
private static int[] |
FROM_INDICES
|
private static String |
RESOURCE
|
private static File |
saveDirectory
|
private Map |
userExpSessions
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardNmIxbService()
|
Method Summary | |
static URL |
_constructOutputURL(File tmpFile,
String archiveName)
|
private void |
_emitExportEvent(Object[] sources)
|
private void |
_resetArchiveMode()
|
private void |
checkArchiveName(String str)
|
private void |
cleanUpContentFiles(String location)
|
private void |
cleanupWorkFiles(List exportList)
|
static URL |
constructOutputURL(File tmpFile,
String fname)
|
private URL |
constructOutputURLWithEvent(File tmpFile,
String fname,
Object obj)
|
private URL |
constructOutputURLWithEvent(File tmpFile,
String fname,
Object[] objs)
|
private URL |
doExport(WTContainerRef contRef,
Object[] objs,
IxbDocument rules,
String archiveName)
|
private URL |
doExport(WTContainerRef contRef,
Object[] objs,
IxbDocument rules,
String archiveName,
boolean doFolders)
|
private URL |
doExport(WTContainerRef contRef,
Object[] objs,
IxbDocument rules,
String archiveName,
boolean doFolders,
boolean doViewables)
|
URL |
exportContainerAsExternalTemplate(ObjectIdentifier projectOid,
String archiveName,
TemplateGeneratorWorklist worklist,
GeneratedTemplateAttributes attrs)
This method creates a jar file and genreates an url that can be used by the client to download the file. |
private File |
exportContentFiles(QueryResult qr)
|
URL |
exportDocument(ObjectIdentifier docOid,
String archiveName)
This method exports a document into a file called called document-name.zip by getting the document name and passing it in to the method with the name in the signature. |
private File |
exportDocument(WTDocument doc)
|
URL |
exportDocuments(ObjectIdentifier[] docOids,
String archiveName)
This method exports a set of documents into a file called called file-name.zip by getting the document name and passing it in to the method with the name in the signature. |
private File |
exportDocuments(WTDocument[] docs)
|
URL |
exportFolderContentsWithMetadata(ObjectIdentifier folderOid,
String archiveName)
This method exports a set of objects in a given folder. |
URL |
exportFolderFiles(ObjectIdentifier folderOid,
String archiveName)
Supported API: false |
private URL |
exportObject(WTContainerRef contRef,
Object obj,
IxbDocument rules,
String archiveName)
|
URL |
exportProject(ObjectIdentifier projectOid,
String archiveName)
Supported API: false |
URL |
exportProjectDeliverables(ObjectIdentifier projectOid,
String archiveName)
This method exports all Deliverables for the project. |
URL |
exportProjectDocuments(ObjectIdentifier projectOid,
String archiveName,
boolean includeFolderStructure,
boolean includeViewables)
This method exports all documents in the project. |
URL |
exportProjectFiles(ObjectIdentifier projectOid,
String archiveName)
Supported API: false |
URL |
exportProjectFolders(ObjectIdentifier projectOid,
String archiveName)
This method exports all Folders for the project. |
URL |
exportProjectParts(ObjectIdentifier projectOid,
String archiveName,
boolean includeFolderStructure,
boolean includeViewables)
This method exports all parts in the project. |
URL |
exportProjectPlan(ObjectIdentifier projectOid,
String archiveName)
This method exports all Deliverables for the project. |
URL |
exportProjectTeam(ObjectIdentifier projectOid,
String archiveName,
boolean doMembers)
This method exports all teams in the project. |
URL |
exportProjectTemplateNodes(ObjectIdentifier projectOid,
String archiveName,
boolean doMilestones,
boolean doActivities)
This method exports the ProjectPlan including only a subset of nodes. |
static QueryResult |
findAllParts(WTContainerRef contRef)
|
private List |
findFolderDocs(Folder folder,
List results)
|
private QueryResult |
findFolderDocuments(Folder folder)
|
private QueryResult |
findProjectDocuments(Project2 proj)
|
private IxbDocument |
generateExportMappingRules(Folder folder)
|
private IxbDocument |
generateExportMappingRules(WTDocument document)
|
String |
getConceptualClassname()
Deprecated. |
private String |
getFileName(ApplicationData appl_data,
List contentFileNames,
int fileNum)
|
static InputStream |
getInputStreamFromContentItem(ContentItem item)
|
static File |
getSaveDirectory()
|
static TeamExportHolder |
getTeamHolder(ContainerTeamManaged prj)
|
void |
importDocumentsIntoFolder(ObjectIdentifier folderOid,
String archiveName)
This method imports the contents of the file into a folder. |
void |
importIntoContainer(ObjectIdentifier containerOid,
String archiveName)
Imports metadata and content into a container See the documentation for the supported types. |
static StandardNmIxbService |
newStandardNmIxbService()
Default factory for the class. |
protected void |
performStartupProcess()
Dummy method to be overridden by subclasses. |
static void |
postFeedback(String rb,
String key)
|
static void |
postFeedback(String rb,
String key,
Object[] params)
|
private void |
readArchiveMode()
|
protected void |
registerAsListener()
|
void |
resetArchiveMode()
Imports metadata and content into a container See the documentation for the supported types. |
void |
setArchiveMode(boolean archiveMode)
Imports metadata and content into a container See the documentation for the supported types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean VERBOSE
private static final int[] FROM_INDICES
private static final Object[] DEF_PARAMS
private static File saveDirectory
private Map userExpSessions
Constructor Detail |
public StandardNmIxbService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardNmIxbService newStandardNmIxbService() throws WTException
WTException
public URL exportDocument(ObjectIdentifier docOid, String archiveName) throws WTException
exportDocument
in interface NmIxbService
docOid
- archiveName
-
WTException
public URL exportDocuments(ObjectIdentifier[] docOids, String archiveName) throws WTException
exportDocuments
in interface NmIxbService
docOids
- archiveName
-
WTException
public URL exportProject(ObjectIdentifier projectOid, String archiveName) throws WTException
exportProject
in interface NmIxbService
projectOid
- archiveName
-
WTException
public URL exportProjectFiles(ObjectIdentifier projectOid, String archiveName) throws WTException
exportProjectFiles
in interface NmIxbService
projectOid
- archiveName
-
WTException
public URL exportFolderContentsWithMetadata(ObjectIdentifier folderOid, String archiveName) throws WTException
exportFolderContentsWithMetadata
in interface NmIxbService
folderOid
- archiveName
-
WTException
public URL exportFolderFiles(ObjectIdentifier folderOid, String archiveName) throws WTException
exportFolderFiles
in interface NmIxbService
folderOid
- archiveName
-
WTException
public URL exportProjectTeam(ObjectIdentifier projectOid, String archiveName, boolean doMembers) throws WTException
exportProjectTeam
in interface NmIxbService
projectOid
- archiveName
- doMembers
- If set to true, the projectmembers will be exported. If set to false, only the roles will be exported.
WTException
public URL exportProjectDeliverables(ObjectIdentifier projectOid, String archiveName) throws WTException
exportProjectDeliverables
in interface NmIxbService
projectOid
- archiveName
-
WTException
public URL exportProjectPlan(ObjectIdentifier projectOid, String archiveName) throws WTException
exportProjectPlan
in interface NmIxbService
projectOid
- archiveName
-
WTException
public void importDocumentsIntoFolder(ObjectIdentifier folderOid, String archiveName) throws WTException
importDocumentsIntoFolder
in interface NmIxbService
folderOid
- archiveName
-
WTException
public URL exportProjectFolders(ObjectIdentifier projectOid, String archiveName) throws WTException
exportProjectFolders
in interface NmIxbService
projectOid
- archiveName
-
WTException
public URL exportProjectDocuments(ObjectIdentifier projectOid, String archiveName, boolean includeFolderStructure, boolean includeViewables) throws WTException
exportProjectDocuments
in interface NmIxbService
projectOid
- archiveName
- includeFolderStructure
- includeViewables
-
WTException
public URL exportProjectParts(ObjectIdentifier projectOid, String archiveName, boolean includeFolderStructure, boolean includeViewables) throws WTException
exportProjectParts
in interface NmIxbService
projectOid
- archiveName
- includeFolderStructure
- includeViewables
-
WTException
public URL exportProjectTemplateNodes(ObjectIdentifier projectOid, String archiveName, boolean doMilestones, boolean doActivities) throws WTException
exportProjectTemplateNodes
in interface NmIxbService
projectOid
- archiveName
- doMilestones
- doActivities
-
WTException
public URL exportContainerAsExternalTemplate(ObjectIdentifier projectOid, String archiveName, TemplateGeneratorWorklist worklist, GeneratedTemplateAttributes attrs) throws WTException
exportContainerAsExternalTemplate
in interface NmIxbService
projectOid
- archiveName
- worklist
- attrs
- This contains the attributes of the template export file. To create this argument use the following code...
import wt.inf.template.GeneratedTemplateAttributes;
GeneratedTemplateAttributes attrs = new GeneratedTemplateAttributes(name,containerClassName)
//set other available attributes as desired
WTException
public void importIntoContainer(ObjectIdentifier containerOid, String archiveName) throws WTException
importIntoContainer
in interface NmIxbService
containerOid
- archiveName
-
WTException
public void setArchiveMode(boolean archiveMode) throws WTException
setArchiveMode
in interface NmIxbService
archiveMode
-
WTException
public void resetArchiveMode() throws WTException
resetArchiveMode
in interface NmIxbService
WTException
protected void performStartupProcess() throws ManagerException
StandardManager
performStartupProcess
in class StandardManager
ManagerException
protected void registerAsListener() throws WTException
WTException
private URL constructOutputURLWithEvent(File tmpFile, String fname, Object obj) throws WTException
WTException
private URL constructOutputURLWithEvent(File tmpFile, String fname, Object[] objs) throws WTException
WTException
public static URL constructOutputURL(File tmpFile, String fname) throws WTException
WTException
private void _emitExportEvent(Object[] sources) throws WTException
WTException
private File exportDocument(WTDocument doc) throws WTException
WTException
private File exportDocuments(WTDocument[] docs) throws WTException
WTException
private IxbDocument generateExportMappingRules(Folder folder) throws WTException
WTException
private IxbDocument generateExportMappingRules(WTDocument document) throws WTException
WTException
private URL exportObject(WTContainerRef contRef, Object obj, IxbDocument rules, String archiveName) throws WTException
WTException
private URL doExport(WTContainerRef contRef, Object[] objs, IxbDocument rules, String archiveName) throws WTException
WTException
private URL doExport(WTContainerRef contRef, Object[] objs, IxbDocument rules, String archiveName, boolean doFolders) throws WTException
WTException
private URL doExport(WTContainerRef contRef, Object[] objs, IxbDocument rules, String archiveName, boolean doFolders, boolean doViewables) throws WTException
WTException
private void checkArchiveName(String str) throws WTException
WTException
public static TeamExportHolder getTeamHolder(ContainerTeamManaged prj) throws WTException
WTException
private QueryResult findFolderDocuments(Folder folder) throws WTException
WTException
private List findFolderDocs(Folder folder, List results) throws WTException
WTException
private QueryResult findProjectDocuments(Project2 proj) throws WTException
WTException
private final File exportContentFiles(QueryResult qr) throws WTException
WTException
private String getFileName(ApplicationData appl_data, List contentFileNames, int fileNum)
private final void cleanupWorkFiles(List exportList)
public static final File getSaveDirectory() throws WTException
WTException
private void cleanUpContentFiles(String location) throws WTException
WTException
public static final void postFeedback(String rb, String key) throws WTException
WTException
public static final void postFeedback(String rb, String key, Object[] params) throws WTException
WTException
public static InputStream getInputStreamFromContentItem(ContentItem item) throws WTException
WTException
public static URL _constructOutputURL(File tmpFile, String archiveName) throws WTException
WTException
private void _resetArchiveMode() throws WTException
WTException
private void readArchiveMode() throws WTException
WTException
public static QueryResult findAllParts(WTContainerRef contRef) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |