public class AdministratorBuilderImpl<I,A extends Enum<A>,AS extends AdministratorSource<I,A>> extends Object implements AdministratorBuilder<A>, AdministratorSourceConfiguration<A,AS>
AdministratorBuilder
.Constructor and Description |
---|
AdministratorBuilderImpl(String administratorName,
Class<AS> administratorSourceClass)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
DutyBuilder |
addDuty(String dutyName)
Adds a
Duty of the Administrator . |
void |
addProperty(String name,
String value)
Specifies a property for the
AdministratorSource . |
void |
administerManagedObject(String scopeManagedObjectName)
Flags for the
Administrator to administer the referenced
ManagedObject . |
String[] |
getAdministeredManagedObjectNames()
Obtains the names of the
ManagedObject instances to be
administered. |
String |
getAdministratorName()
Obtains the name of the
AdministratorSource . |
Class<AS> |
getAdministratorSourceClass()
Obtains the
Class of the AdministratorSource . |
DutyConfiguration<A>[] |
getDutyConfiguration()
|
String |
getOfficeTeamName()
Obtains the name of the
Team within the Office
responsible for completing the Duty instances of this
Administrator . |
SourceProperties |
getProperties()
Obtains the
SourceProperties to initialise the
AdministratorSource . |
void |
setTeam(String officeTeamName)
Name of the
Team linked to the Office of this
Administrator which is responsible for doing to the Duty
instances of this Administrator . |
public AdministratorBuilderImpl(String administratorName, Class<AS> administratorSourceClass)
administratorName
- Name of the Administrator
.administratorSourceClass
- Class
of the AdministratorSource
.public void addProperty(String name, String value)
AdministratorBuilder
AdministratorSource
.addProperty
in interface AdministratorBuilder<A extends Enum<A>>
name
- Name of property.value
- Value of property.public void setTeam(String officeTeamName)
AdministratorBuilder
Team
linked to the Office
of this
Administrator
which is responsible for doing to the Duty
instances of this Administrator
.setTeam
in interface AdministratorBuilder<A extends Enum<A>>
officeTeamName
- Name of Team
within the Office
for this
Administrator
.public void administerManagedObject(String scopeManagedObjectName)
AdministratorBuilder
Administrator
to administer the referenced
ManagedObject
. This may be called more than once to register more
than one ManagedObject
to be administered by this
Administrator
.administerManagedObject
in interface AdministratorBuilder<A extends Enum<A>>
scopeManagedObjectName
- Name of the ManagedObject
within the scope this
Administrator
is being added.public DutyBuilder addDuty(String dutyName)
AdministratorBuilder
Duty
of the Administrator
.addDuty
in interface AdministratorBuilder<A extends Enum<A>>
dutyName
- Name identifying the Duty
.DutyBuilder
for the specified Duty
.public String getAdministratorName()
AdministratorSourceConfiguration
AdministratorSource
.getAdministratorName
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
AdministratorSource
.public Class<AS> getAdministratorSourceClass()
AdministratorSourceConfiguration
Class
of the AdministratorSource
.getAdministratorSourceClass
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
Class
of the AdministratorSource
.public SourceProperties getProperties()
AdministratorSourceConfiguration
SourceProperties
to initialise the
AdministratorSource
.getProperties
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
SourceProperties
to initialise the
AdministratorSource
.public String getOfficeTeamName()
AdministratorSourceConfiguration
Team
within the Office
responsible for completing the Duty
instances of this
Administrator
.getOfficeTeamName
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
Office
name of the Team
.public String[] getAdministeredManagedObjectNames()
AdministratorSourceConfiguration
ManagedObject
instances to be
administered.getAdministeredManagedObjectNames
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
ManagedObject
instances to be administered.public DutyConfiguration<A>[] getDutyConfiguration()
AdministratorSourceConfiguration
getDutyConfiguration
in interface AdministratorSourceConfiguration<A extends Enum<A>,AS extends AdministratorSource<I,A>>
DutyConfiguration
for the Duty
instances of this Administrator
.Copyright © 2005–2016. All rights reserved.