Package lumis.portal.monitor.impl
Class MonitorFieldGroup
- java.lang.Object
-
- lumis.portal.monitor.impl.MonitorFieldGroup
-
- All Implemented Interfaces:
IMonitorElementSPI<IMonitorFieldGroupSPI>
,IMonitorFieldGroup
,IMonitorFieldGroupSPI
public class MonitorFieldGroup extends Object implements IMonitorFieldGroupSPI
Field group.- Since:
- 11.0.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Constructor Summary
Constructors Constructor Description MonitorFieldGroup(String id, String serviceInstanceId)
Creates a new field group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMonitorFieldGroupSPI
addField(IMonitorFieldSPI field)
Adds the given field in this field group.Collection<IMonitorField>
getFields()
Returns the fields of this field group.String
getId()
Returns the identifier of this element.String
getServiceInstanceId()
Returns the identifier of the service instance this element belongs to.IMonitorFieldGroupSPI
removeField(String fieldId)
Removes the given field.IMonitorFieldGroupSPI
removeFields(Collection<String> fieldsIds)
Removes the direct fields that has their ids in the given ids collection.IMonitorFieldGroupSPI
setStandard(boolean isStandard)
Sets this field group either as standard or custom (non-standard).protected void
validateLocalId(String localId)
Validates the part of the identifier without the service instance identifier prefix, when the element belongs to a service instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.monitor.IMonitorElementSPI
getServiceInstanceId
-
-
-
-
Field Detail
-
id
protected String id
-
-
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, ornull
if it is a global group.- Throws:
PortalException
- Since:
- 14.0.0
-
-
Method Detail
-
getId
public String getId()
Returns the identifier of this element.- Specified by:
getId
in interfaceIMonitorElementSPI<IMonitorFieldGroupSPI>
- Specified by:
getId
in interfaceIMonitorFieldGroup
- Returns:
- the identifier.
-
getFields
public Collection<IMonitorField> getFields()
Description copied from interface:IMonitorFieldGroup
Returns the fields of this field group.- Specified by:
getFields
in interfaceIMonitorFieldGroup
- Returns:
- the fields of this field group.
-
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
-
addField
public IMonitorFieldGroupSPI addField(IMonitorFieldSPI field)
Description copied from interface:IMonitorFieldGroupSPI
Adds the given field in this field group.- Specified by:
addField
in interfaceIMonitorFieldGroupSPI
- Parameters:
field
- the field.- Returns:
- this field group for chaining.
-
removeField
public IMonitorFieldGroupSPI removeField(String fieldId)
Description copied from interface:IMonitorFieldGroupSPI
Removes the given field.- Specified by:
removeField
in interfaceIMonitorFieldGroupSPI
- Parameters:
fieldId
- the field identifier.- Returns:
- this field group.
-
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 interfaceIMonitorFieldGroupSPI
- 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
-
-