Interface ICalculatedFieldsService
public interface ICalculatedFieldsService
- Since:
- 3.3.0
- Author:
- Jiri Banszel, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptiongetCalculatedFieldIds
(IPObject instance) Calculated fields configured for given instance.getCalculatedFieldIds
(IContextId contextId, String prototypeName, Object controlValue) Calculated fields configured for given context and control value.getControlField
(String prototypeName) Returns name of the field which controls set of calculated fields defined for the object of given prototype.recalculate
(IContextId contextId) Starts job that recalculates calculated fields in all objects in given context (recalculation needs to be done after change of calculated fields configuration).recalculate
(IContextId contextId, String nodeId) Starts job that recalculates calculated fields in all objects in given context (recalculation needs to be done after change of calculated fields configuration) and on given node in cluster.void
startup()
Called internally during startup of the platform.
-
Method Details
-
getCalculatedFieldIds
Calculated fields configured for given instance.- Parameters:
instance
-
-
getControlField
Returns name of the field which controls set of calculated fields defined for the object of given prototype. The field is the same as returned by @linkICustomFieldsProvider.getControlField(String)
.- Parameters:
prototypeName
-
-
getCalculatedFieldIds
Calculated fields configured for given context and control value. Control value is value of a control field - the same as for custom fields.- Parameters:
contextId
-controlValue
-
-
recalculate
Starts job that recalculates calculated fields in all objects in given context (recalculation needs to be done after change of calculated fields configuration).- Parameters:
contextId
- in which to recalculate objects- Returns:
- recalculation job
- Throws:
GenericJobException
-
recalculate
Starts job that recalculates calculated fields in all objects in given context (recalculation needs to be done after change of calculated fields configuration) and on given node in cluster. If server is not configured as cluster then it always recalculate objects on local instance.- Parameters:
contextId
- in which to recalculate objectsnodeId
- where fields will be recalculated ornull
if should be run on all nodes in cluster- Returns:
- recalculation job
- Throws:
GenericJobException
- Since:
- 3.8.0
-
startup
void startup()Called internally during startup of the platform.
-