Questions & Answers

SOLVED
rkurz
Elite Observer

Feature per API auf Filesystem Storage

Jump to solution

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

1 Solution

Accepted Solutions

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

View solution in original post

0 Kudos
12 Replies
MarsDD
Occasional Observer

Hallo Ralph,

schau dir mal die FeatureAgent/FeatureModel an - das sollte dir helfen Smiley Happy

Viele GrรผรŸe

Marcel

0 Kudos

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.

16-12-2015 13-48-57.png

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

0 Kudos

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

0 Kudos

Hallo Marian,

ich vermute, wir reden aneinander vorbei.

Meine Frage ist, wie ich ein Feature im Filesystem-Storage speichern kann.

GrรผรŸe

Ralph

0 Kudos

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

0 Kudos

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

0 Kudos
Adrian
I'm new here

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.

0 Kudos

Hey Adrian,

unfortunately there is no official api to create a Feature in the Filesystem Storage.

Best regards

Tim

0 Kudos
Adrian
I'm new here

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

Type a product name