com.ptc.netmarkets.templates
Class StandardNmTemplatesService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.netmarkets.templates.StandardNmTemplatesService
All Implemented Interfaces:
Manager, NetFactor, NmTemplatesService, Serializable

public class StandardNmTemplatesService
extends StandardManager
implements NmTemplatesService, Serializable

Use the newStandardNmTemplatesService static factory method(s), not the StandardNmTemplatesService 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

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
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
StandardNmTemplatesService()
           
 
Method Summary
 NmChangeModel[] create(NmCommandBean cb, NmTemplate nmTemplate, String tempFile)
          

Supported API: false
 NmChangeModel[] delete(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] disable(NmCommandBean cb)
          

Supported API: false
 String download(NmOid nmOid)
          

Supported API: false
 NmChangeModel[] enable(NmCommandBean cb)
          

Supported API: false
 ArrayList getCADDocumentRowData(EPMDocument epmDoc, Locale locale)
          

Supported API: false
private  NmChangeModel getChangeModel(NmTemplate nmTemplate, int changeType, Locale locale, NmCommandBean cb)
           
 String getConceptualClassname()
          Deprecated.  
private  String getContainerClassName(String templateType)
           
private  String getDisplayTemplateType(DefaultWTContainerTemplate template)
           
 ArrayList getDocumentRowData(NmDocument nmDocument, Locale locale, String context)
          

Supported API: false
private  String[] getDupErrorMsgInserts(NmTemplate nmTemplate)
           
 ArrayList getLifeCycleRowData(LifeCycleTemplate lifecycle, Locale locale, String context)
          

Supported API: false
private  NmTemplate getNmTemplate(DefaultWTContainerTemplate template)
           
 NmTemplate getNmTemplate(NmOid oid)
          

Supported API: false
 ArrayList getReportRowData(ReportTemplate report, Locale locale)
          

Supported API: false
 ArrayList getRowData(NmTemplate nmTemplate, Locale locale)
          

Supported API: false
 ArrayList getTeamRowData(TeamTemplate team, Locale locale)
          

Supported API: false
 NmTemplate getTemplateProperties(NmCommandBean cb)
          

Supported API: false
private  String getTemplateType(DefaultWTContainerTemplate template)
           
 String getTemplateType(NmOid oid)
          

Supported API: false
 ArrayList getWorkflowRowData(WfProcessTemplate workflow, Locale locale)
          

Supported API: false
private  boolean isCADDocumentTemplate(String templateType)
           
private  boolean isDocumentTemplate(String templateType)
           
private  boolean isLibrary(String context)
           
private  boolean isLibraryTemplate(String templateType)
           
private  boolean isLifeCycleTemplate(String templateType)
           
private  boolean isOrg(String context)
           
private  boolean isOrgTemplate(String templateType)
           
private  boolean isProduct(String context)
           
private  boolean isProductTemplate(String templateType)
           
private  boolean isProject(String context)
           
private  boolean isProjectTemplate(String templateType)
           
private  boolean isReportTemplate(String templateType)
           
private  boolean isSite(String context)
           
private  boolean isTeamTemplate(String templateType)
           
private  boolean isWorkflowTemplate(String templateType)
           
 NmHTMLTable list(NmCommandBean cb, String templateType)
          

Supported API: false
 NmDefaultHTMLTable listHistory(NmCommandBean cb)
          

Supported API: false
static StandardNmTemplatesService newStandardNmTemplatesService()
          Default factory for the class.
 NmChangeModel[] saveas(NmCommandBean cb, NmTemplate nmTemplate)
          

Supported API: false
 NmChangeModel[] update(NmCommandBean cb, NmTemplate nmTemplate, String tempFile)
          

Supported API: false
 NmModel view(NmCommandBean cb)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, performStartupProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

StandardNmTemplatesService

public StandardNmTemplatesService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

newStandardNmTemplatesService

public static StandardNmTemplatesService newStandardNmTemplatesService()
                                                                throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardNmTemplatesService
Throws:
WTException

list

public NmHTMLTable list(NmCommandBean cb,
                        String templateType)
                 throws WTException


Supported API: false

Specified by:
list in interface NmTemplatesService
Parameters:
cb -
templateType -
Returns:
NmHTMLTable
Throws:
WTException

create

public NmChangeModel[] create(NmCommandBean cb,
                              NmTemplate nmTemplate,
                              String tempFile)
                       throws WTException


Supported API: false

Specified by:
create in interface NmTemplatesService
Parameters:
cb -
nmTemplate -
tempFile -
Returns:
NmChangeModel[]
Throws:
WTException

update

public NmChangeModel[] update(NmCommandBean cb,
                              NmTemplate nmTemplate,
                              String tempFile)
                       throws WTException


Supported API: false

Specified by:
update in interface NmTemplatesService
Parameters:
cb -
nmTemplate -
tempFile -
Returns:
NmChangeModel[]
Throws:
WTException

saveas

public NmChangeModel[] saveas(NmCommandBean cb,
                              NmTemplate nmTemplate)
                       throws WTException


Supported API: false

Specified by:
saveas in interface NmTemplatesService
Parameters:
cb -
nmTemplate -
Returns:
NmChangeModel[]
Throws:
WTException

enable

