|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.group.CompositeSave
public class CompositeSave
Use this class to insert or update a composite e.g. composite = new CompositeSave(grouperSession).assignOwnerGroupName("test:testGroup").assignLeftFactorGroupName("a:b"c).assignRightFactorGroupName("a:b:d").assignCompsiteType(CompositeType.COMPLEMENT).save();
Constructor Summary | |
---|---|
CompositeSave(GrouperSession theGrouperSession)
create a new composite save |
Method Summary | |
---|---|
CompositeSave |
assignCompositeType(CompositeType theCompositeType)
assign the composite type |
CompositeSave |
assignId(java.lang.String theId)
id of this composite |
CompositeSave |
assignLeftFactorGroup(Group theLeftFactorGroup)
if this is a group attribute, this is the foreign key |
CompositeSave |
assignLeftFactorGroupId(java.lang.String theLeftFactorGroupId)
if this is a group attribute, this is the foreign key mutually exclusive with ownerGroupName |
CompositeSave |
assignLeftFactorGroupName(java.lang.String theLeftFactorGroupName)
left factor group name, this is the foreign key mutually exclusive with leftFactorGroupId |
CompositeSave |
assignOwnerGroup(Group theOwnerGroup)
owner group foreign key |
CompositeSave |
assignOwnerGroupId(java.lang.String theOwnerGroupId)
this is the foreign key mutually exclusive with ownerGroupName |
CompositeSave |
assignOwnerGroupName(java.lang.String theOwnerGroupName)
owner group name, this is the foreign key mutually exclusive with ownerGroupId |
CompositeSave |
assignRightFactorGroup(Group theRightFactorGroup)
right factor group this is the foreign key |
CompositeSave |
assignRightFactorGroupId(java.lang.String theRightFactorGroupId)
right factor group id, this is the foreign key mutually exclusive with rightFactorGroupName |
CompositeSave |
assignRightFactorGroupName(java.lang.String theRightFactorGroupName)
right factor group name, this is the foreign key mutually exclusive with rightFactorGroupId |
CompositeSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode |
Composite |
getComposite()
|
SaveResultType |
getSaveResultType()
get the save type |
Composite |
save()
create or update a group. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeSave(GrouperSession theGrouperSession)
theGrouperSession
- Method Detail |
---|
public CompositeSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
-
public CompositeSave assignId(java.lang.String theId)
theId
-
public CompositeSave assignOwnerGroupId(java.lang.String theOwnerGroupId)
theOwnerGroupId
-
public CompositeSave assignLeftFactorGroupName(java.lang.String theLeftFactorGroupName)
theLeftFactorGroupName
-
public CompositeSave assignOwnerGroup(Group theOwnerGroup)
theOwnerGroup
-
public SaveResultType getSaveResultType()
public CompositeSave assignCompositeType(CompositeType theCompositeType)
theCompositeType
-
public Composite getComposite()
public Composite save() throws AttributeDefNameNotFoundException, InsufficientPrivilegeException, StemNotFoundException, GroupNotFoundException
create or update a group. Note this will not rename a group at this time (might in future) This is a static method since setters to Group objects persist to the DB Steps: 1. Find the group by groupNameToEdit 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the group (insert or update) if needed 4. Return the group object This runs in a tx so that if part of it fails the whole thing fails, and potentially the outer transaction too
StemNotFoundException
InsufficientPrivilegeException
GroupNotFoundException
AttributeDefNameNotFoundException
public CompositeSave assignLeftFactorGroup(Group theLeftFactorGroup)
theLeftFactorGroup
-
public CompositeSave assignLeftFactorGroupId(java.lang.String theLeftFactorGroupId)
theLeftFactorGroupId
-
public CompositeSave assignRightFactorGroupName(java.lang.String theRightFactorGroupName)
theRightFactorGroupName
-
public CompositeSave assignRightFactorGroup(Group theRightFactorGroup)
theRightFactorGroup
-
public CompositeSave assignRightFactorGroupId(java.lang.String theRightFactorGroupId)
theRightFactorGroupId
-
public CompositeSave assignOwnerGroupName(java.lang.String theOwnerGroupName)
theOwnerGroupName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |