Class MonitorField

    • Field Detail

      • id

        protected java.lang.String id
    • Method Detail

      • getName

        public java.lang.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.
      • setName

        public IMonitorFieldSPI setName​(java.lang.String name)
        Description copied from interface: IMonitorFieldSPI
        Sets the (localizable) name of this field.
        Specified by:
        setName in interface IMonitorFieldSPI
        Parameters:
        name - the (localizable) name of this field.
        Returns:
        this field for chaining.
      • getDescription

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

        public IMonitorFieldSPI setDescription​(java.lang.String description)
        Description copied from interface: IMonitorFieldSPI
        Sets the (localizable description).
        Specified by:
        setDescription in interface IMonitorFieldSPI
        Parameters:
        description - the (localizable description).
        Returns:
        this field for chaining.
      • getUnit

        public java.lang.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 java.lang.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.
      • setUnit

        public IMonitorFieldSPI setUnit​(java.lang.String unit)
        Description copied from interface: IMonitorFieldSPI
        Sets the (localizable) unit of this field.
        Specified by:
        setUnit in interface IMonitorFieldSPI
        Parameters:
        unit - the (localizable) unit of this field.
        Returns:
        this field for chaining.
      • getStringResourcePath

        public java.lang.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​(java.lang.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.
      • getInnerFields

        public java.util.Collection<IMonitorField> getInnerFields()
        Description copied from interface: IMonitorField
        Returns an unmodifiable collection of inner fields.
        Specified by:
        getInnerFields in interface IMonitorField
        Returns:
        an unmodifiable collection of inner fields.
      • 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.
      • getLocalizedDescription

        public java.lang.String getLocalizedDescription()
        Description copied from interface: IMonitorField
        Returns the localized description of this field.
        Specified by:
        getLocalizedDescription in interface IMonitorField
        Returns:
        the description of this field.
      • getLocalizedName

        public java.lang.String getLocalizedName()
        Description copied from interface: IMonitorField
        Returns the localized name of this field.
        Specified by:
        getLocalizedName in interface IMonitorField
        Returns:
        the name for this 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 java.lang.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.
      • setIdentifiesUserOverride

        public IMonitorFieldSPI setIdentifiesUserOverride​(java.lang.Boolean identifiesUserOverride)
        Description copied from interface: IMonitorFieldSPI
        Sets whether this field identifies the user and must have its value modified when anonymized, according to configuration of the current environment.
        Specified by:
        setIdentifiesUserOverride in interface IMonitorFieldSPI
      • 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​(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
      • getId

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