|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ccd.ui.mediator.WPCMediator
public class WPCMediator
Implementation for the interface IWPCMediator
and provides the functional integration with WPC by exchaning and transforming
the Business object from UI to xml for WPC and vice-versa.
This is made as singleton class and do not support conversational
instance information.
Field Summary | |
---|---|
static java.lang.String |
COMP_NAME
|
Method Summary | |
---|---|
java.lang.String |
cloneItem(ICatalogItem item,
WPSContext context)
Creates the Item in WPC and returns the itemID(primary key) |
java.lang.String |
createItem(ICatalogItem item,
WPSContext context)
Creates the Item in WPC and returns the itemID(primary key) |
void |
deleteItem(ICatalogItem item,
WPSContext context)
Deletes the Item in WPC. |
void |
deleteItem(java.lang.String parentCgy,
java.lang.String catalogID,
java.lang.String itemID,
WPSContext context)
Deletes the Item in WPC. |
java.lang.String |
downloadItemDetails(CategoryHierarchy hierarchy,
ICatalogItem catalogItem,
java.lang.String[] headerInfor,
java.lang.String[] itemPrimaryKey,
WPSContext context)
This Method is for downloading Item(s) from SingleItem or from Search results |
java.util.List |
getBusinessProcess(WPSContext context)
|
java.util.List |
getBusinessProcess(WPSContext context,
java.lang.String roleName)
|
Node[] |
getCatalogChildren(java.lang.String parentCategory,
java.lang.String catalogName,
java.lang.String hierarchyName,
java.lang.String heirarchyType,
java.lang.String childrenSize,
WPSContext context)
returns the children of the catalog node, |
Node[] |
getCatalogChildren(java.lang.String parentID,
WPSContext context)
returns the children of the catalog node, |
ICatalogItem |
getCatalogItem(java.lang.String parentCgyID,
java.lang.String catalogID,
java.lang.String itemID,
WPSContext context)
Returns the CatalogItem for the given itemID,catalogID and parentCategory |
ICatalogItem |
getCatalogItem(java.lang.String parentCgyID,
java.lang.String catalogID,
WPSContext context)
Returns the CatalogItem Spec. |
ICatalogItem |
getCatalogItemClone(ICatalogItem item,
WPSContext context)
Returns Clone of the CatalogItem for the given item |
ICatalogItem |
getCatalogItemClone(java.lang.String parentCgyID,
java.lang.String catalogID,
java.lang.String itemID,
WPSContext context)
Returns Clone of the CatalogItem for the given itemID,catalogID and parentCategory |
java.util.Map |
getCatalogItems(java.util.List idlist,
java.lang.String catalogId,
WPSContext context)
Returns the List of CatalogItem Spec. |
CategoryHierarchy[] |
getCatalogs(WPSContext context)
returns the first level of Hierarychy for the Catalogs |
CatalogViewMaster |
getCatalogView(java.lang.String catalogName,
java.lang.String catalogViewName,
WPSContext context)
|
java.util.List |
getCatalogViewList(java.lang.String catalogName,
WPSContext context)
returs a list of CatalogViews for a given CatalogName |
java.lang.String |
getDefaultCatalog()
This utility method has to be retained in the WPC Mediator. |
java.lang.Object |
getImageObject(FileDownloadResource resourceObj,
WPSContext context)
This method fetches Image stream from wpc for specific Item (GTNID) and attribute. |
static WPCMediator |
getInstance()
Returns the singleton instance of the Mediator. |
Attribute[] |
getLookupTableAttributes(java.lang.String lookupID,
WPSContext context)
Deprecated. same operationis done by getSearchAttributes() method. Returns the CatalogItem Spec. for the given catalogID and parentCategory |
Attribute[] |
getSearchAttributes(java.lang.String catalogId,
WPSContext context)
|
Attribute[] |
getSearchResultAttributes(java.lang.String catalogId,
WPSContext context)
|
java.util.Map |
getStepItems(WPSContext context,
java.lang.String roleName,
java.lang.String collabName,
java.lang.String workflowName,
java.lang.String stepName,
PageNavigation pageNav,
java.util.List attributeList)
|
java.util.Map |
getStepItems(WPSContext context,
java.lang.String roleName,
java.lang.String collabName,
java.lang.String workflowName,
java.lang.String stepName,
java.lang.String categoryFilter,
PageNavigation pageNav,
java.util.List attributeList)
|
Workflow |
getSteps(WPSContext context,
java.lang.String roleName,
java.lang.String workflowName)
|
java.util.List |
getTransactionsDetails(java.lang.String transactionId,
WPCUser wpcUser)
Used for fetching Transaction details and attachment |
java.util.Map |
getTransactionsStatus(java.lang.String[] transkeyArray,
WPSContext context)
Fetching the Transactions status from WPC |
java.util.List |
getUserRoles(WPSContext context)
|
CatalogViewMaster |
getWorkFlowView(java.lang.String catalogName,
java.lang.String workFlowName,
java.lang.String stepName,
WPSContext context)
|
void |
init()
Initializes the Mediator |
void |
performLookupTableSearch(SearchBean searchBean,
WPSContext context)
|
void |
performSearch(SearchBean searchBean,
WPSContext context)
Request WPC to perform the search |
void |
performSearchForMultiEdit(SearchBean searchBean,
WPSContext context)
|
void |
processAction(WPSContext context,
WorkFlowTO workflowTo)
For initiating the process Actions |
java.lang.String |
processUploadedFile(java.lang.String documentPath,
java.lang.String collabName,
WPSContext context)
Request WPC to trigger uploaded file for an update. |
void |
updateItem(ICatalogItem item,
WPSContext context)
Updates the Item in WPC. |
java.lang.String |
uploadFile(Attachment attachment,
WPSContext context)
Uploads the file into WPC, and returns with the document path where the file has been uploaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMP_NAME
Method Detail |
---|
public void init()
public static WPCMediator getInstance()
public CategoryHierarchy[] getCatalogs(WPSContext context) throws WPCMediatorException
IWPCMediator
getCatalogs
in interface IWPCMediator
WPCMediatorException
- in case of retrievalpublic Node[] getCatalogChildren(java.lang.String parentID, WPSContext context) throws WPCMediatorException
getCatalogChildren
in interface IWPCMediator
parentID
- - parentNode ID of type String
WPCMediatorException
- in case of retrieval errorsIWPCMediator
public Node[] getCatalogChildren(java.lang.String parentCategory, java.lang.String catalogName, java.lang.String hierarchyName, java.lang.String heirarchyType, java.lang.String childrenSize, WPSContext context) throws WPCMediatorException
getCatalogChildren
in interface IWPCMediator
WPCMediatorException
IWPCMediator
public ICatalogItem getCatalogItem(java.lang.String parentCgyID, java.lang.String catalogID, WPSContext context) throws WPCMediatorException
getCatalogItem
in interface IWPCMediator
parentCgyID
- - Parent CategoryID of the catalogcatalogID
- - category ID of the catalog
WPCMediatorException
- in case of retrieval errorsIWPCMediator.getCatalogItem(String parentCgyID,String catalogID, WPSContext context)
public ICatalogItem getCatalogItem(java.lang.String parentCgyID, java.lang.String catalogID, java.lang.String itemID, WPSContext context) throws WPCMediatorException
getCatalogItem
in interface IWPCMediator
parentCgyID
- - Parent CategoryID of the catalogcatalogID
- - category ID of the catalogitemID
- - itemID (primaryKey)
WPCMediatorException
- in case of retrieval errorsIWPCMediator.getCatalogItem(String parentCgyID,String catalogID, String itemID, WPSContext context)
public java.util.List getCatalogViewList(java.lang.String catalogName, WPSContext context) throws WPCMediatorException
getCatalogViewList
in interface IWPCMediator
catalogName
- context
-
WPCMediatorException
public CatalogViewMaster getCatalogView(java.lang.String catalogName, java.lang.String catalogViewName, WPSContext context) throws WPCMediatorException
getCatalogView
in interface IWPCMediator
catalogName
- catalogViewName
- context
-
WPCMediatorException
public CatalogViewMaster getWorkFlowView(java.lang.String catalogName, java.lang.String workFlowName, java.lang.String stepName, WPSContext context) throws WPCMediatorException
workFlowName
- stepName
- context
-
WPCMediatorException
public java.lang.String createItem(ICatalogItem item, WPSContext context) throws WPCMediatorException
createItem
in interface IWPCMediator
item
- - of type ICatalogItem representing the item to create
WPCMediatorException
- in case of creation errors/async. processIWPCMediator.createItem(ICatalogItem item, WPSContext context)
public java.lang.String cloneItem(ICatalogItem item, WPSContext context) throws WPCMediatorException
WPCMediatorException
public void updateItem(ICatalogItem item, WPSContext context) throws WPCMediatorException
updateItem
in interface IWPCMediator
item
- - of type ICatalogItem representing the item to create
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.updateItem(ICatalogItem item, WPSContext context)
public void deleteItem(ICatalogItem item, WPSContext context) throws WPCMediatorException
deleteItem
in interface IWPCMediator
item
- - of type ICatalogItem representing the item to create
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.deleteItem(ICatalogItem item, WPSContext context)
public void deleteItem(java.lang.String parentCgy, java.lang.String catalogID, java.lang.String itemID, WPSContext context) throws WPCMediatorException
deleteItem
in interface IWPCMediator
catalogID
- - category ID of the catalogitemID
- - itemID (primaryKey)
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.deleteItem(String parentCgy, String catalogID,String itemID, WPSContext context)
public ICatalogItem getCatalogItemClone(ICatalogItem item, WPSContext context) throws WPCMediatorException
getCatalogItemClone
in interface IWPCMediator
WPCMediatorException
IWPCMediator.getCatalogItemClone(ICatalogItem item,WPSContext context)
public ICatalogItem getCatalogItemClone(java.lang.String parentCgyID, java.lang.String catalogID, java.lang.String itemID, WPSContext context) throws WPCMediatorException
getCatalogItemClone
in interface IWPCMediator
WPCMediatorException
IWPCMediator.getCatalogItemClone(String parentCgyID,String catalogID, String itemID, WPSContext context)
public java.lang.String uploadFile(Attachment attachment, WPSContext context) throws WPCMediatorException
uploadFile
in interface IWPCMediator
attachment
- - file to upload as an Attachment type
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.uploadFile(Attachment attachment, WPSContext context)
public java.lang.String processUploadedFile(java.lang.String documentPath, java.lang.String collabName, WPSContext context) throws WPCMediatorException
processUploadedFile
in interface IWPCMediator
documentPath
- - path to the file to be updated in the WPC
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.processUploadedFile(String documentPath,String collabName, WPSContext context)
public void performSearch(SearchBean searchBean, WPSContext context) throws WPCMediatorException
performSearch
in interface IWPCMediator
searchBean
- - provides the searchcritera and filled with the search results
WPCMediatorException
- in case of updation errors/ async. process.IWPCMediator.performSearch(SearchBean searchBean, WPSContext context)
public void performSearchForMultiEdit(SearchBean searchBean, WPSContext context) throws WPCMediatorException
searchBean
- context
-
WPCMediatorException
public void performLookupTableSearch(SearchBean searchBean, WPSContext context) throws WPCMediatorException
WPCMediatorException
public java.util.Map getTransactionsStatus(java.lang.String[] transkeyArray, WPSContext context) throws WPCMediatorException
getTransactionsStatus
in interface IWPCMediator
transkeyArray
- context
-
WPCMediatorException
public java.util.List getTransactionsDetails(java.lang.String transactionId, WPCUser wpcUser) throws WPCMediatorException
getTransactionsDetails
in interface IWPCMediator
transactionId
- wpcUser
-
WPCMediatorException
public java.util.Map getCatalogItems(java.util.List idlist, java.lang.String catalogId, WPSContext context) throws WPCMediatorException
idlist
- catalogId
- context
-
WPCMediatorException
public java.lang.String getDefaultCatalog()
IWPCMediator
getDefaultCatalog
in interface IWPCMediator
IWPCMediator
public java.lang.Object getImageObject(FileDownloadResource resourceObj, WPSContext context) throws WPCMediatorException
IWPCMediator
getImageObject
in interface IWPCMediator
resourceObj
- context
-
WPCMediatorException
public java.lang.String downloadItemDetails(CategoryHierarchy hierarchy, ICatalogItem catalogItem, java.lang.String[] headerInfor, java.lang.String[] itemPrimaryKey, WPSContext context) throws WPCMediatorException
IWPCMediator
downloadItemDetails
in interface IWPCMediator
WPCMediatorException
IWPCMediator.downloadItemDetails(CategoryHierarchy hierarchy,ICatalogItem catalogItem, String[] headerInfor,String[] itemPrimaryKey, WPSContext context)
public java.util.List getUserRoles(WPSContext context) throws WPCMediatorException
getUserRoles
in interface IWPCMediator
context
-
WPCMediatorException
public java.util.List getBusinessProcess(WPSContext context, java.lang.String roleName) throws WPCMediatorException
getBusinessProcess
in interface IWPCMediator
context
- roleName
-
WPCMediatorException
public java.util.List getBusinessProcess(WPSContext context) throws WPCMediatorException
getBusinessProcess
in interface IWPCMediator
context
-
WPCMediatorException
public Workflow getSteps(WPSContext context, java.lang.String roleName, java.lang.String workflowName) throws WPCMediatorException
getSteps
in interface IWPCMediator
context
- roleName
- workflowName
-
WPCMediatorException
public java.util.Map getStepItems(WPSContext context, java.lang.String roleName, java.lang.String collabName, java.lang.String workflowName, java.lang.String stepName, java.lang.String categoryFilter, PageNavigation pageNav, java.util.List attributeList) throws WPCMediatorException
context
- roleName
- collabName
- workflowName
- stepName
- categoryFilter
- pageNav
-
WPCMediatorException
public java.util.Map getStepItems(WPSContext context, java.lang.String roleName, java.lang.String collabName, java.lang.String workflowName, java.lang.String stepName, PageNavigation pageNav, java.util.List attributeList) throws WPCMediatorException
context
- roleName
- collabName
- workflowName
- stepName
- pageNav
-
WPCMediatorException
public void processAction(WPSContext context, WorkFlowTO workflowTo) throws WPCMediatorException
processAction
in interface IWPCMediator
context
- workflowTo
-
WPCMediatorException
public Attribute[] getSearchAttributes(java.lang.String catalogId, WPSContext context) throws WPCMediatorException
WPCMediatorException
public Attribute[] getLookupTableAttributes(java.lang.String lookupID, WPSContext context) throws WPCMediatorException
WPCMediatorException
public Attribute[] getSearchResultAttributes(java.lang.String catalogId, WPSContext context) throws WPCMediatorException
WPCMediatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |