|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 12c (12.1.2) E23194-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.alm.view.application.ViewManager
public abstract class ViewManager
The ViewManager
is a singleton class exposing TPC client related service to connector writer. Connector writer can utilize these API to do corresponding customized UI controller work during the connector implementation. For example connector writer can use it in a customized listener code to access current IDE, current connector, and performing ui actions like (OpenWorkItemInEditor()). etc.
For more details on how to use the ViewManager, please refer to TPC connector implementation guideline.
Nested Class Summary | |
---|---|
static class |
ViewManager.TpcEntity |
static class |
ViewManager.TpcEntityScope |
Constructor Summary | |
---|---|
ViewManager() |
Method Summary | |
---|---|
abstract java.lang.Object |
createTpcEntity(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object data) Create a tpc entity (Such as a tpc query or workitem template) from TPC server. |
abstract boolean |
deleteTpcEntity(RenderingContext rcontext, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object entityObject) Update a tpc entity (Such as a tpc query or workitem template) from TPC server. |
abstract java.lang.Object |
editTpcEntity(RenderingContext rcontext, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object entityObject) Update a tpc entity (Such as a tpc query or workitem template) from TPC server. |
abstract WorkItemConnector |
getCurrentConnector(RenderingContext rcontext) |
abstract java.util.Map |
getCurrentConnectorContext(RenderingContext rcontext) |
abstract java.net.URL |
getCurrentPageURL(RenderingContext rcontext) |
abstract java.lang.String |
getCurrentWIRepositoryId(RenderingContext rcontext) |
abstract java.lang.String |
getCurrentWIRepositoryName(RenderingContext rcontext) |
abstract WorkItem |
getCurrentWorkItem(RenderingContext rcontext) |
abstract WorkItemDef |
getCurrentWorkItemDef(RenderingContext rcontext) |
abstract java.lang.String |
getCurrentWorkItemType(RenderingContext rcontext) |
abstract AlmELContext |
getELContext(RenderingContext rcontext) Deprecated. |
abstract AlmELContext |
getELContext(RenderingContext rcontext, AlmComponent component) |
abstract javax.swing.JFrame |
getIDEMain() |
static ViewManager |
getInstance() |
abstract java.lang.String |
getResource(RenderingContext rcontext, java.lang.String key) |
abstract java.lang.Object |
getTpcEntity(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope) Retrieve a tpc entity (Such as a tpc query or workitem template) from TPC server. |
abstract boolean |
isCurrentEditorDirty(RenderingContext rcontext) |
abstract void |
markCurrentEditorDirty(RenderingContext rcontext, boolean dirty) |
abstract void |
OpenPageInEditor(java.net.URL url) |
abstract void |
OpenPageInEditor(java.net.URL url, java.util.Map params) |
abstract void |
OpenTPCPageInEditor(java.lang.String relpath) |
abstract void |
OpenWorkItemInEditor(WorkItem item, java.lang.String wiType, java.lang.String repName, java.lang.String reposId) |
abstract void |
refreshWorkItemDetailUI(RenderingContext rcontext) Refresh the workitem detail section of current page. |
abstract java.awt.Container |
rendererTPCPage(java.net.URL url, java.lang.String rootTagName, java.util.Map params) URL the page url, format is "alm:/repositoryName/pagerelpath.tpcx", and the real ui page(pagerelpath.xml) is put under META-INF/pages directory in the corresponding connector by default. |
static void |
setInstance(ViewManager vmgr) |
abstract boolean |
validateTpcEntityName(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope) Validate whether the given name for a tpc entity for current user in current team and repository is valid or not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewManager()
Method Detail |
---|
public static ViewManager getInstance()
@Deprecated
public abstract AlmELContext getELContext(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract AlmELContext getELContext(RenderingContext rcontext, AlmComponent component)
rcontext
- rcontext The renderingContext Object for current page.component
-The
- ELContext object can be used by any AlmComponent to access rendering states of current page in the connector specific UI controller code, like the UI managed bean.public abstract javax.swing.JFrame getIDEMain()
public abstract WorkItemConnector getCurrentConnector(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract java.util.Map getCurrentConnectorContext(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract java.lang.String getCurrentWIRepositoryName(RenderingContext rcontext)
rcontext
- the RenderingContext object for current page.public abstract java.lang.String getCurrentWIRepositoryId(RenderingContext rcontext)
rcontext
- The RenderingContext obejct for current page.public abstract java.net.URL getCurrentPageURL(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract boolean isCurrentEditorDirty(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract void markCurrentEditorDirty(RenderingContext rcontext, boolean dirty)
rcontext
- The renderingContext Object for current page.dirty
- The dirty status to be assigned to current editor node.public abstract void OpenTPCPageInEditor(java.lang.String relpath)
relpath
- the TPC page relative path in current connector META-INF/pages directory.
This API will open the page with the specific page path. The page path can be in following format:
"/path/pagename.tpcx?name=value&...." "/repostName/witype/wiid.wid"
That means corresponding page xml will be put under the current fold path under the META-INF directory in current connector.
public abstract void OpenPageInEditor(java.net.URL url)
url
- The URL object
This API will open the page with the specific URL object in an editor tab in the corresponding IDE that the TPC client installed.
The URL can be in any of following format:
"alm:/repositoryName/workitemType/workitemId.wid"; "alm:/repositoryName/pagerelpath.tpcx" or "alm:/pagerelpath.tpcx?repository=repsName"
All above URL will be result opening the page in a TPC editor node
It also support the default browser opening an URL starting with "http" and "ftp", it will launch the default browser on the TPC client to open it.
public abstract void OpenPageInEditor(java.net.URL url, java.util.Map params)
url
- The URL objectparams
- Extra params to be passed to current page, these params will be stored in the RenderingContext object of current page during the page rendering process.public abstract java.lang.String getCurrentWorkItemType(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract WorkItem getCurrentWorkItem(RenderingContext rcontext)
rcontext
- The renderingContext Object for current page.public abstract WorkItemDef getCurrentWorkItemDef(RenderingContext rcontext)
rcontext
-public abstract void OpenWorkItemInEditor(WorkItem item, java.lang.String wiType, java.lang.String repName, java.lang.String reposId)
item
-wiType
-repName
-reposId
-public abstract java.lang.String getResource(RenderingContext rcontext, java.lang.String key)
rcontext
- rcontext The renderingContext Object for current page.key
- the resource key defined in the uiresource xml file.For backward compatibility, it will return in following order:
public abstract boolean validateTpcEntityName(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope)
rcontext
- The RenderingContext for current TPC pageentityName
- The name of the entity (query or workitem template)entityType
- Value of the entity typeentityScope
- Value of The entity scopepublic abstract java.lang.Object getTpcEntity(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope)
rcontext
-entityName
-entityType
-entityScope
-public abstract java.lang.Object createTpcEntity(RenderingContext rcontext, java.lang.String entityName, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object data)
rcontext
- the RenderingContext Object for current pageentityName
- the TPC entity name (for query or template)entityType
- the TPC entity type (TpcEntity.QUERY or TpcEntity.TEMPLATE)entityScope
- the TPC entity scope (TpcEntityScope.TEAM or TpcEntityScope.USER)data
- the input data object for creating the TPC entity object. For query,it is a WorkItemQuerySet object; for template, it is a WorkItem object.public abstract java.lang.Object editTpcEntity(RenderingContext rcontext, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object entityObject)
rcontext
- the RenderingContext Object for current pageentityType
- the TPC entity type (TpcEntity.QUERY or TpcEntity.TEMPLATE)entityScope
- the TPC entity scope (TpcEntityScope.TEAM or TpcEntityScope.USER)entityObject
- the TPC entity object to be updated. For query,it is a WorkItemQuerySet object; for template, it is a WorkItem object.public abstract boolean deleteTpcEntity(RenderingContext rcontext, ViewManager.TpcEntity entityType, ViewManager.TpcEntityScope entityScope, java.lang.Object entityObject)
rcontext
- the RenderingContext Object for current pageentityType
- the TPC entity type (TpcEntity.QUERY or TpcEntity.TEMPLATE)entityScope
- the TPC entity scope (TpcEntityScope.TEAM or TpcEntityScope.USER)entityObject
- the TPC entity object to be updated. For query,it is a WorkItemQuerySet object; for template, it is a WorkItem object.public abstract void refreshWorkItemDetailUI(RenderingContext rcontext)
rcontext
-public abstract java.awt.Container rendererTPCPage(java.net.URL url, java.lang.String rootTagName, java.util.Map params)
public static void setInstance(ViewManager vmgr)
vmgr
- Set the thread local ViewManager object.
Note: this API is used internal only.
|
Oracle Fusion Middleware Java API Reference for Oracle Team Productivity Center 12c (12.1.2) E23194-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |