|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
com.ptc.netmarkets.document.StandardNmDocumentService
Use the newStandardNmDocumentService
static factory method(s),
not the StandardNmDocumentService
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 String |
DOC_CREATE_NAME_RESOURCE
|
private static String |
ENTERPRISE_RESOURCE
|
private static Boolean |
hasGlobalTemplates
|
private static String |
OBJECT_RESOURCE
|
private static String |
RESOURCE
|
private static String |
SECONDARY_EXCLUDE
|
private static boolean |
VERBOSE
|
private static VisualizationHelperIfc |
visHelper
|
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 | |
StandardNmDocumentService()
|
Method Summary | |
void |
addAttachment(NmCommandBean cb)
Supported API: false |
NmOid |
create(NmCommandBean cb,
NmDocument nmDocument,
String tempFile)
Supported API: false |
NmOid |
createFromTemplate(NmCommandBean cb,
NmDocument nmDocument,
String templateOid)
Supported API: false |
NmChangeModel[] |
disable(NmCommandBean cb)
Supported API: false |
String |
download(NmOid nmOid)
Supported API: false |
String |
edit(NmCommandBean cb)
Supported API: false |
String |
edit(NmOid docOid)
Supported API: false |
String |
edit(NmOid docOid,
boolean redirect)
Supported API: false |
NmChangeModel[] |
enable(NmCommandBean cb)
Supported API: false |
String |
getConceptualClassname()
Deprecated. |
HashMap |
getDocDetailsModels(NmCommandBean cb,
boolean showOld)
Supported API: false |
NmDocument |
getDocumentProperties(NmCommandBean cb)
Supported API: false |
NmDocument |
getDocumentProperties(NmOid nmOid)
Supported API: false |
NmDocument |
getDocumentProperties(NmOid oid,
boolean viewOld)
Supported API: false |
private String |
getFileSize(ApplicationData file)
Returns a String containing the size of the given file in Kilobytes. |
NmDocument |
getMinimalDocumentProperties(NmOid nmOid)
Supported API: false |
NmDocument |
getMinimalDocumentProperties(NmOid nmOid,
Persistable ref)
Supported API: false |
NmDocument |
getNmDocument(NmCommandBean cb)
Supported API: false |
NmDocument |
getNmDocument(NmOid oid)
Supported API: false |
NmDocument |
getNmDocumentWithContent(NmOid oid)
Supported API: false |
NmDocument |
getNmDocumentWithType(NmOid oid)
Supported API: false |
ArrayList |
getTemplates(NmOid projectOid)
Supported API: false |
boolean |
hasTemplates(WTContainerRef containerRef)
Supported API: false |
private static boolean |
isDocNameUniqueInFolder(String name,
Folder aFolder)
|
boolean |
isTemplate(NmCommandBean cb)
Supported API: false |
boolean |
isTemplate(NmOid oid)
Supported API: false |
NmDefaultHTMLTable |
listAttachments(NmCommandBean cb)
Supported API: false |
private NmHTMLTable |
listContent(NmCommandBean cb,
boolean showOld)
Method to retrieve the secondary content items of an object and put them into a table. |
NmHTMLTable |
listDescribes(NmCommandBean cb,
boolean showOld)
Supported API: false |
private NmHTMLTable |
listDescribesWindchillPDM(NmCommandBean cb,
boolean showOld)
|
NmDefaultHTMLTable |
listHistory(NmCommandBean cb)
Supported API: false |
NmHTMLTable |
listReferences(NmCommandBean cb,
boolean showOld)
Supported API: false |
private NmHTMLTable |
listReferencesPDMLink(NmCommandBean cb,
boolean showOld)
|
private NmHTMLTable |
listReferencesWindchillPDM(NmCommandBean cb,
boolean showOld)
|
static StandardNmDocumentService |
newStandardNmDocumentService()
Default factory for the class. |
void |
rename(NmCommandBean cb,
NmDocument nmDocument)
Supported API: false |
String |
replaceCRs(String description)
|
private float |
roundToTwoDecimals(float number)
Returns the given float rounded to two decimal places. |
void |
update(NmCommandBean cb,
NmDocument nmDocument,
String tempFile,
String checkInComments,
boolean checkOut)
Supported API: false |
private void |
validateDocTemplateName(String name,
Folder aFolder)
|
private static void |
verifyUniqueness(String name,
Folder aFolder,
WTContainerRef containerRef,
NmCommandBean cb)
|
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 boolean VERBOSE
private static final String DOC_CREATE_NAME_RESOURCE
private static final String OBJECT_RESOURCE
private static final String ENTERPRISE_RESOURCE
private static VisualizationHelperIfc visHelper
private static Boolean hasGlobalTemplates
private static final String SECONDARY_EXCLUDE
Constructor Detail |
public StandardNmDocumentService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardNmDocumentService newStandardNmDocumentService() throws WTException
WTException
public NmOid create(NmCommandBean cb, NmDocument nmDocument, String tempFile) throws WTException
create
in interface NmDocumentService
cb
- nmDocument
- tempFile
-
WTException
public String edit(NmCommandBean cb) throws WTException
edit
in interface NmDocumentService
cb
-
WTException
public void update(NmCommandBean cb, NmDocument nmDocument, String tempFile, String checkInComments, boolean checkOut) throws WTException
update
in interface NmDocumentService
cb
- nmDocument
- tempFile
- checkInComments
- checkOut
-
WTException
public NmDocument getDocumentProperties(NmCommandBean cb) throws WTException
getDocumentProperties
in interface NmDocumentService
cb
-
WTException
public NmDocument getDocumentProperties(NmOid oid, boolean viewOld) throws WTException
getDocumentProperties
in interface NmDocumentService
oid
- viewOld
-
WTException
public NmDefaultHTMLTable listHistory(NmCommandBean cb) throws WTException
listHistory
in interface NmDocumentService
cb
-
WTException
public String download(NmOid nmOid) throws WTException
download
in interface NmDocumentService
nmOid
-
WTException
public NmOid createFromTemplate(NmCommandBean cb, NmDocument nmDocument, String templateOid) throws WTException
createFromTemplate
in interface NmDocumentService
cb
- nmDocument
- templateOid
-
WTException
public ArrayList getTemplates(NmOid projectOid) throws WTException
getTemplates
in interface NmDocumentService
projectOid
-
WTException
public String edit(NmOid docOid) throws WTException
edit
in interface NmDocumentService
docOid
-
WTException
public NmDocument getDocumentProperties(NmOid nmOid) throws WTException
getDocumentProperties
in interface NmDocumentService
nmOid
-
WTException
public NmDocument getMinimalDocumentProperties(NmOid nmOid) throws WTException
getMinimalDocumentProperties
in interface NmDocumentService
nmOid
-
WTException
public NmDocument getMinimalDocumentProperties(NmOid nmOid, Persistable ref) throws WTException
getMinimalDocumentProperties
in interface NmDocumentService
nmOid
- ref
-
WTException
public NmChangeModel[] enable(NmCommandBean cb) throws WTException
enable
in interface NmDocumentService
cb
-
WTException
public NmChangeModel[] disable(NmCommandBean cb) throws WTException
disable
in interface NmDocumentService
cb
-
WTException
public NmDocument getNmDocument(NmOid oid) throws WTException
getNmDocument
in interface NmDocumentService
oid
-
WTException
public NmDocument getNmDocument(NmCommandBean cb) throws WTException
getNmDocument
in interface NmDocumentService
cb
-
WTException
public NmHTMLTable listReferences(NmCommandBean cb, boolean showOld) throws WTException
listReferences
in interface NmDocumentService
cb
- showOld
-
WTException
public NmHTMLTable listDescribes(NmCommandBean cb, boolean showOld) throws WTException
listDescribes
in interface NmDocumentService
cb
- showOld
-
WTException
public NmDefaultHTMLTable listAttachments(NmCommandBean cb) throws WTException
listAttachments
in interface NmDocumentService
cb
-
WTException
public void addAttachment(NmCommandBean cb) throws WTException
addAttachment
in interface NmDocumentService
cb
-
WTException
public boolean isTemplate(NmOid oid) throws WTException
isTemplate
in interface NmDocumentService
oid
-
WTException
public boolean isTemplate(NmCommandBean cb) throws WTException
isTemplate
in interface NmDocumentService
cb
-
WTException
public boolean hasTemplates(WTContainerRef containerRef) throws WTException
hasTemplates
in interface NmDocumentService
containerRef
-
WTException
public NmDocument getNmDocumentWithContent(NmOid oid) throws WTException
getNmDocumentWithContent
in interface NmDocumentService
oid
-
WTException
public String edit(NmOid docOid, boolean redirect) throws WTException
edit
in interface NmDocumentService
docOid
- redirect
-
WTException
public HashMap getDocDetailsModels(NmCommandBean cb, boolean showOld) throws WTException
getDocDetailsModels
in interface NmDocumentService
cb
- showOld
-
WTException
public NmDocument getNmDocumentWithType(NmOid oid) throws WTException
getNmDocumentWithType
in interface NmDocumentService
oid
-
WTException
public void rename(NmCommandBean cb, NmDocument nmDocument) throws WTException
rename
in interface NmDocumentService
cb
- nmDocument
-
WTException
public String replaceCRs(String description) throws WTException
WTException
private NmHTMLTable listReferencesWindchillPDM(NmCommandBean cb, boolean showOld) throws WTException
WTException
private NmHTMLTable listDescribesWindchillPDM(NmCommandBean cb, boolean showOld) throws WTException
WTException
private NmHTMLTable listReferencesPDMLink(NmCommandBean cb, boolean showOld) throws WTException
WTException
private NmHTMLTable listContent(NmCommandBean cb, boolean showOld) throws WTException
Method to retrieve the secondary content items of an object and put them into a table.
Supported API: false
cb
- showOld
-
WTException
private String getFileSize(ApplicationData file) throws WTException
file
- the ApplicationData item whose size is returned
WTException
private float roundToTwoDecimals(float number)
number
- the float to be rounded
private static void verifyUniqueness(String name, Folder aFolder, WTContainerRef containerRef, NmCommandBean cb) throws WTException
WTException
private static boolean isDocNameUniqueInFolder(String name, Folder aFolder) throws WTException
WTException
private void validateDocTemplateName(String name, Folder aFolder) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |