Class AbstractFunctionBuilder<F extends Enum<F>>
java.lang.Object
net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder<F>
- All Implemented Interfaces:
FunctionBuilder<F>,FunctionConfiguration<F>
- Direct Known Subclasses:
AdministrationBuilderImpl,GovernanceBuilderImpl,ManagedFunctionBuilderImpl
public abstract class AbstractFunctionBuilder<F extends Enum<F>>
extends Object
implements FunctionBuilder<F>, FunctionConfiguration<F>
Abstract
FunctionBuilder.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEscalation(Class<? extends Throwable> typeOfCause, String functionName) Obtains theEscalationConfigurationinstances.Obtains the configuration of theFlowinstances for thisManagedFunctionLogic.Obtains the name of theTeamto execute theManagedFunctionLogic.voidvoidvoidsetResponsibleTeam(String officeTeamName)
-
Constructor Details
-
AbstractFunctionBuilder
public AbstractFunctionBuilder()
-
-
Method Details
-
setResponsibleTeam
Description copied from interface:FunctionBuilderSpecifies the
Teamby itsOfficeregistered name that that is responsible for this node.Should this not be specified, any
Teamwill be used.- Specified by:
setResponsibleTeamin interfaceFunctionBuilder<F extends Enum<F>>- Parameters:
officeTeamName- Name of theTeamwithin theOffice.
-
linkFlow
Description copied from interface:FunctionBuilder- Specified by:
linkFlowin interfaceFunctionBuilder<F extends Enum<F>>- Parameters:
key- Key identifying theFlow.functionName- Name of the initialManagedFunctionfor theFlow.argumentType- Type of argument passed to the instigatedFlow. May benullto indicate no argument.isSpawnThreadState-trueto instigate theFlowin a spawnedThreadState.
-
linkFlow
public void linkFlow(int flowIndex, String functionName, Class<?> argumentType, boolean isSpawnThreadState) Description copied from interface:FunctionBuilder- Specified by:
linkFlowin interfaceFunctionBuilder<F extends Enum<F>>- Parameters:
flowIndex- Index identifying theFlow.functionName- Name of the initialManagedFunctionfor theFlow.argumentType- Type of argument passed to the instigatedFlow. May benullto indicate no argument.isSpawnThreadState-trueto instigate theFlowin a spawnedThreadState.
-
addEscalation
Description copied from interface:FunctionBuilderAdds an
EscalationFlowto theEscalationProcedurefor theManagedFunction.The order in which the
EscalationFlowinstances are added is the order in which they are checked for handling escalation. Only oneEscalationFlowis used to handle escalation and the first one covering the cause will be used. This is similar totry ... catchblocks.- Specified by:
addEscalationin interfaceFunctionBuilder<F extends Enum<F>>- Parameters:
typeOfCause- Type of cause handled by thisEscalationFlow.functionName- Name of theManagedFunctionto handle theEscalation.
-
getResponsibleTeamName
Description copied from interface:FunctionConfigurationObtains the name of theTeamto execute theManagedFunctionLogic.- Specified by:
getResponsibleTeamNamein interfaceFunctionConfiguration<F extends Enum<F>>- Returns:
- Name of
Team. May benullto use anyTeam.
-
getFlowConfiguration
Description copied from interface:FunctionConfigurationObtains the configuration of theFlowinstances for thisManagedFunctionLogic.- Specified by:
getFlowConfigurationin interfaceFunctionConfiguration<F extends Enum<F>>- Returns:
- Configuration of
Flowinstances for thisManagedFunctionLogic.
-
getEscalations
Description copied from interface:FunctionConfigurationObtains theEscalationConfigurationinstances.- Specified by:
getEscalationsin interfaceFunctionConfiguration<F extends Enum<F>>- Returns:
EscalationConfigurationinstances.
-