Group as a property of a content type

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2010 05:27 AM
Hi!
I created a custom content type and I need to add a property that is a group of users.Is this possible?
And if it is, could anybody give me a clue about it?
Thanks!
I created a custom content type and I need to add a property that is a group of users.Is this possible?
And if it is, could anybody give me a clue about it?
Thanks!
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2010 03:18 PM
When you say "group of users", do you mean a group in the sense that you manage from the Manage Users and Groups web pages? Or do you mean a list of user accounts?
The property is yours to control. You can create the property as a text field, with repeating values, and store the group or user names in it. Look up the pages on defining new content, and look at multivalue properties.
The property is yours to control. You can create the property as a text field, with repeating values, and store the group or user names in it. Look up the pages on defining new content, and look at multivalue properties.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2010 03:35 AM
Hi invictus9!
When i said "group of users" i mean "in the sense that you manage from the Manage Users".
For example, if i have 3 groups created (org1, org2, org3), what i'm looking for is when you add content, in the Modify Content Properties page should appear a property "organizators" that must be one of the 3 groups.
Although i can create a property as a text field, i don't want to store only the name, because the user may not know the groups that are available. I want to show the groups created and then choose one.
can i do this?
When i said "group of users" i mean "in the sense that you manage from the Manage Users".
For example, if i have 3 groups created (org1, org2, org3), what i'm looking for is when you add content, in the Modify Content Properties page should appear a property "organizators" that must be one of the 3 groups.
Although i can create a property as a text field, i don't want to store only the name, because the user may not know the groups that are available. I want to show the groups created and then choose one.
can i do this?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2010 10:03 AM
Disclaimer: I have only done preliminary research on this to lay out an architecture for a similar feature.
If you go to the page that actually allows you to invite a group to a page, you will see a picker for groups. In my design, I was going to use that to perform a custom search for pages that a particular group had been invited to.
Here is a link to examples of a dynamic list for a drop down field: http://ecmarchitect.com/archives/2008/08/13/845
Here is a link to how to find ACLs on a node: http://forums.alfresco.com/en/viewtopic.php?f=36&t=24185
If you go to the page that actually allows you to invite a group to a page, you will see a picker for groups. In my design, I was going to use that to perform a custom search for pages that a particular group had been invited to.
Here is a link to examples of a dynamic list for a drop down field: http://ecmarchitect.com/archives/2008/08/13/845
Here is a link to how to find ACLs on a node: http://forums.alfresco.com/en/viewtopic.php?f=36&t=24185

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2010 09:00 AM
Ok, i think maybe it woulb be more easy to display a h:selectOneMenu with all the groups.
Something like this:
The problem is that #{GroupsBean.groups}" return a List<Map>,
How can i get the name of the groups (converted into SelectItems) to be displayed on the selectOneMenu???
Thanks in advanced!!
Something like this:
<h:selectOneMenu id="select_grupo" value="#{GroupsBean.groupName}" ><f:selectItems value="#{GroupsBean.groups}" /></h:selectOneMenu>
The problem is that #{GroupsBean.groups}" return a List<Map>,
How can i get the name of the groups (converted into SelectItems) to be displayed on the selectOneMenu???
Thanks in advanced!!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2010 08:41 AM
Ok, i finally found the answer.
You have to create an association instead of a property.
with this in the customModel.xml inside of your content type, you can pick up a group from all that are in the root group.
I hope someone find this useful!!
Regards,
Ana
You have to create an association instead of a property.
with this in the customModel.xml inside of your content type, you can pick up a group from all that are in the root group.
<associations> <association name="custom:nameoftheassociation"> <title>title of the association</title> <target> <!– TODO: Refactor when group is pulled into content model –> <class>usr:authorityContainer</class> <mandatory>false</mandatory> <many>false</many> </target></association> </associations>
I hope someone find this useful!!
Regards,
Ana
