Class GovernanceMetaDataImpl<I,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.governance.GovernanceMetaDataImpl<I,F>
-
- All Implemented Interfaces:
GovernanceMetaData<I,F>
,ManagedFunctionLogicMetaData
public class GovernanceMetaDataImpl<I,F extends java.lang.Enum<F>> extends java.lang.Object implements GovernanceMetaData<I,F>
GovernanceMetaData
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceMetaDataImpl(java.lang.String governanceName, GovernanceFactory<? super I,F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, java.util.logging.Logger logger)
Initiate.
-
Method Summary
-
-
-
Constructor Detail
-
GovernanceMetaDataImpl
public GovernanceMetaDataImpl(java.lang.String governanceName, GovernanceFactory<? super I,F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, java.util.logging.Logger logger)
Initiate.- Parameters:
governanceName
- Name of theGovernance
.governanceFactory
-GovernanceFactory
.responsibleTeam
-TeamManagement
ofTeam
responsible for theGovernanceActivity
instances.asynchronousFlowTimeout
-AsynchronousFlow
timeout.asynchronousFlowAssetManagerReference
-AssetManagerReference
forAsynchronousFlow
instances.logger
-Logger
forGovernanceContext
.
-
-
Method Detail
-
loadOfficeMetaData
public void loadOfficeMetaData(OfficeMetaData officeMetaData, FlowMetaData[] flowMetaData, EscalationProcedure escalationProcedure)
Loads the remaining state.- Parameters:
officeMetaData
-OfficeMetaData
.flowMetaData
-FlowMetaData
instances.escalationProcedure
-EscalationProcedure
.
-
getFunctionName
public java.lang.String getFunctionName()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains the name of theManagedFunctionLogic
.- Specified by:
getFunctionName
in interfaceManagedFunctionLogicMetaData
- Returns:
- Name of the
ManagedFunctionLogic
.
-
getResponsibleTeam
public TeamManagement getResponsibleTeam()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theTeamManagement
responsible for completion of theFunctionState
.- Specified by:
getResponsibleTeam
in interfaceManagedFunctionLogicMetaData
- Returns:
TeamManagement
responsible for completion of theFunctionState
. May benull
to enable anyTeam
to execute theFunctionState
.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains the time out forAsynchronousFlow
instigated by theManagedFunction
.- Specified by:
getAsynchronousFlowTimeout
in interfaceManagedFunctionLogicMetaData
- Returns:
- Time out for
AsynchronousFlow
instigated by theManagedFunction
.
-
getAsynchronousFlowManagerReference
public AssetManagerReference getAsynchronousFlowManagerReference()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theAssetManagerReference
that managesAsynchronousFlow
instances instigated by theManagedFunction
.- Specified by:
getAsynchronousFlowManagerReference
in interfaceManagedFunctionLogicMetaData
- Returns:
AssetManagerReference
that managesAsynchronousFlow
instances instigated by theManagedFunction
.
-
getNextManagedFunctionMetaData
public ManagedFunctionMetaData<?,?> getNextManagedFunctionMetaData()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theManagedFunctionMetaData
of the nextManagedFunction
.- Specified by:
getNextManagedFunctionMetaData
in interfaceManagedFunctionLogicMetaData
- Returns:
ManagedFunctionMetaData
of nextManagedFunction
.
-
getEscalationProcedure
public EscalationProcedure getEscalationProcedure()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theEscalationProcedure
for theManagedFunctionLogic
.- Specified by:
getEscalationProcedure
in interfaceManagedFunctionLogicMetaData
- Returns:
EscalationProcedure
.
-
getOfficeMetaData
public OfficeMetaData getOfficeMetaData()
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theOfficeMetaData
.- Specified by:
getOfficeMetaData
in interfaceManagedFunctionLogicMetaData
- Returns:
OfficeMetaData
.
-
getGovernanceName
public java.lang.String getGovernanceName()
Description copied from interface:GovernanceMetaData
Obtains the name of theGovernance
.- Specified by:
getGovernanceName
in interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>
- Returns:
- Name of the
Governance
.
-
createGovernanceContainer
public GovernanceContainer<I> createGovernanceContainer(ThreadState threadState, int governanceIndex)
Description copied from interface:GovernanceMetaData
Creates theGovernanceContainer
.- Specified by:
createGovernanceContainer
in interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>
- Parameters:
threadState
-ThreadState
.governanceIndex
- Index of theGovernance
within theThreadState
.- Returns:
GovernanceContainer
.
-
createGovernanceFunctionLogic
public ManagedFunctionLogic createGovernanceFunctionLogic(GovernanceActivity<F> activity)
Description copied from interface:GovernanceMetaData
Creates theManagedFunctionContainer
for theGovernanceActivity
.- Specified by:
createGovernanceFunctionLogic
in interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>
- Parameters:
activity
-GovernanceActivity
.- Returns:
ManagedFunctionLogic
for theGovernanceActivity
.
-
getGovernanceFactory
public GovernanceFactory<? super I,F> getGovernanceFactory()
Description copied from interface:GovernanceMetaData
Obtains theGovernanceFactory
.- Specified by:
getGovernanceFactory
in interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>
- Returns:
GovernanceFactory
.
-
getFlow
public FlowMetaData getFlow(int flowIndex)
Description copied from interface:ManagedFunctionLogicMetaData
Obtains theFlowMetaData
of the specifiedFlow
.- Specified by:
getFlow
in interfaceManagedFunctionLogicMetaData
- Parameters:
flowIndex
- Index of theFlow
.- Returns:
FlowMetaData
of the specifiedFlow
.
-
-