public NmChangeModel[] enable(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
enable in interface NmTemplatesService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

disable

public NmChangeModel[] disable(NmCommandBean cb)
                        throws WTException


Supported API: false

Specified by:
disable in interface NmTemplatesService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getRowData

public ArrayList getRowData(NmTemplate nmTemplate,
                            Locale locale)
                     throws WTException


Supported API: false

Specified by:
getRowData in interface NmTemplatesService
Parameters:
nmTemplate -
locale -
Returns:
ArrayList
Throws:
WTException

getNmTemplate

public NmTemplate getNmTemplate(NmOid oid)
                         throws WTException


Supported API: false

Specified by:
getNmTemplate in interface NmTemplatesService
Parameters:
oid -
Returns:
NmTemplate
Throws:
WTException

view

public NmModel view(NmCommandBean cb)
             throws WTException


Supported API: false

Specified by:
view in interface NmTemplatesService
Parameters:
cb -
Returns:
NmModel
Throws:
WTException

getTemplateProperties

public NmTemplate getTemplateProperties(NmCommandBean cb)
                                 throws WTException


Supported API: false

Specified by:
getTemplateProperties in interface NmTemplatesService
Parameters:
cb -
Returns:
NmTemplate
Throws:
WTException

getTemplateType

public String getTemplateType(NmOid oid)
                       throws WTException


Supported API: false

Specified by:
getTemplateType in interface NmTemplatesService
Parameters:
oid -
Returns:
String
Throws:
WTException

getDocumentRowData

public ArrayList getDocumentRowData(NmDocument nmDocument,
                                    Locale locale,
                                    String context)
                             throws WTException


Supported API: false

Specified by:
getDocumentRowData in interface NmTemplatesService
Parameters:
nmDocument -
locale -
context -
Returns:
ArrayList
Throws:
WTException

getLifeCycleRowData

public ArrayList getLifeCycleRowData(LifeCycleTemplate lifecycle,
                                     Locale locale,
                                     String context)
                              throws WTException


Supported API: false

Specified by:
getLifeCycleRowData in interface NmTemplatesService
Parameters:
lifecycle -
locale -
context -
Returns:
ArrayList
Throws:
WTException

getWorkflowRowData

public ArrayList getWorkflowRowData(WfProcessTemplate workflow,
                                    Locale locale)
                             throws WTException


Supported API: false

Specified by:
getWorkflowRowData in interface NmTemplatesService
Parameters:
workflow -
locale -
Returns:
ArrayList
Throws:
WTException

getReportRowData

public ArrayList getReportRowData(ReportTemplate report,
                                  Locale locale)
                           throws WTException


Supported API: false

Specified by:
getReportRowData in interface NmTemplatesService
Parameters:
report -
locale -
Returns:
ArrayList
Throws:
WTException

getTeamRowData

public ArrayList getTeamRowData(TeamTemplate team,
                                Locale locale)
                         throws WTException


Supported API: false

Specified by:
getTeamRowData in interface NmTemplatesService
Parameters:
team -
locale -
Returns:
ArrayList
Throws:
WTException

download

public String download(NmOid nmOid)
                throws WTException


Supported API: false

Specified by:
download in interface NmTemplatesService
Parameters:
nmOid -
Returns:
String
Throws:
WTException

getCADDocumentRowData

public ArrayList getCADDocumentRowData(EPMDocument epmDoc,
                                       Locale locale)
                                throws WTException


Supported API: false

Specified by:
getCADDocumentRowData in interface NmTemplatesService
Parameters:
epmDoc -
locale -
Returns:
ArrayList
Throws:
WTException

listHistory

public NmDefaultHTMLTable listHistory(NmCommandBean cb)
                               throws WTException


Supported API: false

Specified by:
listHistory in interface NmTemplatesService
Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

delete

public NmChangeModel[] delete(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
delete in interface NmTemplatesService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getContainerClassName

private String getContainerClassName(String templateType)

getTemplateType

private String getTemplateType(DefaultWTContainerTemplate template)

getDisplayTemplateType

private String getDisplayTemplateType(DefaultWTContainerTemplate template)
                               throws WTException
Throws:
WTException

isSite

private boolean isSite(String context)

isOrg

private boolean isOrg(String context)

isProject

private boolean isProject(String context)

isProduct

private boolean isProduct(String context)

isLibrary

private boolean isLibrary(String context)

isDocumentTemplate

private boolean isDocumentTemplate(String templateType)

isCADDocumentTemplate

private boolean isCADDocumentTemplate(String templateType)

isLibraryTemplate

private boolean isLibraryTemplate(String templateType)

isLifeCycleTemplate

private boolean isLifeCycleTemplate(String templateType)

isOrgTemplate

private boolean isOrgTemplate(String templateType)

isProductTemplate

private boolean isProductTemplate(String templateType)

isProjectTemplate

private boolean isProjectTemplate(String templateType)

isReportTemplate

private boolean isReportTemplate(String templateType)

isTeamTemplate

private boolean isTeamTemplate(String templateType)

isWorkflowTemplate

private boolean isWorkflowTemplate(String templateType)

getChangeModel

private NmChangeModel getChangeModel(NmTemplate nmTemplate,
                                     int changeType,
                                     Locale locale,
                                     NmCommandBean cb)
                              throws WTException
Throws:
WTException

getNmTemplate

private NmTemplate getNmTemplate(DefaultWTContainerTemplate template)
                          throws WTException
Throws:
WTException

getDupErrorMsgInserts

private String[] getDupErrorMsgInserts(NmTemplate nmTemplate)
                                throws WTException
Throws:
WTException