king
I'm new here

Release under a specified FirstSpirit user

Dear FirstSpirit community,

is there a way to release a FirstSpirit resource under a specified user?

Up to now, there are only the following API calls available, that will release a page under the currently connected FirstSpirit user:

de.espirit.firstspirit.access.store.IDProvider.release()

de.espirit.firstspirit.access.store.IDProvider.release(boolean)

de.espirit.firstspirit.access.store.StoreElement.release()

Maybe, there is an undocumented possibility to execute a:

release(User user)?

Might in that case really helpful, to get rid of corrupt release data very fast.

An answer is highly appreciated.

0 Kudos
7 Replies
thmarx
I'm new here

Hello,

I think this is not possible. Feel free to add a feature request if you are interested in such a feature.

0 Kudos

Hi Thorsten,

you think it's not possible. But we need a sustainable and relyable answer. Could you clarify that in combination with FirstSpirit's core developement team?

Maybe there is an undocumented API available that might help here.

0 Kudos
feddersen
Community Manager

Hi Holger,

you can use a script/module that creates a new connection, using a different user to perform the release. There's no way to perform actions in the name of an user without a proper authentication.

Christoph

Hi Christoph,

in order to do that via the non-workflow-based release call, the user needs at least project admin release permission rights. Correct?

This leads to the following steps:

[SuperAdmin connection]

- adding the user in the "Administrators" FirstSpirit group

- setting the permission right for "CAN_RELEASE" on the corresponding node

- release the changes

[plain user connection]

- re-connecting using the specified user

- releasing the store element

[SuperAdmin connection]

- undo the above changes

- release again -> using the SuperAdmin user Smiley Sad

Consequence: what is won?

0 Kudos
feddersen
Community Manager

Hi Holger,

what do you mean with "non-workflow-based release call"?

Christoph

0 Kudos

I'm talking about the release-API calls:

IDProvider.release();

IDProvider.release(boolean releaseChilds);

My assumption is, that these release calls are the ones, that are provoked via "Extras" -> "Release" in JavaClient - so non-workflow-based.

0 Kudos
feddersen
Community Manager

The GUI provided there offers similar functionality as provided within http://www.e-spirit.com/odfs42/access/de/espirit/firstspirit/access/AccessUtil.html.

There are a couple of release methods there.

To release objects, the user needs the CAN_RELEASE permissions. He doesn't need to be project admin if that was your question. I'm still unsure what you're trying to do.

0 Kudos