|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
com.tarantella.tta.webservices.client.views.WebtopViewBean
public class WebtopViewBean
The class maintains a view of assigned applications. The applications can be flattened to one-level or maintained in groups. Groups either reflect the hierarchy of groups in the datastore or are set through a user's personal settings.
Field Summary | |
---|---|
static java.lang.String |
ATTR_ENABLED
Name of the attribute that marks an assigned application or group as enabled. |
static java.lang.String |
ATTR_HIDDEN
Name of the attribute that marks an assigned application or group as hidden. |
static java.lang.String |
ATTR_OPEN
Name of the attribute that marks an assigned application or group as open. |
static java.lang.String |
EVENT_TOGGLE_GROUP
Name of the event action that toggles the open/closed state of an assigned applications item or group. |
static java.lang.String |
VALUE_CLOSED
Attribute value that marks an assigned application or group as closed. |
static java.lang.String |
VALUE_OPEN
Attribute value that marks an assigned application or group as open. |
static java.lang.String |
VALUE_TRUE
Value for boolean attributes that are true. |
Method Summary | |
---|---|
void |
generateView(java.lang.String searchSpec,
java.lang.String[] attributes,
boolean forceRefresh,
WebtopGroupContainer groupings)
Generates and caches a flat view of assigned applications. |
void |
generateViewHierarchy(java.lang.String searchSpec,
java.lang.String[] attributes,
java.lang.String[] groups,
boolean forceRefresh,
WebtopGroupContainer groupings)
Generates and caches a hierarchical view of assigned applications. |
int |
getApplicationCount()
Gets the number of applications and documents assigned. |
int |
getInstancesRemaining(IResponse object)
Gets the number of remaining application sessions that can be launched for this application. |
java.util.Enumeration |
getSortedWebtopViewEnumeration(java.lang.String itemSortAttr,
java.lang.String groupSortAttr,
boolean ascending,
boolean groupsFirst)
Returns a sorted enumeration over the assigned applications. |
java.util.Enumeration |
getWebtopEnumeration()
Returns a sorted enumeration over the assigned applications. |
java.util.Enumeration |
getWebtopViewEnumeration()
Returns an enumeration over the assigned applications. |
boolean |
isApplication(IResponse object)
Tests if the object is an application or document. |
boolean |
isDocument(IResponse object)
Tests if the object is a document. |
boolean |
isEnabled(IResponse object)
Tests if the object is an application or document that should be enabled. |
boolean |
isGroup(IResponse object)
Tests if the object is a group. |
boolean |
isInNewBrowserWindow(IResponse object)
Tests if the object is a document that should be launched in a new browser window. |
boolean |
isInPlace(IResponse object)
Tests if the object is a document that should be launched in-place. |
boolean |
isVisible(IResponse object)
Tests if the object should be displayed. |
java.lang.String |
lookupWebtopItems(java.lang.String[] objectNames,
java.lang.String[] desiredAttributes)
Looks-up assigned applications. |
boolean |
processEvent(java.lang.String eventName,
java.lang.String eventAction,
java.lang.String eventData)
Processes events affecting this view. |
java.lang.String |
searchWebtopContent(java.lang.String searchSpec,
java.lang.String[] desiredAttributes)
Searches for assigned applications, flattening any grouping structure defined in the datastore. |
java.lang.String |
searchWebtopContentHierarchy(java.lang.String searchSpec,
java.lang.String[] desiredAttributes,
java.lang.String[] groups)
Searches for assigned applications, preserving any grouping structure defined in the datastore. |
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 |
Field Detail |
---|
public static final java.lang.String EVENT_TOGGLE_GROUP
public static final java.lang.String ATTR_ENABLED
public static final java.lang.String ATTR_OPEN
public static final java.lang.String VALUE_OPEN
public static final java.lang.String VALUE_CLOSED
public static final java.lang.String ATTR_HIDDEN
public static final java.lang.String VALUE_TRUE
Method Detail |
---|
public boolean isApplication(IResponse object)
object
- Assigned application object
true | if the object is an application or document |
false | if the object is not an application or document |
public boolean isDocument(IResponse object)
object
- Assigned application object
true | if the object is a document |
false | if the object is not a document |
public boolean isGroup(IResponse object)
object
- Assigned application object
true | if the object is a group |
false | if the object is not a group |
public boolean isInPlace(IResponse object)
object
- Assigned application object
true | if the object is a document that should be launched in-place |
false | if the object is not a document, or if it should be launched elsewhere |
public boolean isInNewBrowserWindow(IResponse object)
object
- Assigned application object
true | if the object is a document that should be launched in a new browser window |
false | if the object is not a document, or if it should not be launched in a new browser window |
public boolean isEnabled(IResponse object)
object
- Assigned application object
true | if the object is an application or document that is enabled |
false | if the object is not an application or group, or if it not enabled |
public int getInstancesRemaining(IResponse object)
object
- Application object
-1: unlimited application sessions may be launched, or |
the number of additional application sessions that may be launched |
public java.lang.String lookupWebtopItems(java.lang.String[] objectNames, java.lang.String[] desiredAttributes) throws java.rmi.RemoteException
generateView(String, String[], boolean, WebtopGroupContainer)
to cache
responses.
objectNames
- Array of assigned application object names.desiredAttributes
- Attributes desired in the response.
ITarantellaWebtopContent.lookupWebtopItems(String, String[], String[])
java.rmi.RemoteException
- On receipt of a SOAP fault.public java.lang.String searchWebtopContent(java.lang.String searchSpec, java.lang.String[] desiredAttributes) throws java.rmi.RemoteException
generateView(String, String[], boolean, WebtopGroupContainer)
to cache
responses.
searchSpec
- Specification controlling the search.desiredAttributes
- Attributes desired in the response.
ITarantellaWebtopContent.searchWebtopContent(String, String, String[])
java.rmi.RemoteException
- On receipt of a SOAP fault.public java.lang.String searchWebtopContentHierarchy(java.lang.String searchSpec, java.lang.String[] desiredAttributes, java.lang.String[] groups) throws java.rmi.RemoteException
generateViewHierarchy(String, String[], String[], boolean, WebtopGroupContainer)
to cache responses.
searchSpec
- Specification controlling the search.desiredAttributes
- Attributes desired in the response.groups
- Array of groups whose assigned applications are desired.
ITarantellaWebtopContent.searchWebtopContentHierarchy(String, String, String[], String[])
java.rmi.RemoteException
- On receipt of a SOAP fault.public boolean isVisible(IResponse object)
object
- Assigned application object
true | if the object should be displayed |
false | if the object should not be displayed |
public boolean processEvent(java.lang.String eventName, java.lang.String eventAction, java.lang.String eventData) throws java.rmi.RemoteException
eventName
- Name of the event. Supported events are:
IConstants.WEBTOP_CHANGED_EVT
| Fired when the assigned applications have changed |
IConstants.WEBTOP_STATE_EVT
| Fired when the state of existing assigned applications has changed |
eventAction
- Event action. Supported actions are:
IConstants.ACTION_OBJECT_CREATED
| An object has been created. |
IConstants.ACTION_OBJECT_DELETED
| An object has been deleted. |
IConstants.ACTION_OBJECT_DISABLED
| An object has been disabled. |
IConstants.ACTION_OBJECT_ENABLED
| An object has been enabled. |
IConstants.ACTION_VIEW_REFRESH
| Update the view. |
EVENT_TOGGLE_GROUP
| Toggle the open/close state of a group. |
eventData
- Event data, for example, the name of the assigned
application.
A value of IConstants.EVT_REFRESH
will cause the method to return false
true | if the event was processed and the view updated |
false | if the event was not processed, possibly leaving the view invalid |
java.rmi.RemoteException
- On receipt of a SOAP fault.public void generateView(java.lang.String searchSpec, java.lang.String[] attributes, boolean forceRefresh, WebtopGroupContainer groupings) throws java.rmi.RemoteException
searchSpec
- RFC 2254 search specification to select matching assigned
applicationsattributes
- The attributes desired in the responseforceRefresh
- Flag controlling how the request is serviced.
true | request must be sent to the server |
false | request may be serviced from the cached view |
groupings
- The groupings to apply to the assigned applications
java.rmi.RemoteException
- On receipt of a SOAP fault.public void generateViewHierarchy(java.lang.String searchSpec, java.lang.String[] attributes, java.lang.String[] groups, boolean forceRefresh, WebtopGroupContainer groupings) throws java.rmi.RemoteException
searchSpec
- RFC 2254 search specification to select matching assigned
applicationsattributes
- The attributes desired in the responsegroups
- The groups to be included in the response. Use
IConstants.TOP
to get the
top-level group.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 |
groupings
- The groupings to apply to the assigned applications
java.rmi.RemoteException
- On receipt of a SOAP fault.public java.util.Enumeration getWebtopViewEnumeration()
public java.util.Enumeration getWebtopEnumeration()
public java.util.Enumeration getSortedWebtopViewEnumeration(java.lang.String itemSortAttr, java.lang.String groupSortAttr, boolean ascending, boolean groupsFirst)
itemSortAttr
- Name of the attribute on which assigned applications
are sortedgroupSortAttr
- Name of the attribute on which groups are sortedascending
- Flag controlling sort order:
true | order is alphabetically ascending |
false | order is alphabetically descending |
groupsFirst
- Flag controlling item/group ordering within a level:
true | groups precede items |
false | groups follow items |
public int getApplicationCount()
the number of applications and documents |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |