edu.internet2.middleware.grouper.ws.coresoap
Class WsGroupToSave

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsGroupToSave

public class WsGroupToSave
extends java.lang.Object

 Class to save a group via web service
 
 

Author:
mchyzer

Constructor Summary
WsGroupToSave()
           
 
Method Summary
 Group copy(GrouperSession grouperSession, Stem toStem, java.lang.Boolean copyPrivilegesOfGroup, java.lang.Boolean copyGroupAsPrivilege, java.lang.Boolean copyListMembersOfGroup, java.lang.Boolean copyListGroupAsMember, java.lang.Boolean copyAttributes)
          copy this group
 java.lang.String getCreateParentStemsIfNotExist()
          if should create parent stems if not exist
 java.lang.String getSaveMode()
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 WsGroup getWsGroup()
           
 WsGroupLookup getWsGroupLookup()
           
 Group move(GrouperSession grouperSession, Stem toStem, java.lang.Boolean moveAssignAlternateName)
          move this group
 Group save(GrouperSession grouperSession, java.lang.Boolean renameAssignAlternateName)
          save this group
 SaveResultType saveResultType()
          get the save type
 void setCreateParentStemsIfNotExist(java.lang.String createParentStemsIfNotExist1)
          if should create parent stems if not exist
 void setSaveMode(java.lang.String saveMode1)
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 void setWsGroup(WsGroup wsGroup1)
           
 void setWsGroupLookup(WsGroupLookup wsGroupLookup1)
           
 java.lang.String toString()
          make sure this is an explicit toString
 void validate()
          validate the settings (e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsGroupToSave

public WsGroupToSave()
Method Detail

getCreateParentStemsIfNotExist

public java.lang.String getCreateParentStemsIfNotExist()
if should create parent stems if not exist

Returns:
T or F or null (F)

setCreateParentStemsIfNotExist

public void setCreateParentStemsIfNotExist(java.lang.String createParentStemsIfNotExist1)
if should create parent stems if not exist

Parameters:
createParentStemsIfNotExist1 - T or F or null (F)

saveResultType

public SaveResultType saveResultType()
get the save type

Returns:
save type

toString

public java.lang.String toString()
make sure this is an explicit toString

Overrides:
toString in class java.lang.Object

validate

public void validate()
validate the settings (e.g. that booleans are set correctly)


save

public Group save(GrouperSession grouperSession,
                  java.lang.Boolean renameAssignAlternateName)
save this group

Parameters:
grouperSession - to save
renameAssignAlternateName -
Returns:
the stem that was inserted or updated
Throws:
StemNotFoundException
GroupNotFoundException
GroupNotFoundException
StemAddException
GroupAddException
InsufficientPrivilegeException
GroupModifyException
GroupAddException
AttributeNotFoundException
MemberDeleteException

move

public Group move(GrouperSession grouperSession,
                  Stem toStem,
                  java.lang.Boolean moveAssignAlternateName)
move this group

Parameters:
grouperSession - to save
toStem -
moveAssignAlternateName -
Returns:
the group that was moved

copy

public Group copy(GrouperSession grouperSession,
                  Stem toStem,
                  java.lang.Boolean copyPrivilegesOfGroup,
                  java.lang.Boolean copyGroupAsPrivilege,
                  java.lang.Boolean copyListMembersOfGroup,
                  java.lang.Boolean copyListGroupAsMember,
                  java.lang.Boolean copyAttributes)
copy this group

Parameters:
grouperSession - to save
toStem -
copyPrivilegesOfGroup -
copyGroupAsPrivilege -
copyListMembersOfGroup -
copyListGroupAsMember -
copyAttributes -
moveAssignAlternateName -
Returns:
the group that was moved

getSaveMode

public java.lang.String getSaveMode()
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)

Returns:
the saveMode

setSaveMode

public void setSaveMode(java.lang.String saveMode1)
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)

Parameters:
saveMode1 - the saveMode to set

getWsGroupLookup

public WsGroupLookup getWsGroupLookup()
Returns:
the wsGroupLookup

setWsGroupLookup

public void setWsGroupLookup(WsGroupLookup wsGroupLookup1)
Parameters:
wsGroupLookup1 - the wsGroupLookup to set

getWsGroup

public WsGroup getWsGroup()
Returns:
the wsGroup

setWsGroup

public void setWsGroup(WsGroup wsGroup1)
Parameters:
wsGroup1 - the wsGroup to set