Class MonitorFieldGroup

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String id  
    • Constructor Summary

      Constructors 
      Constructor Description
      MonitorFieldGroup​(java.lang.String id, java.lang.String serviceInstanceId)
      Creates a new field group.
    • Field Detail

      • id

        protected java.lang.String id
    • Constructor Detail

      • MonitorFieldGroup

        public MonitorFieldGroup​(java.lang.String id,
                                 java.lang.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​(java.util.Collection<java.lang.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​(java.lang.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 java.lang.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