Class AdministrationMetaDataImpl<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.administration.AdministrationMetaDataImpl<E,F,G>
-
- All Implemented Interfaces:
AdministrationMetaData<E,F,G>
,ManagedFunctionLogicMetaData
public class AdministrationMetaDataImpl<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> extends java.lang.Object implements AdministrationMetaData<E,F,G>
Implementation of theAdministrationMetaData
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AdministrationMetaDataImpl(java.lang.String administrationName, AdministrationFactory<E,F,G> administrationFactory, java.lang.Class<E> extensionInterface, ManagedObjectExtensionExtractorMetaData<E>[] eiMetaData, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, FlowMetaData[] flowMetaData, int[] governanceIndexes, EscalationProcedure escalationProcedure, OfficeMetaData officeMetaData)
Instantiate.
-
Method Summary
-
-
-
Constructor Detail
-
AdministrationMetaDataImpl
public AdministrationMetaDataImpl(java.lang.String administrationName, AdministrationFactory<E,F,G> administrationFactory, java.lang.Class<E> extensionInterface, ManagedObjectExtensionExtractorMetaData<E>[] eiMetaData, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, FlowMetaData[] flowMetaData, int[] governanceIndexes, EscalationProcedure escalationProcedure, OfficeMetaData officeMetaData)
Instantiate.- Parameters:
administrationName
- Bound name of thisAdministration
.administrationFactory
-AdministrationFactory
.extensionInterface
- Extension interface.eiMetaData
-ManagedObjectExtensionExtractorMetaData
.responsibleTeam
-TeamManagement
ofTeam
responsible for theGovernanceActivity
.asynchronousFlowAssetManagerReference
-AssetManagerReference
for the instigatedAsynchronousFlow
instances.asynchronousFlowTimeout
-AsynchronousFlow
tiemout.flowMetaData
-FlowMetaData
instances for thisAdministration
.governanceIndexes
- Translates the index to aThreadState
Governance
index.escalationProcedure
-EscalationProcedure
.officeMetaData
-OfficeMetaData
.
-
-
Method Detail
-
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
.
-
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
.
-
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
.
-
getManagedObjectExtensionExtractorMetaData
public ManagedObjectExtensionExtractorMetaData<E>[] getManagedObjectExtensionExtractorMetaData()
Description copied from interface:AdministrationMetaData
Obtains theManagedObjectExtensionExtractorMetaData
over theManagedObject
instances to be administered by thisAdministration
.- Specified by:
getManagedObjectExtensionExtractorMetaData
in interfaceAdministrationMetaData<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
ManagedObjectExtensionExtractorMetaData
over theManagedObject
instances to be administered by thisAdministration
.
-
getAdministrationName
public java.lang.String getAdministrationName()
Description copied from interface:AdministrationMetaData
Obtains the name of theAdministration
.- Specified by:
getAdministrationName
in interfaceAdministrationMetaData<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
- Name of the
Administration
.
-
getAdministrationFactory
public AdministrationFactory<E,F,G> getAdministrationFactory()
Description copied from interface:AdministrationMetaData
Obtains theAdministrationFactory
.- Specified by:
getAdministrationFactory
in interfaceAdministrationMetaData<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
AdministrationFactory
.
-
getExtensionInterface
public java.lang.Class<E> getExtensionInterface()
Description copied from interface:AdministrationMetaData
Obtains the extension interface to administer theManagedObject
instances.- Specified by:
getExtensionInterface
in interfaceAdministrationMetaData<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
- Extension interface to administer the
ManagedObject
instances.
-
translateGovernanceIndexToThreadIndex
public int translateGovernanceIndexToThreadIndex(int governanceIndex)
Description copied from interface:AdministrationMetaData
- Specified by:
translateGovernanceIndexToThreadIndex
in interfaceAdministrationMetaData<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Parameters:
governanceIndex
-Administration
Governance
index.- Returns:
ThreadState
Governance
index.
-
-