Class MonitorField

    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IMonitorField
        Returns the (localizable) name of this field.
        Specified by:
        getName in interface IMonitorField
        Returns:
        the (localizable) name of this field.
      • getDescription

        public String getDescription()
        Description copied from interface: IMonitorField
        Returns the (localizable description).
        Specified by:
        getDescription in interface IMonitorField
        Returns:
        the (localizable description).
      • getUnit

        public String getUnit()
        Description copied from interface: IMonitorField
        Returns the (localizable) unit of this field.
        Specified by:
        getUnit in interface IMonitorField
        Returns:
        the (localizable) unit of this field.
      • getLocalizedUnit

        public String getLocalizedUnit()
        Description copied from interface: IMonitorField
        Returns the localized unit of this field.
        Specified by:
        getLocalizedUnit in interface IMonitorField
        Returns:
        the localized unit of this field.
      • getStringResourcePath

        public String getStringResourcePath()
        Description copied from interface: IMonitorField
        Returns this field string resource path (used, if present, to localize strings).
        Specified by:
        getStringResourcePath in interface IMonitorField
        Returns:
        this field string resource path (used, if present, to localize strings).
      • setStringResourcePath

        public IMonitorFieldSPI setStringResourcePath​(String stringResourcePath)
        Description copied from interface: IMonitorFieldSPI
        Sets this field string resource path (used, if present, to localize strings).
        Specified by:
        setStringResourcePath in interface IMonitorFieldSPI
        Parameters:
        stringResourcePath - this field string resource path (used, if present, to localize strings).
        Returns:
        this field for chaining.
      • setStandard

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

        public boolean isStandard()
        Description copied from interface: IMonitorFieldSPI
        Returns whether this is a standard field.
        Specified by:
        isStandard in interface IMonitorFieldSPI
        Returns:
        whether this is a standard field.
      • isIdentifiesUserDefinition

        public boolean isIdentifiesUserDefinition()
        Description copied from interface: IMonitorFieldSPI
        Returns whether this field identifies the user and must have its value modified when anonymized according to the definition of this field.
        Specified by:
        isIdentifiesUserDefinition in interface IMonitorFieldSPI
        Returns:
        true if the definition of this field declares it as identifies user, false otherwise.
      • setIdentifiesUserDefinition

        public IMonitorFieldSPI setIdentifiesUserDefinition​(boolean identifiesUserDefinition)
        Description copied from interface: IMonitorFieldSPI
        Sets whether this field identifies the user and must have its value modified when anonymized according to the definition of this field.
        Specified by:
        setIdentifiesUserDefinition in interface IMonitorFieldSPI
      • getIdentifiesUserOverride

        public Boolean getIdentifiesUserOverride()
        Description copied from interface: IMonitorFieldSPI
        Returns whether this field identifies the user and must have its value modified when anonymized according to configuration of the current environment.
        Specified by:
        getIdentifiesUserOverride in interface IMonitorFieldSPI
        Returns:
        true if the field was set as identifies user in the current configurations, false if set as does not identify user in the current configurations, or null if there is nothing explicit in the current configuration and it must use the definition default.
      • identifiesUser

        public boolean identifiesUser()
        Description copied from interface: IMonitorField
        Indicates whether this field identifies the user and must have its value modified when anonymized.
        Specified by:
        identifiesUser in interface IMonitorField
        Returns:
        true if this field identifies the user, false otherwise.
      • 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
      • getId

        public String getId()
        Returns the identifier of this element.
        Returns:
        the identifier.
        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