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>
GovernanceType
implementation.- 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 theGovernanceEscalationType
definitions for the possibleEscalationFlow
instances by theGovernanceActivity
.java.lang.Class<I>
getExtensionType()
Obtains the extension type that theManagedObject
instances are to provide to be enableGovernance
over them.GovernanceFlowType<F>[]
getFlowTypes()
Obtains theGovernanceFlowType
definitions for the possibleFlow
instances 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
-GovernanceFlowType
instances.escalationTypes
-GovernanceEscalationType
instances.
-
-
Method Detail
-
getGovernanceFactory
public GovernanceFactory<? extends I,F> getGovernanceFactory()
Description copied from interface:GovernanceType
Obtains theGovernanceFactory
.- Specified by:
getGovernanceFactory
in interfaceGovernanceType<I,F extends java.lang.Enum<F>>
- Returns:
GovernanceFactory
.
-
getExtensionType
public java.lang.Class<I> getExtensionType()
Description copied from interface:GovernanceType
Obtains the extension type that theManagedObject
instances are to provide to be enableGovernance
over them.- Specified by:
getExtensionType
in interfaceGovernanceType<I,F extends java.lang.Enum<F>>
- Returns:
- Extension type that the
ManagedObject
instances are to provide to be enableGovernance
over them.
-
getFlowTypes
public GovernanceFlowType<F>[] getFlowTypes()
Description copied from interface:GovernanceType
Obtains theGovernanceFlowType
definitions for the possibleFlow
instances instigated by theGovernanceActivity
.- Specified by:
getFlowTypes
in interfaceGovernanceType<I,F extends java.lang.Enum<F>>
- Returns:
GovernanceFlowType
definitions for the possibleFlow
instances instigated by theGovernanceActivity
.
-
getEscalationTypes
public GovernanceEscalationType[] getEscalationTypes()
Description copied from interface:GovernanceType
Obtains theGovernanceEscalationType
definitions for the possibleEscalationFlow
instances by theGovernanceActivity
.- Specified by:
getEscalationTypes
in interfaceGovernanceType<I,F extends java.lang.Enum<F>>
- Returns:
GovernanceEscalationType
definitions for the possibleEscalationFlow
instances by theGovernanceActivity
.
-
-