public class AttributeAssignSave extends Object
Constructor and Description |
---|
AttributeAssignSave(GrouperSession theGrouperSession)
create a new attribute assign save
|
Modifier and Type | Method and Description |
---|---|
AttributeAssignSave |
addAttributeAssignOnThisAssignment(AttributeAssignSave theAttributeAssignSave)
if including assignments on this assignment, put them here
|
AttributeAssignSave |
addAttributeAssignValue(AttributeAssignValue attributeAssignValue)
add a value to assign to this assignment
|
AttributeAssignSave |
assignAction(String theAction)
assign the action
|
AttributeAssignSave |
assignAttributeAssignActionId(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(Set<String> theAttributeAssignIdsToNotUse)
if doing an import, these are id's which should not be used.
|
AttributeAssignSave |
assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
type of assignment
|
AttributeAssignSave |
assignAttributeDefNameId(String theAttributeDefNameId)
attribute name in this assignment as opposed to nameOfAttributeDefName
|
AttributeAssignSave |
assignDisabledTime(Long theDisabledTime)
if there is a date here, and it is in the past, this assignment is disabled
|
AttributeAssignSave |
assignDisabledTime(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(Long theEnabledTimeDb)
if there is a date here, and it is in the future, this assignment is disabled
until that time
|
AttributeAssignSave |
assignEnabledTimestamp(Timestamp theEnabledTimestamp)
if there is a date here, and it is in the future, this assignment is disabled
until that time
|
AttributeAssignSave |
assignId(String theId)
id of this attribute assign
|
AttributeAssignSave |
assignNameOfAttributeDefName(String theNameOfAttributeDefName)
attribute name in this assignment as opposed to attributeDefNameId
|
AttributeAssignSave |
assignNotes(String theNotes)
notes about this assignment, free-form text
|
AttributeAssignSave |
assignOwnerAttributeAssignId(String theOwnerAttributeAssignId)
if this is an attribute assign attribute, this is the foreign key
|
AttributeAssignSave |
assignOwnerAttributeDefId(String theOwnerAttributeDefId)
if this is an attribute def attribute, this is the foreign key, mutually exclusive with ownerNameOfAttributeDef
|
AttributeAssignSave |
assignOwnerGroupId(String theOwnerGroupId)
if this is a group attribute, this is the foreign key mutually exclusive with ownerGroupName
|
AttributeAssignSave |
assignOwnerGroupName(String theOwnerGroupName)
if this is a group attribute, this is the foreign key mutually exclusive with ownerGroupId
|
AttributeAssignSave |
assignOwnerMemberId(String theOwnerMemberId)
if this is a member attribute, this is the foreign key, mutually exclusive with ownerMemberSubjectId(entifier) and ownerMemberSourceId
|
AttributeAssignSave |
assignOwnerMembershipId(String theOwnerMembershipId)
if this is a membership attribute, this is the foreign key.
|
AttributeAssignSave |
assignOwnerMemberSourceId(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(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(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(String theOwnerNameOfAttributeDef)
if this is an attribute def attribute, this is the foreign key mutually exclusive with ownerAttributeDefId
|
AttributeAssignSave |
assignOwnerStemId(String theOwnerStemId)
if this is a stem attribute, this is the foreign key, mutually exclusive with ownerStemName
|
AttributeAssignSave |
assignOwnerStemName(String theOwnerStemName)
if this is a stem attribute, this is the foreign key, mutually exclusive with ownerStemId
|
AttributeAssignSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode
|
SaveResultType |
getSaveResultType()
get the save type
|
AttributeAssign |
save()
create or update a group.
|
public AttributeAssignSave(GrouperSession theGrouperSession)
theGrouperSession
- public AttributeAssignSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
- public AttributeAssignSave assignAttributeAssignDelegatable(AttributeAssignDelegatable theAttributeAssignDelegatable)
theAttributeAssignDelegatable
- public AttributeAssignSave assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
theAttributeAssignType
- public AttributeAssignSave assignAttributeDefNameId(String theAttributeDefNameId)
theAttributeDefNameId
- public AttributeAssignSave assignNameOfAttributeDefName(String theNameOfAttributeDefName)
theNameOfAttributeDefName
- public AttributeAssignSave assignDisabledTime(Long theDisabledTime)
theDisabledTime
- public AttributeAssignSave assignDisabledTime(Timestamp theDisabledTimestamp)
theDisabledTimestamp
- public AttributeAssignSave assignDisallowed(boolean theDisallowed)
theDisallowed
- public AttributeAssignSave assignEnabledTime(Long theEnabledTimeDb)
theEnabledTimeDb
- public AttributeAssignSave assignEnabledTimestamp(Timestamp theEnabledTimestamp)
theEnabledTimestamp
- public AttributeAssignSave assignId(String theId)
theId
- public AttributeAssignSave assignNotes(String theNotes)
theNotes
- public AttributeAssignSave assignOwnerAttributeAssignId(String theOwnerAttributeAssignId)
theOwnerAttributeAssignId
- public AttributeAssignSave assignOwnerAttributeDefId(String theOwnerAttributeDefId)
theOwnerAttributeDefId
- public AttributeAssignSave assignOwnerNameOfAttributeDef(String theOwnerNameOfAttributeDef)
theOwnerNameOfAttributeDef
- public AttributeAssignSave assignOwnerGroupId(String theOwnerGroupId)
theOwnerGroupId
- public AttributeAssignSave assignOwnerGroupName(String theOwnerGroupName)
theOwnerGroupName
- public AttributeAssignSave assignOwnerMemberId(String theOwnerMemberId)
theOwnerMemberId
- public AttributeAssignSave assignOwnerMemberSubjectId(String theOwnerMemberSubjectId)
theOwnerMemberSubjectId
- public AttributeAssignSave assignOwnerMemberSubjectIdentifier(String theOwnerMemberSubjectIdentifier)
theOwnerMemberSubjectIdentifier
- public AttributeAssignSave assignOwnerMemberSourceId(String theOwnerMemberSourceId)
theOwnerMemberSourceId
- public AttributeAssignSave assignOwnerMembershipId(String theOwnerMembershipId)
theOwnerMembershipId
- public AttributeAssignSave assignOwnerStemId(String theOwnerStemId)
theOwnerStemId
- public AttributeAssignSave assignOwnerStemName(String theOwnerStemName)
theOwnerStemName
- public SaveResultType getSaveResultType()
public AttributeAssignSave assignAttributeAssignActionId(String theAttributeAssignActionId)
theAttributeAssignActionId
- public AttributeAssignSave assignAction(String theAction)
theAction
- public AttributeAssignSave assignAttributeAssignIdsToNotUse(Set<String> theAttributeAssignIdsToNotUse)
theAttributeAssignIdsToNotUse
- public AttributeAssignSave addAttributeAssignValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue
- public AttributeAssignSave addAttributeAssignOnThisAssignment(AttributeAssignSave theAttributeAssignSave)
theAttributeAssignSave
- public AttributeAssign 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
Copyright © 2016 Internet2. All rights reserved.