Package lumis.portal.monitor.impl
Class AbstractMonitorResource
- java.lang.Object
-
- lumis.portal.monitor.impl.AbstractMonitorResource
-
- Direct Known Subclasses:
AbstractResourceForDouiAdministrations
,CustomerExperienceResource
,EventAnalyticsReportResource
,EventAnalyticsResource
,FlowResource
,UserAttributesResource
,UserSegmentationRestAPI
public abstract class AbstractMonitorResource extends Object
Abstract class to aid Monitor-related REST resources.- Since:
- 14.0.0
- Version:
- $Revision: 24836 $ $Date: 2022-02-07 13:32:15 -0300 (Mon, 07 Feb 2022) $
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomerExperienceApp
app
-
Constructor Summary
Constructors Constructor Description AbstractMonitorResource(CustomerExperienceApp app)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceInstanceConfig
checkModeManagePermission(String serviceInstanceId)
Checks user has the required manage permissions.static ServiceInstanceConfig
checkModeManagePermission(CustomerExperienceApp app, String serviceInstanceId)
Checks user has the required manage permissions.ServiceInstanceConfig
checkModeViewPermission(String serviceInstanceId)
Checks user has the required view permissions.ServiceInstanceConfig
checkModeViewPermission(CustomerExperienceApp app, String serviceInstanceId)
Checks user has the required view permissions.static ServiceInstanceConfig
checkViewServiceInstancePermission(String serviceInstanceId)
Checks user has the required view service instance permission.
-
-
-
Field Detail
-
app
protected final CustomerExperienceApp app
-
-
Constructor Detail
-
AbstractMonitorResource
public AbstractMonitorResource(CustomerExperienceApp app)
-
-
Method Detail
-
checkModeViewPermission
public ServiceInstanceConfig checkModeViewPermission(CustomerExperienceApp app, String serviceInstanceId) throws PortalException
Checks user has the required view permissions.- Parameters:
app
- the customer app to which the permission should be checked.serviceInstanceId
- the service instance identifier.- Throws:
IllegalArgumentException
- if the given service instance identifier isnull
or an empty string.IllegalArgumentException
- if the given service instance identifier refers to a service other than customer experience.PortalObjectNotFoundException
- if no service instance was found with the given identifier.PortalException
- if some error occur during the service instance reading.AccessDeniedException
- if the user doesn't have the requested permission.- Since:
- 14.0.0
-
checkModeManagePermission
public static ServiceInstanceConfig checkModeManagePermission(CustomerExperienceApp app, String serviceInstanceId) throws PortalException
Checks user has the required manage permissions.- Parameters:
app
- the customer app to which the permission should be checked.serviceInstanceId
- the service instance identifier.- Throws:
IllegalArgumentException
- if the given service instance identifier isnull
or an empty string.IllegalArgumentException
- if the given service instance identifier refers to a service other than customer experience.PortalObjectNotFoundException
- if no service instance was found with the given identifier.PortalException
- if some error occur during the service instance reading.AccessDeniedException
- if the user doesn't have the requested permission.- Since:
- 14.0.0
-
checkModeViewPermission
public ServiceInstanceConfig checkModeViewPermission(String serviceInstanceId) throws PortalException
Checks user has the required view permissions.- Parameters:
serviceInstanceId
- the service instance identifier.- Throws:
IllegalArgumentException
- if the given service instance identifier isnull
or an empty string.IllegalArgumentException
- if the given service instance identifier refers to a service other than customer experience.PortalObjectNotFoundException
- if no service instance was found with the given identifier.PortalException
- if some error occur during the service instance reading.AccessDeniedException
- if the user doesn't have the requested permission.- Since:
- 14.0.0
-
checkModeManagePermission
public ServiceInstanceConfig checkModeManagePermission(String serviceInstanceId) throws PortalException
Checks user has the required manage permissions.- Parameters:
serviceInstanceId
- the service instance identifier.- Throws:
IllegalArgumentException
- if the given service instance identifier isnull
or an empty string.IllegalArgumentException
- if the given service instance identifier refers to a service other than customer experience.PortalObjectNotFoundException
- if no service instance was found with the given identifier.PortalException
- if some error occur during the service instance reading.AccessDeniedException
- if the user doesn't have the requested permission.- Since:
- 14.0.0
-
checkViewServiceInstancePermission
public static ServiceInstanceConfig checkViewServiceInstancePermission(String serviceInstanceId) throws PortalException
Checks user has the required view service instance permission.- Parameters:
serviceInstanceId
- the service instance identifier.- Throws:
IllegalArgumentException
- if the given service instance identifier isnull
or an empty string.IllegalArgumentException
- if the given service instance identifier refers to a service other than customer experience.PortalObjectNotFoundException
- if no service instance was found with the given identifier.PortalException
- if some error occur during the service instance reading.AccessDeniedException
- if the user doesn't have the requested permission.- Since:
- 14.0.0
-
-