Interface UserServiceRequest
- All Known Subinterfaces:
UserServiceAjaxContext
,UserServiceEventContext
,UserServiceGetContext
,UserServiceGetCreatedRecordContext<S>
,UserServiceInitializeContext<S>
,UserServicePaneContext
,UserServiceProcessEventOutcomeContext<S>
,UserServiceRawPaneContext
,UserServiceSetupDisplayContext<S>
,UserServiceSetupObjectContext<S>
,UserServiceValidateContext<S>
- Since:
- 5.8.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canClose()
Returnsfalse
if the close button or URL should not be displayed.Returns the current perspective.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.Returns the current repository.Returns the description of the service, localized for the session's current locale.Returns the current service key.Returns the label of the service, localized for the session current locale.Returns the name of the module that declares the service being executed.Returns the current session.boolean
Returnstrue
if the user service is being displayed for the first time.
-
Method Details
-
getSession
Session getSession()Returns the current session. Never returnsnull
. -
getRepository
Repository getRepository()Returns the current repository. Never returnsnull
. -
isInitialDisplay
boolean isInitialDisplay()Returnstrue
if the user service is being displayed for the first time. -
canClose
boolean canClose()Returnsfalse
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.
-
getParameter
Returns the value defined by the specified parameter in the HTTP request.If the specified parameter has multiple values, the returned value is the first one returned by
getParameterValues(String)
.- Parameters:
aParameterName
- the name of the parameter.- Returns:
- the parameter's value or
null
if not found. - See Also:
-
getParameterValues
Returns an array containing the values defined by the specified parameter in the HTTP request.- Parameters:
aParameterName
- the name of the parameter.- Returns:
- an array containing the parameter's values,
null
if not found. - See Also:
-
getServiceKey
ServiceKey getServiceKey()Returns the current service key. -
getServiceModuleName
String getServiceModuleName()Returns the name of the module that declares the service being executed.- Returns:
- the module name.
-
getServiceLabel
String getServiceLabel()Returns the label of the service, localized for the session current locale.The label of the service is specified in the data model, under the node
xs:annotation/xs:documentation
.- Returns:
- the label of the service.
-
getServiceDescription
String getServiceDescription()Returns the description of the service, localized for the session's current locale.The description of the service is specified in the data model, under the node
xs:annotation/xs:documentation
.- Returns:
- the description of the service. May return
null
if the description is not available.
-
getCurrentPerspective
Perspective getCurrentPerspective()Returns the current perspective.- Since:
- 6.0.0
-