public interface UserServiceRequest
Modifier and Type | Method and Description |
---|---|
boolean |
canClose()
Returns
false if the close button or URL should not be displayed. |
String |
getParameter(String aParameterName)
Returns the value defined by the specified parameter in the HTTP request.
|
String[] |
getParameterValues(String aParameterName)
Returns an array containing the values defined
by the specified parameter in the HTTP request.
|
Repository |
getRepository()
Returns the current repository.
|
String |
getServiceDescription()
Returns the description of the service, localized for the session's current locale.
|
ServiceKey |
getServiceKey()
Returns the current service key.
|
String |
getServiceLabel()
Returns the label of the service, localized for the session current locale.
|
String |
getServiceModuleName()
Returns the name of the module that declares the service
being executed.
|
Session |
getSession()
Returns the current session.
|
boolean |
isInitialDisplay()
Returns
true if the user service is being displayed for the first time. |
Session getSession()
null
.Repository getRepository()
null
.boolean isInitialDisplay()
true
if the user service is being displayed for the first time.boolean canClose()
false
if the close button or URL should not be displayed.
In some contexts, a user service may not be closable. This happens, for example, when a user service is displayed by a perspective action menu with no selection on close configured.
Current implementation automatically hides standard close and close and save buttons from the bottom toolbar but it is the developper's responsibility to hide URLs or other buttons that may close the user service without redirecting the user to another screen.
String getParameter(String aParameterName)
If the specified parameter has multiple values, the returned value
is the first one returned by getParameterValues(String)
.
aParameterName
- the name of the parameter.null
if not found.getParameterValues(String)
String[] getParameterValues(String aParameterName)
aParameterName
- the name of the parameter.null
if not found.getParameter(String)
ServiceKey getServiceKey()
String getServiceModuleName()
String getServiceLabel()
The label of the service is specified in the data model, under the node
xs:annotation/xs:documentation
.
String getServiceDescription()
The description of the service is specified in the data model, under the node
xs:annotation/xs:documentation
.
null
if the description is not available.