Class AdministrationBuilderImpl<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- java.lang.Object
-
- net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder<F>
-
- net.officefloor.frame.impl.construct.administration.AdministrationBuilderImpl<E,F,G>
-
- All Implemented Interfaces:
AdministrationBuilder<F,G>
,FunctionBuilder<F>
,AdministrationConfiguration<E,F,G>
,FunctionConfiguration<F>
public class AdministrationBuilderImpl<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> extends AbstractFunctionBuilder<F> implements AdministrationBuilder<F,G>, AdministrationConfiguration<E,F,G>
Implementation of theAdministrationBuilder
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AdministrationBuilderImpl(java.lang.String administrationName, java.lang.Class<E> extensionInterface, AdministrationFactory<E,F,G> administrationFactory)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
administerManagedObject(java.lang.String scopeManagedObjectName)
Flags for theAdministration
to administer the referencedManagedObject
.java.lang.String[]
getAdministeredManagedObjectNames()
Obtains the names of theManagedObject
instances to be administered.AdministrationFactory<E,F,G>
getAdministrationFactory()
Obtains theAdministrationFactory
.java.lang.String
getAdministrationName()
Obtains the name of theAdministration
.long
getAsynchronousFlowTimeout()
Obtains the timeout for anyAsynchronousFlow
instigated.java.lang.Class<E>
getExtensionType()
Obtains the extension interface.AdministrationGovernanceConfiguration<?>[]
getGovernanceConfiguration()
Obtains the configuration for the linkedGovernance
.void
linkGovernance(int governanceIndex, java.lang.String governanceName)
Links aGovernance
.void
linkGovernance(G key, java.lang.String governanceName)
Links aGovernance
.void
setAsynchronousFlowTimeout(long timeout)
Specifies the timeout to forAsynchronousFlow
instances for thisAdministration
.-
Methods inherited from class net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder
addEscalation, getEscalations, getFlowConfiguration, getResponsibleTeamName, linkFlow, linkFlow, setResponsibleTeam
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.api.build.FunctionBuilder
addEscalation, linkFlow, linkFlow, setResponsibleTeam
-
Methods inherited from interface net.officefloor.frame.internal.configuration.FunctionConfiguration
getEscalations, getFlowConfiguration, getResponsibleTeamName
-
-
-
-
Constructor Detail
-
AdministrationBuilderImpl
public AdministrationBuilderImpl(java.lang.String administrationName, java.lang.Class<E> extensionInterface, AdministrationFactory<E,F,G> administrationFactory)
Initiate.- Parameters:
administrationName
- Name of theAdministration
.extensionInterface
- Extension interface.administrationFactory
-AdministrationFactory
.
-
-
Method Detail
-
administerManagedObject
public void administerManagedObject(java.lang.String scopeManagedObjectName)
Description copied from interface:AdministrationBuilder
Flags for theAdministration
to administer the referencedManagedObject
. This may be called more than once to register more than oneManagedObject
to be administered by thisAdministration
.- Specified by:
administerManagedObject
in interfaceAdministrationBuilder<E,F extends java.lang.Enum<F>>
- Parameters:
scopeManagedObjectName
- Name of theManagedObject
within the scope thisAdministration
is being added.
-
linkGovernance
public void linkGovernance(G key, java.lang.String governanceName)
Description copied from interface:AdministrationBuilder
Links aGovernance
.- Specified by:
linkGovernance
in interfaceAdministrationBuilder<E,F extends java.lang.Enum<F>>
- Parameters:
key
- Key to identify theGovernance
.governanceName
- Name of theGovernance
.
-
linkGovernance
public void linkGovernance(int governanceIndex, java.lang.String governanceName)
Description copied from interface:AdministrationBuilder
Links aGovernance
.- Specified by:
linkGovernance
in interfaceAdministrationBuilder<E,F extends java.lang.Enum<F>>
- Parameters:
governanceIndex
- Index to identify theGovernance
.governanceName
- Name of theGovernance
.
-
setAsynchronousFlowTimeout
public void setAsynchronousFlowTimeout(long timeout)
Description copied from interface:AdministrationBuilder
Specifies the timeout to forAsynchronousFlow
instances for thisAdministration
.- Specified by:
setAsynchronousFlowTimeout
in interfaceAdministrationBuilder<E,F extends java.lang.Enum<F>>
- Parameters:
timeout
- Timeout.
-
getAdministrationName
public java.lang.String getAdministrationName()
Description copied from interface:AdministrationConfiguration
Obtains the name of theAdministration
.- Specified by:
getAdministrationName
in interfaceAdministrationConfiguration<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:AdministrationConfiguration
Obtains theAdministrationFactory
.- Specified by:
getAdministrationFactory
in interfaceAdministrationConfiguration<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
AdministrationFactory
.
-
getExtensionType
public java.lang.Class<E> getExtensionType()
Description copied from interface:AdministrationConfiguration
Obtains the extension interface.- Specified by:
getExtensionType
in interfaceAdministrationConfiguration<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
- Extension interface.
-
getGovernanceConfiguration
public AdministrationGovernanceConfiguration<?>[] getGovernanceConfiguration()
Description copied from interface:AdministrationConfiguration
Obtains the configuration for the linkedGovernance
.- Specified by:
getGovernanceConfiguration
in interfaceAdministrationConfiguration<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
AdministrationGovernanceConfiguration
specifying the linkedGovernance
.
-
getAdministeredManagedObjectNames
public java.lang.String[] getAdministeredManagedObjectNames()
Description copied from interface:AdministrationConfiguration
Obtains the names of theManagedObject
instances to be administered.- Specified by:
getAdministeredManagedObjectNames
in interfaceAdministrationConfiguration<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
- Names of the
ManagedObject
instances to be administered.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()
Description copied from interface:AdministrationConfiguration
Obtains the timeout for anyAsynchronousFlow
instigated.- Specified by:
getAsynchronousFlowTimeout
in interfaceAdministrationConfiguration<E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>>
- Returns:
- Timeout for any
AsynchronousFlow
instigated.
-
-