Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] last modified time for stems and members ?

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] last modified time for stems and members ?


Chronological Thread 
  • From: Tom Zeller <>
  • To: Grouper Dev <>
  • Subject: Re: [grouper-dev] last modified time for stems and members ?
  • Date: Tue, 18 Oct 2011 10:33:39 -0500

> 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.



Archive powered by MHonArc 2.6.16.

Top of Page