cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco SDK related issue !!

power
Champ in-the-making
Champ in-the-making
Friends,

Inside Alfresco SDK 3.1  we have following property


ContentModel.PROP_MEMBERS

but I am now using alfresco 3.2r SDK  and not able to Find out this property    ContentModel.PROP_MEMBERS

Can you tell me which new property they have introduced instead this?

I wanna to get persons


final List<String> persons = (ArrayList<String>) AlfrescoServiceUtils.getNodeService().getProperty(_authority.getNodeRef(), ContentModel.PROP_MEMBERS);
9 REPLIES 9

mrogers
Star Contributor
Star Contributor
It does not look like there is a "replacement property".  

You should probably be using the authorityService rather than using Alfresco's internal implementation details which as you can see, change from time to time.

power
Champ in-the-making
Champ in-the-making
Hey thanks for reply,

but Still I didn't get how to use this?
Implementation wise how do I get members then?
Or what is the solution for as of now after this update to access this stuff ?

mrogers
Star Contributor
Star Contributor
What are you trying to do?

power
Champ in-the-making
Champ in-the-making
I wanna to send workflow to two groups simulteniously.
but I dont know how to do that.

I can assign it to single group, but at a time it should send to two groups.
Smiley Happy

by d way.. this workflow is for alfresco share.  and I am using Alfresco 3.2r

mrogers
Star Contributor
Star Contributor
Could you have one group containing the other two groups?

Or does each group need to act independently in which case you will need to branch the workflow?

power
Champ in-the-making
Champ in-the-making
Its like invite in all separate groups.

No group merged or contain other group.
So invitation should go to each individual groups.
Can you please provide me proper way to use that property ContentModel.PROP_MEMBERS?

or is any other easy way that 3.2 SDK provide.. let me know.

e.g.   after site create workflow should be assigned to two groups.
1)  masterAdmin group
2)  approval group

these two groups are different

mrogers
Star Contributor
Star Contributor
If you want to get all members of a group then use the AuthorityService.

power
Champ in-the-making
Champ in-the-making
Sorry dude,

but I dont know how to get the members using authorityService.
here we need users of group.

mrogers
Star Contributor
Star Contributor
call getContainedAuthorities(AuthorityType.USER, name of your group, false);