Class MonitorFieldGroup

    • Constructor Detail

      • MonitorFieldGroup

        public MonitorFieldGroup​(String id,
                                 String serviceInstanceId)
                          throws PortalException
        Creates a new field group.
        Parameters:
        id - the field group identifier.
        serviceInstanceId - the identifier of the service instance the group belongs to, or null if it is a global group.
        Throws:
        PortalException
        Since:
        14.0.0
    • Method Detail

      • removeFields

        public IMonitorFieldGroupSPI removeFields​(Collection<String> fieldsIds)
        Removes the direct fields that has their ids in the given ids collection.
        Parameters:
        fieldsIds - the identifiers of the fields to be removed
        Returns:
        this field group for chaining
        Since:
        14.0.0
      • setStandard

        public IMonitorFieldGroupSPI setStandard​(boolean isStandard)
        Description copied from interface: IMonitorFieldGroupSPI
        Sets this field group either as standard or custom (non-standard).
        Specified by:
        setStandard in interface IMonitorFieldGroupSPI
        Parameters:
        isStandard - true to mark this field group as standard, false to custom.
        Returns:
        this field group for chaining.
      • validateLocalId

        protected void validateLocalId​(String localId)
                                throws PortalException
        Validates the part of the identifier without the service instance identifier prefix, when the element belongs to a service instance.
        Parameters:
        localId - the part of the identifier without the service instance identifier prefix.
        Throws:
        PortalException - if the validation fails.
        Since:
        14.0.0
      • getServiceInstanceId

        public String getServiceInstanceId()
        Returns the identifier of the service instance this element belongs to.
        Returns:
        the identifier of the service instance this element belongs to or null if this element is global.
        Since:
        14.0.0