public interface FeatureAgent
Example:
SpecialistsBroker.requireSpecialist(FeatureAgent.TYPE)
SpecialistsBroker.requireSpecialist(SpecialistType)| Modifier and Type | Field and Description |
|---|---|
static SpecialistType<FeatureAgent> |
TYPE
The agent's technical type to be used to request the agent from a
SpecialistsBroker. |
| Modifier and Type | Method and Description |
|---|---|
FeatureDescriptor |
createFeature(String name,
Revision revision,
boolean release)
Create a new feature with the given name.
|
FeatureModel |
createFeatureModel(FeatureDescriptor featureDescriptor)
Create a feature model based on the given feature descriptor.
|
ServerActionHandle<? extends FeatureProgress,Boolean> |
createFeatureTransportFile(FeatureDescriptor featureDescriptor)
Starts a server side process to create a feature transport file.
|
void |
deleteFeature(FeatureDescriptor featureDescriptor)
Deletes the feature specified by the given feature descriptor.
|
InputStream |
downloadFeatureFile(FeatureFile featureFile)
Download the feature transport zip file specified by the given
featureFile. |
List<FeatureDescriptor> |
getFeatureDescriptors()
Returns a list of all feature descriptors available for the project this agent is related to.
|
void |
saveFeature(FeatureModel model)
Saves the given feature model and its related feature descriptor.
|
static final SpecialistType<FeatureAgent> TYPE
SpecialistsBroker.List<FeatureDescriptor> getFeatureDescriptors()
FeatureDescriptor createFeature(String name, Revision revision, boolean release)
name - the name of the feature to be createdrevision - the revision the userservice of the content objects of the new feature belongs torelease - indicates whether the content object of this feature belongs to a release store or notvoid deleteFeature(FeatureDescriptor featureDescriptor)
getFeatureDescriptors()FeatureModel createFeatureModel(FeatureDescriptor featureDescriptor)
savingsaveFeature(FeatureModel)void saveFeature(FeatureModel model)
createFeatureModel(de.espirit.firstspirit.feature.FeatureDescriptor)ServerActionHandle<? extends FeatureProgress,Boolean> createFeatureTransportFile(FeatureDescriptor featureDescriptor)
server action handle providing means to progress and state of the server side processdownloadFeatureFile(FeatureFile)InputStream downloadFeatureFile(@NotNull FeatureFile featureFile) throws IOException
featureFile.
During a service side transport file creation process, a feature file can be received via the feature progess.featureFile - specifying the transport zip file to downloadIOExceptionFeatureProgress.getFeatureFile()Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408