public class OslcPresentataionGenerator
extends java.lang.Object
Constructor and Description |
---|
OslcPresentataionGenerator(byte[] presentataion)
Construct generator
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addButton(org.jdom.Element btngroup,
java.lang.String oslcTabName,
java.lang.String interaction,
java.lang.String providerName,
java.lang.String mapOption,
java.lang.String buttonLabel)
Add Button to Oslc Link table.
|
boolean |
findButton(org.jdom.Element in,
java.lang.String inid,
boolean remove)
Find button by ID.
|
org.jdom.Element |
findById(org.jdom.Element in,
java.lang.String inid)
Find button by ID.
|
org.jdom.Element |
findByName(org.jdom.Element in,
java.lang.String inName)
Find Element by name.
|
void |
generateNewMenu(java.lang.String intGroupName,
java.lang.String menuId,
java.lang.String newMenuId,
java.lang.String sigOptionName,
java.lang.String menuLabel)
Generate new menu
|
java.lang.String |
generatePresentataion(MboRemote oslcInteraction)
Generate dialog based in IntGenerator Mbo.
|
java.lang.String |
generateUniqueID()
Generate unique ID for attribute ID
return unique id
|
java.util.Map<java.lang.String,java.util.List<InteractionGroupAppMenuInfo>> |
getAppplicationsMenus(org.jdom.Element top,
java.util.Map<java.lang.String,java.util.List<InteractionGroupAppMenuInfo>> allMenus)
Get application menus
|
org.jdom.Element |
getAppplicationsTab(java.lang.String tabName,
java.lang.String appName)
Find Application Tab in tab group.
|
java.util.Map<java.lang.String,java.lang.String> |
getAppplicationsTabs(java.lang.String appName)
Get map of application tabs
|
org.jdom.Document |
getAppXML(java.lang.String app,
UserInfo userInfo)
Get Application XML from MAXPRESENTATION table.
|
org.jdom.Element |
getMenu(java.lang.String name,
boolean remove)
Get detail menu
|
org.jdom.Element |
getOslcLinkTab(org.jdom.Element parent,
java.lang.String oslcTabName)
Find Oslc Link tab in tab group.
|
org.jdom.Element |
getOslcTabGroup(org.jdom.Element parent,
java.lang.String appName,
java.lang.String tabName)
Find Oslc Tab Group.
|
org.jdom.Document |
getPresentataionDocument()
Generate unique ID for attribute ID
return unique id
|
boolean |
hasLicenseAccess(java.lang.String licensevalue)
Validate if license key is installed.
|
void |
modifyAttributeMenu(org.jdom.Element in,
java.util.Map<java.lang.String,java.lang.String> modifyMenuMap)
Modify Menu Attribute of a field.
|
void |
modifyMenuItem(org.jdom.Element in)
Modify Menu items
|
java.lang.String |
removePresentataion(MboRemote oslcInteraction,
boolean hasLink)
Remove tab from presentation.
|
public OslcPresentataionGenerator(byte[] presentataion) throws java.rmi.RemoteException, MXException
presentataion
- Presentation XML byte array.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String generatePresentataion(MboRemote oslcInteraction) throws java.rmi.RemoteException, MXException
oslcInteraction
- Give reference to Oslc Interaction Mbo.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Document getAppXML(java.lang.String app, UserInfo userInfo) throws java.rmi.RemoteException, MXException
app
- name of an applicationuserInfo
- UserInfo objectMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Element getOslcTabGroup(org.jdom.Element parent, java.lang.String appName, java.lang.String tabName)
parent
- Parent elementappName
- Application nametabName
- Application tab namepublic java.util.Map<java.lang.String,java.lang.String> getAppplicationsTabs(java.lang.String appName) throws java.rmi.RemoteException, MXException
appName
- Give application name.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.util.Map<java.lang.String,java.util.List<InteractionGroupAppMenuInfo>> getAppplicationsMenus(org.jdom.Element top, java.util.Map<java.lang.String,java.util.List<InteractionGroupAppMenuInfo>> allMenus) throws java.rmi.RemoteException, MXException
top
- Top level element.allMenus
- list of InteractionGroupAppMenuInfoMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void generateNewMenu(java.lang.String intGroupName, java.lang.String menuId, java.lang.String newMenuId, java.lang.String sigOptionName, java.lang.String menuLabel) throws java.rmi.RemoteException, MXException
intGroupName
- Interaction Group NamemenuId
- current menu idnewMenuId
- new menu idsigOptionName
- signature optionmenuLabel
- menu labelMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void modifyMenuItem(org.jdom.Element in)
in
- Top level element.public org.jdom.Element getMenu(java.lang.String name, boolean remove)
name
- Menu name.remove
- remove menuMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Element getAppplicationsTab(java.lang.String tabName, java.lang.String appName) throws java.rmi.RemoteException, MXException
tabName
- application nameappName
- Give application name.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Element getOslcLinkTab(org.jdom.Element parent, java.lang.String oslcTabName)
parent
- Parent elementoslcTabName
- Oslc Link tab namepublic java.lang.String addButton(org.jdom.Element btngroup, java.lang.String oslcTabName, java.lang.String interaction, java.lang.String providerName, java.lang.String mapOption, java.lang.String buttonLabel)
btngroup
- Parent button grouposlcTabName
- Oslc Link tab nameinteraction
- Oslc interaction nameproviderName
- Oslc provider namemapOption
- Sig Option namebuttonLabel
- Button Labelpublic java.lang.String removePresentataion(MboRemote oslcInteraction, boolean hasLink) throws java.rmi.RemoteException, MXException
oslcInteraction
- Give reference to Oslc Interaction Mbo.hasLink
- Identifies if link was createdMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean findButton(org.jdom.Element in, java.lang.String inid, boolean remove)
in
- Element to searchinid
- id to findremove
- indicator to remove buttonMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Element findById(org.jdom.Element in, java.lang.String inid)
in
- Element to searchinid
- id to findremove
- indicator to remove buttonMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic org.jdom.Element findByName(org.jdom.Element in, java.lang.String inName)
in
- Element to searchinName
- Name to findMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void modifyAttributeMenu(org.jdom.Element in, java.util.Map<java.lang.String,java.lang.String> modifyMenuMap)
in
- Element to searchmodifyMenuMap
- map of all attributes to modifyMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.lang.String generateUniqueID()
public org.jdom.Document getPresentataionDocument()
public boolean hasLicenseAccess(java.lang.String licensevalue)
licensevalue
- Give license key value.