public interface BrokerAgent
SpecialistsBrokers, each of which operates
on a remote projects that is registered for the given symbolic name.
Example:
SpecialistsBroker#requestSpecialist(BrokerAgent.TYPE).BrokerAgent#getBroker(symbolicProjectName)
This agent is also available in non project related contexts (e.g. server schedule entries). In this case the methods getBroker(long) and
getBroker(String) will deliver null. To get hold of a project related broker use getBrokerByProjectName(String).
SpecialistsBroker| Modifier and Type | Field and Description |
|---|---|
static SpecialistType<BrokerAgent> |
TYPE
The specialized agent's type to be used to look up the agent via a
SpecialistsBroker. |
| Modifier and Type | Method and Description |
|---|---|
SpecialistsBroker |
getBroker(long revision)
Get hold of a broker operating on the given revision.
|
SpecialistsBroker |
getBroker(String symbolicProjectName)
Try getting hold of a broker for a remote project registered under the given symbolic name.
|
SpecialistsBroker |
getBrokerByProjectName(String projectName)
Returns a broker related to the project specified by given projectName or
null if no project
exists with the given name or the current user has no access to the project. |
static final SpecialistType<BrokerAgent> TYPE
SpecialistsBroker.@Nullable SpecialistsBroker getBroker(@NotNull String symbolicProjectName)
symbolicProjectName - The symbolic project name.null.@Nullable SpecialistsBroker getBroker(long revision)
revision - The revision to operate on.null@Nullable SpecialistsBroker getBrokerByProjectName(@NotNull String projectName)
null if no project
exists with the given name or the current user has no access to the project.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500