Class AbstractMonitorResource

    • Method Detail

      • checkModeViewPermission

        public ServiceInstanceConfig checkModeViewPermission​(CustomerExperienceApp app,
                                                             java.lang.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:
        java.lang.IllegalArgumentException - if the given service instance identifier is null or an empty string.
        java.lang.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,
                                                                      java.lang.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:
        java.lang.IllegalArgumentException - if the given service instance identifier is null or an empty string.
        java.lang.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​(java.lang.String serviceInstanceId)
                                                      throws PortalException
        Checks user has the required view permissions.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        java.lang.IllegalArgumentException - if the given service instance identifier is null or an empty string.
        java.lang.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​(java.lang.String serviceInstanceId)
                                                        throws PortalException
        Checks user has the required manage permissions.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        java.lang.IllegalArgumentException - if the given service instance identifier is null or an empty string.
        java.lang.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​(java.lang.String serviceInstanceId)
                                                                        throws PortalException
        Checks user has the required view service instance permission.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        java.lang.IllegalArgumentException - if the given service instance identifier is null or an empty string.
        java.lang.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