Skip navigation links
com.tarantella.tta.webservices.client.views
Class CombinedView
java.lang.Object
java.util.Observable
com.tarantella.tta.webservices.client.views.WebtopViewBean
com.tarantella.tta.webservices.client.views.CombinedView
- All Implemented Interfaces:
- java.io.Serializable
-
public class CombinedView
- extends WebtopViewBean
The class maintains a combined view of assigned applications and application sessions. The application sessions are stored as children of the application item from which they were launched.
- See Also:
- Serialized Form
Method Summary |
void |
generateSessionView(java.lang.String searchSpec, java.lang.String[] attributes, boolean forceRefresh)
Generates and caches a view of application sessions. |
java.util.Enumeration |
getCombinedView(java.lang.String webtopXml, java.lang.String sessionsXml, WebtopGroupContainer groups)
Gets an enumerator over the combined view. |
EmulatorSessionsView |
getEmulatorSessionsView()
Gets the application sessions view. |
java.util.Enumeration<IResponse> |
getSortedEnumeration(java.util.Enumeration enm, java.lang.String attName)
Gets an enumeration of IResponse objects, sorted by the value of the attribute. |
java.util.ArrayList<WSObject> |
getSortedWebtopObjects()
Returns a list of the assigned applications and application sessions. |
boolean |
isEmulatorSession(IResponse object)
Tests if the object is an application session. |
java.lang.String |
lookupFullName(java.lang.String hashName)
Looks up the full name based on the hash name. |
boolean |
processEvent(java.lang.String[] eventNames, java.lang.String[] eventActions, java.lang.String[] eventData)
Processes events affecting this view. |
boolean |
processEvent(java.lang.String eventName, java.lang.String eventAction, java.lang.String eventData)
Processes events affecting this view. |
void |
setMergedXml(java.lang.String xml, java.lang.String[] sessionAttrs)
Deprecated. Sets merged XML in the view. |
boolean |
storeSessionId(java.lang.String webtopItemName, java.lang.String emSessId)
Adds an emulator session ID to a webtop item. |
Methods inherited from class com.tarantella.tta.webservices.client.views.WebtopViewBean |
generateView, generateViewHierarchy, getAbsoluteURL, getApplicationCount, getDocumentBase, getInstancesRemaining, getObject, getSortedWebtopViewEnumeration, getWebtopEnumeration, getWebtopObjects, getWebtopViewEnumeration, hasDynamicHost, isApplication, isDocument, isDynamicApplication, isEnabled, isGroup, isInNewBrowserWindow, isInPlace, isVisible, lookupWebtopItems, searchWebtopContent, searchWebtopContentHierarchy, setDocumentBase |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinedView
public CombinedView()
- Constructor.
- Since:
- 1.0
getSortedWebtopObjects
public java.util.ArrayList<WSObject> getSortedWebtopObjects()
- Returns a list of the assigned applications and application sessions. The assigned applications are sorted with groups before applications, both alphabetically ascending.
-
- Overrides:
getSortedWebtopObjects
in class WebtopViewBean
-
- Returns:
- A list of assigned applications.
- Since:
- 1.1
getCombinedView
public java.util.Enumeration getCombinedView(java.lang.String webtopXml,
java.lang.String sessionsXml,
WebtopGroupContainer groups)
- Gets an enumerator over the combined view.
-
- Parameters:
webtopXml
- XML for assigned applications
sessionsXml
- XML for application sessions
groups
- User's assigned applications grouping
- Returns:
- The enumerator over the combined view.
- Since:
- 1.0
setMergedXml
public void setMergedXml(java.lang.String xml,
java.lang.String[] sessionAttrs)
- Deprecated. Sets merged XML in the view.
-
- Parameters:
xml
- Merged XML for assigned applications and application sessions.
sessionAttrs
- Application session attributes.
- Since:
- 1.0
getEmulatorSessionsView
public EmulatorSessionsView getEmulatorSessionsView()
- Gets the application sessions view. This excludes assigned applications.
-
- Returns:
- The application sessions view
- Since:
- 1.0
processEvent
public boolean processEvent(java.lang.String eventName,
java.lang.String eventAction,
java.lang.String eventData)
throws java.rmi.RemoteException
- Processes events affecting this view. If the view is unable to process the event, the local cache may be invalid. It is the responsibility of the caller to refresh the cache in these circumstances. For supported events and actions, see:
-
- Overrides:
processEvent
in class WebtopViewBean
-
- Parameters:
eventName
- Name of the event
eventAction
- Event action
eventData
- Event data
- Returns:
-
true if the event was processed and the view updated |
false if the event was not processed, possibly leaving the view invalid |
- Throws:
java.rmi.RemoteException
- On receipt of a SOAP fault.
- Since:
- 1.0
processEvent
public boolean processEvent(java.lang.String[] eventNames,
java.lang.String[] eventActions,
java.lang.String[] eventData)
throws java.rmi.RemoteException
- Processes events affecting this view. If the view is unable to process any of the events, the local cache may be invalid. It is the responsibility of the caller to refresh the cache in these circumstances. For supported events and actions, see:
-
- Parameters:
eventNames
- Ordered array of event names.
eventActions
- Ordered array of event actions.
eventData
- Ordered array of event data.
- Returns:
-
true if the events were processed and the view updated |
false if an event was not processed, possibly leaving the view invalid |
- Throws:
java.rmi.RemoteException
- On receipt of a SOAP fault.
- Since:
- 1.0
isEmulatorSession
public boolean isEmulatorSession(IResponse object)
- Tests if the object is an application session.
-
- Parameters:
object
- Assigned application object
- Returns:
-
true if the object is an application session |
false if the object is not an application session |
- Since:
- 1.0
generateSessionView
public void generateSessionView(java.lang.String searchSpec,
java.lang.String[] attributes,
boolean forceRefresh)
throws java.rmi.RemoteException
- Generates and caches a view of application sessions.
-
- Parameters:
searchSpec
- RFC 2254 search specification to select matching application sessions
attributes
- The attributes desired in the response
forceRefresh
- Flag controlling how the request is serviced.
true |
request must be sent to the server |
false |
request may be serviced from the cached view |
- Throws:
java.rmi.RemoteException
- On receipt of a SOAP fault.
- Since:
- 1.0
storeSessionId
public boolean storeSessionId(java.lang.String webtopItemName,
java.lang.String emSessId)
- Adds an emulator session ID to a webtop item.
-
- Parameters:
webtopItemName
- Name of the webtop item.
emSessId
- Emulator session ID
- Returns:
-
true if the emulator session ID was added |
false if the emulator session ID was not added |
- Since:
- 1.3
lookupFullName
public java.lang.String lookupFullName(java.lang.String hashName)
- Looks up the full name based on the hash name.
-
- Parameters:
hashName
- The hash name of the object.
- Returns:
- The full name of the object.
- Since:
- 1.1
getSortedEnumeration
public java.util.Enumeration<IResponse> getSortedEnumeration(java.util.Enumeration enm,
java.lang.String attName)
- Gets an enumeration of IResponse objects, sorted by the value of the attribute.
-
- Parameters:
enm
- Initial enumeration
attName
- Name of the attribute on which to sort
- Returns:
- The sorted enumeration.
- Since:
- 1.3
Skip navigation links
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.