Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Renaming a group using web services

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Renaming a group using web services


Chronological Thread 
  • From: Julio Polo <>
  • To: Shilen Patel <>
  • Cc: "Hyzer, Chris" <>, "" <>
  • Subject: Re: [grouper-users] Renaming a group using web services
  • Date: Tue, 27 Mar 2018 09:38:20 -1000
  • Ironport-phdr: 9a23:NrVlLBWsW90TuYOmZvTzyWx9zabV8LGtZVwlr6E/grcLSJyIuqrYbRSCt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KpwVhTmlDkIOCI48GHPi8x/kqRboA66pxdix4LYeZyZOOZicq/Ye94RWGhPUdtLVyFZAIy8YYsBAeQCM+hFsYfyu0ADogGiCQS2Hu7j1iNEi33w0KYn0+ohCwbG3Ak4EtwKrXTUqNT1NKAPWu6vy6nIyTLDZO5R1Df/9YjIdhEhofaXULJwa8XQx1MgFwLEjlmKt4PqIi6V2/0LvmOG4eRgUuevhHQmqwF3ujWvyd0sipHQio4L11/I6Cd0zJs3KNGgR057e9mkEIZIty2DKYd5WdgiTHt2uCkk0rEGuJi7fDQUx5Q9wR7QdeCHf5aS7h39SemRPC90hGp/eLK4gBay/1Cgyur9VsmyzFZGtDZKkt7Jtn0Lyhfd6dCHR+Nj8kqgxTqC1QXe6u9HLE8viabWLpEszqIsmpYOtEnMAjP6l17zgaKTaEkp9Oml5uL6abv8vJCcLZV7igTmP6QuhMO/BeM4PxALX2eB+OS80KTv/UzlQLlWl/E3nbfVvZ7bKMgBqa65BAhV0okn6xmhFTupzNMYnXwfIFJEfhKIkZTpNknQLP35EfuygVGhkDloyv/dIrHsB5rAImTfnLv8eLty91JQxxE2wN1a+Z5ZBLAMLOr2WkDrtdzYChE5Mxazw+biENh91J4eWWaOAq+eK67SsUWH5+w1LOmNZY8ZoijyJOU45/L2l382hUcdfbW13ZsQcH24Ee5mI0KEYXr0nNgBC34GvhclTOP0kl2CSiVeZ3KzX6In+jE7E5yqAZ3CRoCrnLyOwj27HptIaWBaFFyAC2nneJiZW6REVCXHGc9gljECHYCoV4IlnUW1tA7+xrxPIvfX92sVuY+1h/Zv4OiGtww29Ds8N8OZ1CnZTXxwn2QgRzYp1aF+50Fx1wHQguBDn/VEGIkLtLtyWQAgOMuZlrQiBg==

Would renameAssignAlternateName be the 10th parameter in groupSave's <params> <WsParam>?   What would I enter for the preceding 9 params?  Or would the param sequence be completely different for a rename?  The current first param is moveOrCopy which only allows "move" or "copy" so would that first parameter be replaced with moveOrCopyOrRename?

Having an option to change or remove the alternateName during a groupSave is fine, although I'm not clear about how WsGroupDetail would be used for that.  As long as I am not forced to specify copy/move params for a rename, I'll be fine with whatever you implement.

Thanks!

-julio


On Mon, Mar 26, 2018 at 1:45 AM, Shilen Patel <> wrote:

Hi,

 

GRP-1717 will be addressing that.  The plan is to add the following:

 

  1. Add an option to not add the alternate name during a rename.  I would probably use a param on the overall groupSave call in a way that’s similar to the params for copying and moving (e.g. renameAssignAlternateName default to true).
  2. Have an option to change or remove the alternateName. I would probably use a param on WsGroupDetail so you can set and get the alternate name for each group.

 

Would this address your need?

 

Thanks!

 

- Shilen

 

From: <> on behalf of Julio Polo <>
Date: Friday, March 23, 2018 at 5:16 PM
To: "Hyzer, Chris" <>
Cc: "" <>
Subject: Re: [grouper-users] Renaming a group using web services

 

I spoke too soon.  There's still a problem after the rename.  No alternate is created, but only the displayExtension changed.   The extension still has the original value.  

I tried omitting <name> as shown below, but it still doesn't change the extension, only the displayExtension:

<WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <extension> newName </extension>
    <displayExtension> newName </displayExtension>
   </wsGroup>

  </WsGroupToSave>

Is there a WS call to delete the alternate name?


-julio

 

On Fri, Mar 23, 2018 at 9:56 AM, Julio Polo <> wrote:

It was creating an alternate name, but since you mentioned changing an extension, I figured it out and modified the way I called WsRestGroupSaveRequest:

 

Before (created alternate; I was expecting the API to figure out that it was the same folder and rename instead of move):

  <WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <name> a:b:c:newName </name>
   </wsGroup>

  </WsGroupToSave>

After (no alternate):

  <WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <name> a:b:c:oldName </name>
    <extension> newName </extension>
    <displayExtension> newName </displayExtension>
   </wsGroup>

  </WsGroupToSave>

 

Thanks Chris!

-julio

 

 

On Wed, Mar 21, 2018 at 5:40 AM, Hyzer, Chris <> wrote:

I think changing an extension is not considered a move.  Does it create an alternate name by default?

 

We should add alternate name in the WS api for 2.4...  I created a jira

 

https://bugs.internet2.edu/jira/browse/GRP-1717

 

Thanks

Chris

 


From: <> on behalf of Julio Polo <>
Sent: Thursday, March 15, 2018 11:06 PM
To:
Subject: [grouper-users] Renaming a group using web services

 

I want to use web services to rename a group without creating the alternate group name. To do that, this page says that I have to pass the 9th parameter moveAssignAlternateName as false:

https://spaces.internet2.edu/display/Grouper/Group+Save

Since I'm using XML, it sounds like I have to provide the preceding 8 parameters before I can provide the 9th parameter, but many of those 8 parameters only make sense if I'm copying or moving.  Is renaming a group treated as moving a group?

If I'm renaming a group to a different name without changing folders (e.g. rename a:b:c:oldName to a:b:c:newName), what values should I provide for those first 8 parameters if I want to minimize unnecessary changes?

Alternately, is there a WS call to delete the alternate group name after renaming a group?

 

-julio

Julio Polo
Information Technology Services
University of Hawaii

 

 





Archive powered by MHonArc 2.6.19.

Top of Page