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 Enum<F>,G extends Enum<G>>
extends AbstractFunctionBuilder<F>
implements AdministrationBuilder<F,G>, AdministrationConfiguration<E,F,G>
Implementation of the
AdministrationBuilder.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionAdministrationBuilderImpl(String administrationName, Class<E> extensionInterface, AdministrationFactory<E, F, G> administrationFactory) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidadministerManagedObject(String scopeManagedObjectName) Flags for theAdministrationto administer the referencedManagedObject.String[]Obtains the names of theManagedObjectinstances to be administered.Obtains theAdministrationFactory.Obtains the name of theAdministration.longObtains the timeout for anyAsynchronousFlowinstigated.Obtains the extension interface.Obtains the configuration for the linkedGovernance.voidlinkGovernance(int governanceIndex, String governanceName) Links aGovernance.voidlinkGovernance(G key, String governanceName) Links aGovernance.voidsetAsynchronousFlowTimeout(long timeout) Specifies the timeout to forAsynchronousFlowinstances for thisAdministration.Methods inherited from class net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder
addEscalation, getEscalations, getFlowConfiguration, getResponsibleTeamName, linkFlow, linkFlow, setResponsibleTeamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.frame.api.build.FunctionBuilder
addEscalation, linkFlow, linkFlow, setResponsibleTeamMethods inherited from interface net.officefloor.frame.internal.configuration.FunctionConfiguration
getEscalations, getFlowConfiguration, getResponsibleTeamName
-
Constructor Details
-
AdministrationBuilderImpl
public AdministrationBuilderImpl(String administrationName, Class<E> extensionInterface, AdministrationFactory<E, F, G> administrationFactory) Initiate.- Parameters:
administrationName- Name of theAdministration.extensionInterface- Extension interface.administrationFactory-AdministrationFactory.
-
-
Method Details
-
administerManagedObject
Description copied from interface:AdministrationBuilderFlags for theAdministrationto administer the referencedManagedObject. This may be called more than once to register more than oneManagedObjectto be administered by thisAdministration.- Specified by:
administerManagedObjectin interfaceAdministrationBuilder<E,F extends Enum<F>> - Parameters:
scopeManagedObjectName- Name of theManagedObjectwithin the scope thisAdministrationis being added.
-
linkGovernance
Description copied from interface:AdministrationBuilderLinks aGovernance.- Specified by:
linkGovernancein interfaceAdministrationBuilder<E,F extends Enum<F>> - Parameters:
key- Key to identify theGovernance.governanceName- Name of theGovernance.
-
linkGovernance
Description copied from interface:AdministrationBuilderLinks aGovernance.- Specified by:
linkGovernancein interfaceAdministrationBuilder<E,F extends Enum<F>> - Parameters:
governanceIndex- Index to identify theGovernance.governanceName- Name of theGovernance.
-
setAsynchronousFlowTimeout
public void setAsynchronousFlowTimeout(long timeout) Description copied from interface:AdministrationBuilderSpecifies the timeout to forAsynchronousFlowinstances for thisAdministration.- Specified by:
setAsynchronousFlowTimeoutin interfaceAdministrationBuilder<E,F extends Enum<F>> - Parameters:
timeout- Timeout.
-
getAdministrationName
Description copied from interface:AdministrationConfigurationObtains the name of theAdministration.- Specified by:
getAdministrationNamein interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
- Name of the
Administration.
-
getAdministrationFactory
Description copied from interface:AdministrationConfigurationObtains theAdministrationFactory.- Specified by:
getAdministrationFactoryin interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
AdministrationFactory.
-
getExtensionType
Description copied from interface:AdministrationConfigurationObtains the extension interface.- Specified by:
getExtensionTypein interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
- Extension interface.
-
getGovernanceConfiguration
Description copied from interface:AdministrationConfigurationObtains the configuration for the linkedGovernance.- Specified by:
getGovernanceConfigurationin interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
AdministrationGovernanceConfigurationspecifying the linkedGovernance.
-
getAdministeredManagedObjectNames
Description copied from interface:AdministrationConfigurationObtains the names of theManagedObjectinstances to be administered.- Specified by:
getAdministeredManagedObjectNamesin interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
- Names of the
ManagedObjectinstances to be administered.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()Description copied from interface:AdministrationConfigurationObtains the timeout for anyAsynchronousFlowinstigated.- Specified by:
getAsynchronousFlowTimeoutin interfaceAdministrationConfiguration<E,F extends Enum<F>, G extends Enum<G>> - Returns:
- Timeout for any
AsynchronousFlowinstigated.
-