Modifier | Constructor and Description |
---|---|
private |
WebHelper() |
Modifier and Type | Method and Description |
---|---|
static Site |
findSite(Event event)
Retrieves the site from an observation
Event .This method search in the events' arguments to find : ObservationConstants.ARGS_SITE
ObservationConstants.ARGS_PAGE
ObservationConstants.ARGS_ZONE_ITEM
ObservationConstants.ARGS_ACL_CONTEXT
object if it's instance of SiteAwareAmetysObject
|
static String |
getSiteName(Request request)
Get the site name from the request.
|
static String |
getSiteName(Request request,
AmetysObject object)
Get the site name from a object or current request.
|
private WebHelper()
public static String getSiteName(Request request)
request
- the request. Cannot be null.null
if not foundpublic static String getSiteName(Request request, AmetysObject object)
request
- the request. Cannot be null.object
- the object. Can be null.null
if not foundpublic static Site findSite(Event event)
Event
.ObservationConstants.ARGS_SITE
ObservationConstants.ARGS_PAGE
ObservationConstants.ARGS_ZONE_ITEM
ObservationConstants.ARGS_ACL_CONTEXT
object
if it's instance of SiteAwareAmetysObject
event
- the Event
.