Class GovernanceTypeImpl<I,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.compile.impl.governance.GovernanceTypeImpl<I,F>
-
- All Implemented Interfaces:
GovernanceType<I,F>
public class GovernanceTypeImpl<I,F extends java.lang.Enum<F>> extends java.lang.Object implements GovernanceType<I,F>
GovernanceTypeimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceTypeImpl(GovernanceFactory<? extends I,F> governanceFactory, java.lang.Class<I> extensionInterface, GovernanceFlowType<F>[] flowTypes, GovernanceEscalationType[] escalationTypes)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernanceEscalationType[]getEscalationTypes()Obtains theGovernanceEscalationTypedefinitions for the possibleEscalationFlowinstances by theGovernanceActivity.java.lang.Class<I>getExtensionType()Obtains the extension type that theManagedObjectinstances are to provide to be enableGovernanceover them.GovernanceFlowType<F>[]getFlowTypes()Obtains theGovernanceFlowTypedefinitions for the possibleFlowinstances instigated by theGovernanceActivity.GovernanceFactory<? extends I,F>getGovernanceFactory()Obtains theGovernanceFactory.
-
-
-
Constructor Detail
-
GovernanceTypeImpl
public GovernanceTypeImpl(GovernanceFactory<? extends I,F> governanceFactory, java.lang.Class<I> extensionInterface, GovernanceFlowType<F>[] flowTypes, GovernanceEscalationType[] escalationTypes)
Initiate.- Parameters:
governanceFactory-GovernanceFactory.extensionInterface- Extension interface.flowTypes-GovernanceFlowTypeinstances.escalationTypes-GovernanceEscalationTypeinstances.
-
-
Method Detail
-
getGovernanceFactory
public GovernanceFactory<? extends I,F> getGovernanceFactory()
Description copied from interface:GovernanceTypeObtains theGovernanceFactory.- Specified by:
getGovernanceFactoryin interfaceGovernanceType<I,F extends java.lang.Enum<F>>- Returns:
GovernanceFactory.
-
getExtensionType
public java.lang.Class<I> getExtensionType()
Description copied from interface:GovernanceTypeObtains the extension type that theManagedObjectinstances are to provide to be enableGovernanceover them.- Specified by:
getExtensionTypein interfaceGovernanceType<I,F extends java.lang.Enum<F>>- Returns:
- Extension type that the
ManagedObjectinstances are to provide to be enableGovernanceover them.
-
getFlowTypes
public GovernanceFlowType<F>[] getFlowTypes()
Description copied from interface:GovernanceTypeObtains theGovernanceFlowTypedefinitions for the possibleFlowinstances instigated by theGovernanceActivity.- Specified by:
getFlowTypesin interfaceGovernanceType<I,F extends java.lang.Enum<F>>- Returns:
GovernanceFlowTypedefinitions for the possibleFlowinstances instigated by theGovernanceActivity.
-
getEscalationTypes
public GovernanceEscalationType[] getEscalationTypes()
Description copied from interface:GovernanceTypeObtains theGovernanceEscalationTypedefinitions for the possibleEscalationFlowinstances by theGovernanceActivity.- Specified by:
getEscalationTypesin interfaceGovernanceType<I,F extends java.lang.Enum<F>>- Returns:
GovernanceEscalationTypedefinitions for the possibleEscalationFlowinstances by theGovernanceActivity.
-
-