grouper-dev - RE: [grouper-dev] last modified time for stems and members ?
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Tom Zeller <>, Grouper Dev <>
- Subject: RE: [grouper-dev] last modified time for stems and members ?
- Date: Tue, 18 Oct 2011 15:39:09 +0000
- Accept-language: en-US
Stems cant have permissions, only roles (special kinds of groups), and
individual subjects (in the context of a role, i.e. a membership). Ok?
Thanks,
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Tom Zeller
Sent: Tuesday, October 18, 2011 11:34 AM
To: Grouper Dev
Subject: Re: [grouper-dev] last modified time for stems and members ?
> Stems have a modify_time which is similar to groups. They also have
> last_membership_change, which tells you when a privilege was last added or
> deleted from the stem. I'm guessing this is not what you want.
It is possible to add/remove permissions (not privileges) to/from stems,
right ?
If so, what would that code look like ?
Role role = childStem.addChildRole("childRole", "Child Role");
role.addMember(SubjectTestHelper.SUBJ0, true);
AttributeDef attributeDef = childStem.addChildAttributeDef("perm",
AttributeDefType.perm);
attributeDef.setAssignToGroup(true);
attributeDef.store();
AttributeDefName attributeDefName =
childStem.addChildAttributeDefName(attributeDef, "permName", "perm
name");
role.getPermissionRoleDelegate().assignRolePermission(attributeDefName,
PermissionAllowed.ALLOWED);
// what do I do here ?
childStem.addPermission?();
Apologies for my confusion.
- [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/14/2011
- Re: [grouper-dev] last modified time for stems and members ?, Shilen Patel, 10/14/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/14/2011
- RE: [grouper-dev] last modified time for stems and members ?, Chris Hyzer, 10/14/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/18/2011
- RE: [grouper-dev] last modified time for stems and members ?, Chris Hyzer, 10/18/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/18/2011
- RE: [grouper-dev] last modified time for stems and members ?, Chris Hyzer, 10/18/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/18/2011
- RE: [grouper-dev] last modified time for stems and members ?, Chris Hyzer, 10/18/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/18/2011
- RE: [grouper-dev] last modified time for stems and members ?, Chris Hyzer, 10/18/2011
- Re: [grouper-dev] last modified time for stems and members ?, Tom Zeller, 10/14/2011
- Re: [grouper-dev] last modified time for stems and members ?, Shilen Patel, 10/14/2011
Archive powered by MHonArc 2.6.16.