|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.proesrv.ProeServiceRequest
super class for all ProeService requests
each request should implement validateRequest() and executeRequest() methods
Field Summary | |
protected RequestContext |
context
|
private static Log |
log
logging |
private static String |
REQUEST_RESOURCE
intenral resource bundle for request names |
private String |
requestNameCode
Localized request Name : should be set in constructors |
protected static String |
RESOURCE
shared Resource bundle for all ProeService requests |
protected RequestResultCache.Populator |
resultPopulator
|
private RequestResultCache |
rrc
|
protected com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest |
uwgmRequest
|
Constructor Summary | |
protected |
ProeServiceRequest(com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest,
RequestResultCache resultCache)
constructor to be overwritten by implementation classes |
Method Summary | |
com.ptc.windchill.uwgm.soap.uwgmdb.Container |
addContainer(WTContainer wtContainer)
|
com.ptc.windchill.uwgm.soap.uwgmdb.Content |
addContent(ContentItem item)
|
com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration |
addEPMDocument(EPMDocument epmDocument)
|
com.ptc.windchill.uwgm.soap.uwgmdb.EpmMaster |
addEPMDocumentMaster(EPMDocumentMaster wtEpmMaster)
|
com.ptc.windchill.uwgm.soap.uwgmdb.Workspace |
addEPMWorkspace(EPMWorkspace epmWorkspace)
|
com.ptc.windchill.uwgm.soap.uwgmdb.Workspace |
addEPMWorkspace(EPMWorkspace epmWorkspace,
long clientStateId)
|
com.ptc.windchill.uwgm.soap.uwgmdb.Folder |
addFakeFolder(FakeFolder fakeFolder)
|
com.ptc.windchill.uwgm.soap.uwgmdb.Folder |
addFolder(Folder wtFolder,
WTCollection foldered)
|
com.ptc.windchill.uwgm.soap.uwgmdb.EpmMemberDependency |
addLink(EPMMemberLink link)
|
com.ptc.windchill.uwgm.soap.uwgmdb.EpmReferenceDependency |
addLink(EPMReferenceLink link)
|
void |
addPreferedContentURLs(String[] preferedURLs)
|
com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration |
addWTPart(WTPart wtPart)
|
com.ptc.windchill.uwgm.soap.uwgmdb.PartMaster |
addWTPartMaster(WTPartMaster wtPartMaster)
|
void |
bindContent(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIter,
com.ptc.windchill.uwgm.soap.uwgmdb.Content content)
|
void |
bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder,
com.ptc.windchill.uwgm.soap.uwgmdb.Foldered foldered)
|
protected com.ptc.windchill.uwgm.soap.uwgmdb.DbObj.Iterator |
createDbObjIterator()
|
abstract com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage |
executeRequest()
executes request |
RequestContext |
getContext()
|
String |
getLocalizedName()
returns Localized request name to show in the Server Console |
com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest |
getUwgmRequest()
|
protected void |
ignoreOriginalState(Workable iter)
|
void |
reportFailure()
|
protected void |
reportInfoMessage(String rbCode,
Object[] params,
WTCollection objects)
report info message |
protected void |
reportInfoMessage(WTMessage wtMessage,
WTCollection objects)
report Info (success) message |
protected void |
reportMessage(InfoElement message)
Report Info/Warning message |
protected void |
reportMessages(InfoElement[] messages)
Report Info/Warning messages |
protected void |
reportWarnings(List warnings)
process and report Warnings |
protected void |
resetCurrentEpmWS()
|
protected void |
setRequestCode(String requestCode)
sets name request code (used by Dispatcher) |
abstract void |
validateRequest()
validates request data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String RESOURCE
private static final String REQUEST_RESOURCE
protected final RequestResultCache.Populator resultPopulator
protected final com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest
protected final RequestContext context
private final RequestResultCache rrc
private String requestNameCode
private static Log log
Constructor Detail |
protected ProeServiceRequest(com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest, RequestResultCache resultCache)
uwgmRequest
- UwgmRequestresultCache
- RequestResultCacheMethod Detail |
protected void setRequestCode(String requestCode)
requestCode
- Stringprotected com.ptc.windchill.uwgm.soap.uwgmdb.DbObj.Iterator createDbObjIterator()
public abstract void validateRequest() throws RequestValidationException, UwgmErrorException
RequestValidationException
- to report validation problems
UwgmErrorException
- to report errorspublic abstract com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage executeRequest() throws UwgmConflictException, UwgmErrorException
reports success UwgmMessage
UwgmConflictException
- to report execution conflicts
UwgmErrorException
- to report errorspublic String getLocalizedName()
WTException
protected void reportMessage(InfoElement message)
message
- InfoMessageprotected void reportMessages(InfoElement[] messages)
messages
- InfoMessage[]protected void reportWarnings(List warnings)
warnings
- Listprotected void reportInfoMessage(String rbCode, Object[] params, WTCollection objects)
rbCode
- String from requestResource.rbInfoparams
- Object[]objects
- WTCollectionprotected void reportInfoMessage(WTMessage wtMessage, WTCollection objects)
wtMessage
- WTMessageobjects
- WTCollectionpublic com.ptc.windchill.uwgm.soap.uwgmdb.Container addContainer(WTContainer wtContainer) throws WTException
addContainer
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFolder(Folder wtFolder, WTCollection foldered) throws WTException
addFolder
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFakeFolder(FakeFolder fakeFolder) throws WTException
addFakeFolder
in interface RequestResultCache.Populator
WTException
public void bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder, com.ptc.windchill.uwgm.soap.uwgmdb.Foldered foldered)
bindFoldered
in interface RequestResultCache.Populator
public com.ptc.windchill.uwgm.soap.uwgmdb.Content addContent(ContentItem item) throws WTException
addContent
in interface RequestResultCache.Populator
WTException
public void bindContent(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIter, com.ptc.windchill.uwgm.soap.uwgmdb.Content content)
bindContent
in interface RequestResultCache.Populator
public com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration addEPMDocument(EPMDocument epmDocument) throws WTException
addEPMDocument
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.EpmMaster addEPMDocumentMaster(EPMDocumentMaster wtEpmMaster) throws WTException
addEPMDocumentMaster
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWorkspace) throws WTException
addEPMWorkspace
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWorkspace, long clientStateId) throws WTException
addEPMWorkspace
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.EpmReferenceDependency addLink(EPMReferenceLink link) throws WTException
addLink
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.EpmMemberDependency addLink(EPMMemberLink link) throws WTException
addLink
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration addWTPart(WTPart wtPart) throws WTException
addWTPart
in interface RequestResultCache.Populator
WTException
public com.ptc.windchill.uwgm.soap.uwgmdb.PartMaster addWTPartMaster(WTPartMaster wtPartMaster) throws WTException
addWTPartMaster
in interface RequestResultCache.Populator
WTException
public void addPreferedContentURLs(String[] preferedURLs)
public void reportFailure()
reportFailure
in interface RequestResultCache.Populator
public RequestContext getContext()
public com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest getUwgmRequest()
protected void resetCurrentEpmWS()
protected void ignoreOriginalState(Workable iter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |