- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feature per API auf Filesystem Storage
Hallo zusammen,
wie erstellt man per API (access/dev) ein Feature im Filesystem Storage?
Vielen Dank schonmal fรผr Eure Antworten.
Viele Grรผรe
Ralph
- Labels:
-
Developers
- Tags:
- feature
- filesystem
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Ralph,
vielen Dank fรผr Deine Geduld. Wir haben intern ermitteln kรถnnen dass es keine offizielle API existiert, die ich Dir nennen kann.
Bitte stelle deshalb einen Feature-Request, damit das berรผcksichtig werden kann bzw. damit es eine offizielle API fรผr dieses Feature gibt.
Grรผรe Marian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Ralph,
schau dir mal die FeatureAgent/FeatureModel an - das sollte dir helfen
Viele Grรผรe
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Marcel,
danke, in der API Build 5.2.209 - (27.10.2015 09:11:57) fehlen genau diese Infos, wie man ein Feature in ein anderes Storage packt.
Project-local und Download ist kein Thema...aber ich finde nichts, wie man in einem definiertem "Filesystem Storage" irgendwas ablegen kann - bzw. wie auf dieses Storage zugreifen kann.
Viele Grรผรe
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Ralph,
was Marcel meinte ist, dass Du Dir die Java-Doc ansehen solltest. Hier gibt es das Java-Interface FeatureAgent. Mit diesem Agent bekommst Du auch eine Liste mit verfรผgbaren Features (getFeatureDescriptors(): List<FeatureDescriptor>). Ein Feature ist รผber einen FeatureDescriptor definiert. Mit diesem kannst Du dann รผber den Agent entsprechendes wie Lรถschen etc. anstellen.
Grรผรe Marian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Marian,
ich vermute, wir reden aneinander vorbei.
Meine Frage ist, wie ich ein Feature im Filesystem-Storage speichern kann.
Grรผรe
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Ralph,
in der Tat, ich habe Dich falsch verstanden. Ich kann aus der API auch nicht direkt ersehen, wie man den Storage angeben kann. Ich gebe die Frage intern weiter und melde mich hier wieder.
Grรผรe Marian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Ralph,
vielen Dank fรผr Deine Geduld. Wir haben intern ermitteln kรถnnen dass es keine offizielle API existiert, die ich Dir nennen kann.
Bitte stelle deshalb einen Feature-Request, damit das berรผcksichtig werden kann bzw. damit es eine offizielle API fรผr dieses Feature gibt.
Grรผรe Marian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I`m having the same problem, are there any updates on this, or have you found a different way to save in the filesystem storage?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Adrian,
unfortunately there is no official api to create a Feature in the Filesystem Storage.
Best regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Tim for your quick response.
Actually I already found the API necessary to achieve this.
The prerequisites are ManagerBroker to provide you a FeatureManager. With this you can use getFeatureStorages and cycle through the storages until you have the globalStorage and save it in a FeatureStorageIdentifier. You will have to populate a FeatureParameters with the values extracted from the featureModel (FeatureUtil.createFeatureParameters(project,FeatureApiDelegatesFactory.extract(featureModel)) ) in order to get the EntityIdentifiers and ElementIdentifiers.
After you have all this it`s just a call to the proper method in featureManager (ex: ServerActionHandle<? extends FeatureProgress, Boolean> featureProgress = fManager.startFeatureCreation(access.getSessionId(), params, globalStorage);). This startFeatureCreation with 3 arguments allows you to specify the storage you want to save the feature in.
Greeting,
Adrian

