|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.attr.assign.AttributeAssignSave
public class AttributeAssignSave
Use this class to insert or update an attribute assign e.g. attributeAssign = new AttributeAssignSave(grouperSession).assignOwnerStemName("test:testFolder").assignNameOfAttributeName("a:b"c).save();
Constructor Summary | |
---|---|
AttributeAssignSave(GrouperSession theGrouperSession)
create a new attribute assign save |
Method Summary | |
---|---|
AttributeAssignSave |
addAttributeAssignOnThisAssignment(AttributeAssignSave theAttributeAssignSave)
if including assignments on this assignment, put them here, put in null to remove assignments |
AttributeAssignSave |
addAttributeAssignValue(AttributeAssignValue attributeAssignValue)
add a value to assign to this assignment. |
AttributeAssignSave |
addValue(java.lang.Object theValue)
add a value to an attribute assignment |
AttributeAssignSave |
assignAction(java.lang.String theAction)
assign the action |
AttributeAssignSave |
assignAttributeAssignActionId(java.lang.String theAttributeAssignActionId)
assign the action id for the action on this assignment |
AttributeAssignSave |
assignAttributeAssignDelegatable(AttributeAssignDelegatable theAttributeAssignDelegatable)
if the subjects assigned to the attribute can delegate to someone else, or delegate as delegatable |
AttributeAssignSave |
assignAttributeAssignIdsToNotUse(java.util.Set<java.lang.String> theAttributeAssignIdsToNotUse)
if doing an import, these are id's which should not be used. |
AttributeAssignSave |
assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
type of assignment |
AttributeAssignSave |
assignAttributeDefName(AttributeDefName theAttributeDefName)
attribute name in this assignment as opposed to nameOfAttributeDefName |
AttributeAssignSave |
assignAttributeDefNameId(java.lang.String theAttributeDefNameId)
attribute name in this assignment as opposed to nameOfAttributeDefName |
AttributeAssignSave |
assignDisabledTime(java.lang.Long theDisabledTime)
if there is a date here, and it is in the past, this assignment is disabled |
AttributeAssignSave |
assignDisabledTime(java.sql.Timestamp theDisabledTimestamp)
if there is a date here, and it is in the past, this assignment is disabled |
AttributeAssignSave |
assignDisallowed(boolean theDisallowed)
if this is a permission, then if this permission assignment is allowed or not |
AttributeAssignSave |
assignEnabledTime(java.lang.Long theEnabledTimeDb)
if there is a date here, and it is in the future, this assignment is disabled until that time |
AttributeAssignSave |
assignEnabledTimestamp(java.sql.Timestamp theEnabledTimestamp)
if there is a date here, and it is in the future, this assignment is disabled until that time |
AttributeAssignSave |
assignId(java.lang.String theId)
id of this attribute assign |
AttributeAssignSave |
assignNameOfAttributeDefName(java.lang.String theNameOfAttributeDefName)
attribute name in this assignment as opposed to attributeDefNameId |
AttributeAssignSave |
assignNotes(java.lang.String theNotes)
notes about this assignment, free-form text |
AttributeAssignSave |
assignOwnerAttributeAssign(AttributeAssign theOwnerAttributeAssign)
if this is an attribute assign attribute, this is the foreign key |
AttributeAssignSave |
assignOwnerAttributeAssignId(java.lang.String theOwnerAttributeAssignId)
if this is an attribute assign attribute, this is the foreign key |
AttributeAssignSave |
assignOwnerAttributeDef(AttributeDef theOwnerAttributeDef)
if this is an attribute def attribute, this is the foreign key |
AttributeAssignSave |
assignOwnerAttributeDefId(java.lang.String theOwnerAttributeDefId)
if this is an attribute def attribute, this is the foreign key, mutually exclusive with ownerNameOfAttributeDef |
AttributeAssignSave |
assignOwnerGroup(Group theOwnerGroup)
if this is a group attribute, this is the foreign key |
AttributeAssignSave |
assignOwnerGroupId(java.lang.String theOwnerGroupId)
if this is a group attribute, this is the foreign key mutually exclusive with ownerGroupName |
AttributeAssignSave |
assignOwnerGroupName(java.lang.String theOwnerGroupName)
if this is a group attribute, this is the foreign key mutually exclusive with ownerGroupId |
AttributeAssignSave |
assignOwnerMember(Member theOwnerMember)
if this is a member attribute, this is the foreign key |
AttributeAssignSave |
assignOwnerMemberId(java.lang.String theOwnerMemberId)
if this is a member attribute, this is the foreign key, mutually exclusive with ownerMemberSubjectId(entifier) and ownerMemberSourceId |
AttributeAssignSave |
assignOwnerMembership(Membership theOwnerMembership)
if this is a membership attribute, this is the foreign key. |
AttributeAssignSave |
assignOwnerMembershipId(java.lang.String theOwnerMembershipId)
if this is a membership attribute, this is the foreign key. |
AttributeAssignSave |
assignOwnerMemberSourceId(java.lang.String theOwnerMemberSourceId)
if this is a member attribute, this is the foreign key, mutually exclusive with ownerMemberId, also need to pass in ownerMemberSubjectId or ownerMemberSubjectIdentifier |
AttributeAssignSave |
assignOwnerMemberSubjectId(java.lang.String theOwnerMemberSubjectId)
if this is a member attribute, this is the foreign key, mutually exclusive with ownerMemberId, also need to pass in ownerMemberSourceId |
AttributeAssignSave |
assignOwnerMemberSubjectIdentifier(java.lang.String theOwnerMemberSubjectIdentifier)
if this is a member attribute, this is the foreign key, mutually exclusive with ownerMemberId, also need to pass in ownerMemberSourceId |
AttributeAssignSave |
assignOwnerNameOfAttributeDef(java.lang.String theOwnerNameOfAttributeDef)
if this is an attribute def attribute, this is the foreign key mutually exclusive with ownerAttributeDefId |
AttributeAssignSave |
assignOwnerStem(Stem theOwnerStem)
if this is a stem attribute, this is the foreign key, mutually exclusive with ownerStemName |
AttributeAssignSave |
assignOwnerStemId(java.lang.String theOwnerStemId)
if this is a stem attribute, this is the foreign key, mutually exclusive with ownerStemName |
AttributeAssignSave |
assignOwnerStemName(java.lang.String theOwnerStemName)
if this is a stem attribute, this is the foreign key, mutually exclusive with ownerStemId |
AttributeAssignSave |
assignPrintChangesToSystemOut(boolean thePrintChangesToSystemOut)
if changes should be printed as system out |
AttributeAssignSave |
assignPutAttributeAssignIdsToNotUseSet(boolean thePutAttributeAssignIdsToNotUseSet)
if the attribute assign ids should be added to the set to not use |
AttributeAssignSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode |
void |
findExistingAttributeAssignment()
find an existing assignment that is similar this request |
java.util.Set<AttributeAssignValue> |
getAttributeAssignValues()
migrate values to attribute assign values if needed |
int |
getChangesCount()
count how many things were changed (attributes values etc) |
SaveResultType |
getSaveResultType()
get the save type |
static boolean |
inSaveThreadlocal()
if we are in the middle of saving (then maybe ignore some rules) |
static boolean |
printChangesToSystemOutThreadlocal()
if should print changes to standard out |
AttributeAssign |
save()
create or update an attribute assignment Steps: 1. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeAssignSave(GrouperSession theGrouperSession)
theGrouperSession
- Method Detail |
---|
public AttributeAssignSave assignPrintChangesToSystemOut(boolean thePrintChangesToSystemOut)
thePrintChangesToSystemOut
-
public static boolean printChangesToSystemOutThreadlocal()
public static boolean inSaveThreadlocal()
public AttributeAssignSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
-
public AttributeAssignSave assignAttributeAssignDelegatable(AttributeAssignDelegatable theAttributeAssignDelegatable)
theAttributeAssignDelegatable
-
public AttributeAssignSave assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
theAttributeAssignType
-
public AttributeAssignSave assignAttributeDefNameId(java.lang.String theAttributeDefNameId)
theAttributeDefNameId
-
public AttributeAssignSave assignAttributeDefName(AttributeDefName theAttributeDefName)
theAttributeDefName
-
public AttributeAssignSave assignNameOfAttributeDefName(java.lang.String theNameOfAttributeDefName)
theNameOfAttributeDefName
-
public AttributeAssignSave assignDisabledTime(java.lang.Long theDisabledTime)
theDisabledTime
-
public AttributeAssignSave assignDisabledTime(java.sql.Timestamp theDisabledTimestamp)
theDisabledTimestamp
-
public AttributeAssignSave assignDisallowed(boolean theDisallowed)
theDisallowed
-
public AttributeAssignSave assignEnabledTime(java.lang.Long theEnabledTimeDb)
theEnabledTimeDb
-
public AttributeAssignSave assignEnabledTimestamp(java.sql.Timestamp theEnabledTimestamp)
theEnabledTimestamp
-
public AttributeAssignSave assignId(java.lang.String theId)
theId
-
public AttributeAssignSave assignNotes(java.lang.String theNotes)
theNotes
-
public AttributeAssignSave assignOwnerAttributeAssignId(java.lang.String theOwnerAttributeAssignId)
theOwnerAttributeAssignId
-
public AttributeAssignSave assignOwnerAttributeAssign(AttributeAssign theOwnerAttributeAssign)
theOwnerAttributeAssign
-
public AttributeAssignSave assignOwnerAttributeDefId(java.lang.String theOwnerAttributeDefId)
theOwnerAttributeDefId
-
public AttributeAssignSave assignOwnerAttributeDef(AttributeDef theOwnerAttributeDef)
theOwnerAttributeDef
-
public AttributeAssignSave assignOwnerNameOfAttributeDef(java.lang.String theOwnerNameOfAttributeDef)
theOwnerNameOfAttributeDef
-
public AttributeAssignSave assignOwnerGroupId(java.lang.String theOwnerGroupId)
theOwnerGroupId
-
public AttributeAssignSave assignOwnerGroupName(java.lang.String theOwnerGroupName)
theOwnerGroupName
-
public AttributeAssignSave assignOwnerGroup(Group theOwnerGroup)
theOwnerGroup
-
public AttributeAssignSave assignOwnerMemberId(java.lang.String theOwnerMemberId)
theOwnerMemberId
-
public AttributeAssignSave assignOwnerMember(Member theOwnerMember)
theOwnerMember
-
public AttributeAssignSave assignOwnerMemberSubjectId(java.lang.String theOwnerMemberSubjectId)
theOwnerMemberSubjectId
-
public AttributeAssignSave assignOwnerMemberSubjectIdentifier(java.lang.String theOwnerMemberSubjectIdentifier)
theOwnerMemberSubjectIdentifier
-
public AttributeAssignSave assignOwnerMemberSourceId(java.lang.String theOwnerMemberSourceId)
theOwnerMemberSourceId
-
public AttributeAssignSave assignOwnerMembershipId(java.lang.String theOwnerMembershipId)
theOwnerMembershipId
-
public AttributeAssignSave assignOwnerMembership(Membership theOwnerMembership)
theOwnerMembership
-
public AttributeAssignSave assignOwnerStemId(java.lang.String theOwnerStemId)
theOwnerStemId
-
public AttributeAssignSave assignOwnerStem(Stem theOwnerStem)
theOwnerStem
-
public AttributeAssignSave assignOwnerStemName(java.lang.String theOwnerStemName)
theOwnerStemName
-
public SaveResultType getSaveResultType()
public AttributeAssignSave assignAttributeAssignActionId(java.lang.String theAttributeAssignActionId)
theAttributeAssignActionId
-
public AttributeAssignSave assignAction(java.lang.String theAction)
theAction
-
public AttributeAssignSave assignPutAttributeAssignIdsToNotUseSet(boolean thePutAttributeAssignIdsToNotUseSet)
thePutAttributeAssignIdsToNotUseSet
-
public AttributeAssignSave assignAttributeAssignIdsToNotUse(java.util.Set<java.lang.String> theAttributeAssignIdsToNotUse)
theAttributeAssignIdsToNotUse
-
public AttributeAssignSave addAttributeAssignValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue
-
public AttributeAssignSave addValue(java.lang.Object theValue)
theValue
-
public AttributeAssignSave addAttributeAssignOnThisAssignment(AttributeAssignSave theAttributeAssignSave)
theAttributeAssignSave
-
public AttributeAssign save() throws AttributeDefNameNotFoundException, InsufficientPrivilegeException, StemNotFoundException, GroupNotFoundException
create or update an attribute assignment Steps: 1. Find an existing attribute assignment 2. Internally set all the fields of the assignment 3. Store the assignment (insert or update) if needed 4. Manage assignments on assignments and values 5. Return the assignment 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 int getChangesCount()
public java.util.Set<AttributeAssignValue> getAttributeAssignValues()
public void findExistingAttributeAssignment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |