Package de.espirit.firstspirit.agency
Interface ProjectAgent
public interface ProjectAgent
Definition of an agent offering access to project specific information. To retrieve information about remote
projects, a
Example:
SpecialistsBroker
operating on the respective remote project can be requested via the BrokerAgent
.
Example:
SpecialistsBroker.requireSpecialist(ProjectAgent.TYPE)
- Since:
- 4.2.405
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialistType<ProjectAgent>
The agent's technical type to be used to request the agent from aSpecialistsBroker
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates, whether it is forbidden to use language dependent forms on arbitrary levels in a data hierarchy.@NotNull Map<Schema,
Collection<Long>> When aSchema
of a source project is imported into a target project, this method returns a map from the exported schema to all projects it has been imported to when called on the source project.long
getId()
The id of the project.When aSchema
of a source project is imported into a target project, this method returns a map from the imported schema to the source project when called on the target project.@NotNull Template
Provides the meta data template.getName()
The full name of the project.@NotNull Map<String,
RemoteProjectConfiguration> getRemoteProjectConfigurations
(@Nullable Filter<RemoteProjectConfiguration> remoteCondition) Get the configurations of remote projects defined.@Nullable String
The symbolic name of theremote configuration
this project is registered for.@NotNull List<TemplateSet>
Get a list of available template sets.boolean
Indicates, whether a meta data template is defined in this project.boolean
Indicates, whether the given user is an administrator of the project.boolean
isRemote()
Indicates that the project is remote.boolean
Indicates, whether the mapping based schema import is used during the import with ExternalSync/ContentTransport or not.boolean
Returns true if this project uses the release state, false if it is an auto release project.
-
Field Details
-
TYPE
The agent's technical type to be used to request the agent from aSpecialistsBroker
.- Since:
- 4.2.405
-
-
Method Details
-
isRemote
boolean isRemote()Indicates that the project is remote.- Returns:
true
, if remote.- Since:
- 4.2.405
-
getName
String getName()The full name of the project.- Returns:
- The project's name.
- Since:
- 4.2.405
-
getId
long getId()The id of the project.- Returns:
- the id of the project
- Since:
- 4.2.427
-
getSymbolicName
The symbolic name of theremote configuration
this project is registered for.- Returns:
- The project's symbolic remote name.
- Since:
- 4.2.405
-
getRemoteProjectConfigurations
@NotNull @NotNull Map<String,RemoteProjectConfiguration> getRemoteProjectConfigurations(@Nullable @Nullable Filter<RemoteProjectConfiguration> remoteCondition) Get the configurations of remote projects defined.- Parameters:
remoteCondition
- The condition to be fulfilled for accepting a remote project ornull
for unconditioned acceptance.- Returns:
- A map of remote project configurations with their symbolic names as key.
- Since:
- 4.2.405
-
getExportedRemoteSchemas
When aSchema
of a source project is imported into a target project, this method returns a map from the exported schema to all projects it has been imported to when called on the source project.- Returns:
- A map from each exported schema to the ids of target projects it has been imported to.
- Since:
- 5.2.250702
-
getImportedRemoteSchemas
When aSchema
of a source project is imported into a target project, this method returns a map from the imported schema to the source project when called on the target project.- Returns:
- A map from the imported schema to the id of the source project it has been imported from.
- Since:
- 5.2.250702
-
getTemplateSets
Get a list of available template sets.- Returns:
- A list of template sets.
- Since:
- 4.2.405
-
hasMetaDataTemplate
boolean hasMetaDataTemplate()Indicates, whether a meta data template is defined in this project.- Returns:
true
, iff a meta data template is defined.- Since:
- 5.0.100
-
getMetaDataTemplate
Provides the meta data template.- Returns:
- The meta data template or
null
, if no template is defined. - Throws:
NoSuchElementException
- If no template is defined or the template was not found.- Since:
- 5.0.100
-
useRelease
boolean useRelease()Returns true if this project uses the release state, false if it is an auto release project.- Returns:
- false if it is an auto release project, true otherwise
- Since:
- 4.2.405
-
isAdmin
Indicates, whether the given user is an administrator of the project. -
forbidsPolyglotDataHierarchy
boolean forbidsPolyglotDataHierarchy()Indicates, whether it is forbidden to use language dependent forms on arbitrary levels in a data hierarchy.- Returns:
- true, if forbidden.
- Since:
- 5.2.510
-
useMappingBasedSchemaMerge
boolean useMappingBasedSchemaMerge()Indicates, whether the mapping based schema import is used during the import with ExternalSync/ContentTransport or not.- Returns:
- true, if enabled.
- Since:
- 5.2.210906
-