Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] new WS operation 2/4: save attribute definition names WS

Subject: Grouper Developers Forum

List archive

[grouper-dev] new WS operation 2/4: save attribute definition names WS


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "" <>
  • Subject: [grouper-dev] new WS operation 2/4: save attribute definition names WS
  • Date: Sat, 25 Feb 2012 21:42:42 +0000
  • Accept-language: en-US

There are 4 new web service operations in Grouper 2.1.  These are to satisfy the use case of centralized permission managements where the resources are dynamic (e.g. in an application securing folders and files, someone could create a new folder or file, and the permission resources need to be created via WS).

 

This new WS operation is for find saving attribute definition names (or permission names)

 

https://spaces.internet2.edu/display/Grouper/Find+Attribute+Definition+Names

 

Add or edit attribute definition names based on name or ID. This is new as of Grouper v2.1

 

    Add or edit an attribute definition name

    If you are editing an existing attribute definition name, you can look it up by name or id

    You can specify a saveMode of INSERT, UPDATE, or INSERT_OR_UPDATE.  If you specify INSERT and the attributeDefName exists, it will be an error.  If you specify UPDATE and the attributeDefName exists, it will be an error.

    Non-lite service can save multiple attributeDefNames at once

    You can have this operation automatically create parent stems if they do not exist

    Can pass in a txType so that you can run all the saves in one transaction, or just finish the work that is possible with no enclosing transaction

    Can set the name, display name, and description of an attribute def name.  Specify the attribute definition it is linked to (by name or id)

    Returns attribute definition name(s), and the result code of if it was inserted or updated

    Can actAs another user

 

Samples: (click download to see them)

http://anonsvn.internet2.edu/viewvc/viewvc.py/i2mi/trunk/grouper-ws/grouper-ws/doc/samples/attributeDefNameSave/

 

Thanks,

Chris




Archive powered by MHonArc 2.6.16.

Top of Page