Class WsAssignAttributeLogic
java.lang.Object
edu.internet2.middleware.grouper.ws.rest.attribute.WsAssignAttributeLogic
logic for attribute assigning...
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assignAttributesHelper
(AttributeAssignType attributeAssignType, WsAttributeDefNameLookup[] wsAttributeDefNameLookups, AttributeAssignOperation attributeAssignOperation, WsAttributeAssignValue[] values, String assignmentNotes, Timestamp assignmentEnabledTime, Timestamp assignmentDisabledTime, AttributeAssignDelegatable delegatable, AttributeAssignValueOperation attributeAssignValueOperation, WsAttributeAssignLookup[] wsAttributeAssignLookups, WsGroupLookup[] wsOwnerGroupLookups, WsStemLookup[] wsOwnerStemLookups, WsSubjectLookup[] wsOwnerSubjectLookups, WsMembershipLookup[] wsOwnerMembershipLookups, WsMembershipAnyLookup[] wsOwnerMembershipAnyLookups, WsAttributeDefLookup[] wsOwnerAttributeDefLookups, WsAttributeAssignLookup[] wsOwnerAttributeAssignLookups, String[] actions, boolean includeSubjectDetail, String[] subjectAttributeNames, boolean includeGroupDetail, WsAssignAttributesResults wsAssignAttributesResults, GrouperSession session, WsParam[] params, TypeOfGroup typeOfGroup, AttributeDefType attributeDefType, WsAttributeDefLookup[] attributeDefsToReplace, String[] actionsToReplace, String[] attributeDefTypesToReplace, Boolean disallowed, boolean tallyResults, String[] backReferenceAttributeAssignIds) helper method for assigning attributesstatic void
assignmentMetadataAndValues
(WsAssignAttributeResult wsAssignAttributeResult, AttributeAssign attributeAssign, WsAttributeAssignValue[] values, String assignmentNotes, Timestamp assignmentEnabledTime, Timestamp assignmentDisabledTime, AttributeAssignDelegatable delegatable, AttributeAssignValueOperation attributeAssignValueOperation) deal with metadata on assignment and values and indicate in the result if changed (will set to T, or leave alone)static WsAttributeDefLookup[]
retrieveAttributeDefsForReplace
(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation) static String[]
retrieveAttributeDefTypesForReplace
(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation)
-
Field Details
-
LOG
public static final org.apache.commons.logging.Log LOGlogger
-
-
Constructor Details
-
WsAssignAttributeLogic
public WsAssignAttributeLogic()
-
-
Method Details
-
assignmentMetadataAndValues
public static void assignmentMetadataAndValues(WsAssignAttributeResult wsAssignAttributeResult, AttributeAssign attributeAssign, WsAttributeAssignValue[] values, String assignmentNotes, Timestamp assignmentEnabledTime, Timestamp assignmentDisabledTime, AttributeAssignDelegatable delegatable, AttributeAssignValueOperation attributeAssignValueOperation) deal with metadata on assignment and values and indicate in the result if changed (will set to T, or leave alone)- Parameters:
wsAssignAttributeResult
-attributeAssign
-values
-assignmentNotes
-assignmentEnabledTime
-assignmentDisabledTime
-delegatable
-attributeAssignValueOperation
-
-
assignAttributesHelper
public static void assignAttributesHelper(AttributeAssignType attributeAssignType, WsAttributeDefNameLookup[] wsAttributeDefNameLookups, AttributeAssignOperation attributeAssignOperation, WsAttributeAssignValue[] values, String assignmentNotes, Timestamp assignmentEnabledTime, Timestamp assignmentDisabledTime, AttributeAssignDelegatable delegatable, AttributeAssignValueOperation attributeAssignValueOperation, WsAttributeAssignLookup[] wsAttributeAssignLookups, WsGroupLookup[] wsOwnerGroupLookups, WsStemLookup[] wsOwnerStemLookups, WsSubjectLookup[] wsOwnerSubjectLookups, WsMembershipLookup[] wsOwnerMembershipLookups, WsMembershipAnyLookup[] wsOwnerMembershipAnyLookups, WsAttributeDefLookup[] wsOwnerAttributeDefLookups, WsAttributeAssignLookup[] wsOwnerAttributeAssignLookups, String[] actions, boolean includeSubjectDetail, String[] subjectAttributeNames, boolean includeGroupDetail, WsAssignAttributesResults wsAssignAttributesResults, GrouperSession session, WsParam[] params, TypeOfGroup typeOfGroup, AttributeDefType attributeDefType, WsAttributeDefLookup[] attributeDefsToReplace, String[] actionsToReplace, String[] attributeDefTypesToReplace, Boolean disallowed, boolean tallyResults, String[] backReferenceAttributeAssignIds) helper method for assigning attributes- Parameters:
attributeAssignType
-wsAttributeDefNameLookups
-attributeAssignOperation
-values
-assignmentNotes
-assignmentEnabledTime
-assignmentDisabledTime
-delegatable
-attributeAssignValueOperation
-wsAttributeAssignLookups
-wsOwnerGroupLookups
-wsOwnerStemLookups
-wsOwnerSubjectLookups
-wsOwnerMembershipLookups
-wsOwnerMembershipAnyLookups
-wsOwnerAttributeDefLookups
-wsOwnerAttributeAssignLookups
-actions
-includeSubjectDetail
-subjectAttributeNames
-includeGroupDetail
-wsAssignAttributesResults
-session
-params
-typeOfGroup
-attributeDefType
-attributeDefsToReplace
- if replacing attributeDefNames, then these are the related attributeDefs, if blank, then just do allactionsToReplace
- if replacing attributeDefNames, then these are the related actions, if blank, then just do allattributeDefTypesToReplace
- if replacing attributeDefNames, then these are the related attributeDefTypes, if blank, then just do alldisallowed
- is disallowedtallyResults
- true to tally results, false to notbackReferenceAttributeAssignIds
- if batch attribute assignments, then these are backreference ids
-
retrieveAttributeDefTypesForReplace
public static String[] retrieveAttributeDefTypesForReplace(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation) - Parameters:
wsAttributeDefNameName
-wsAttributeDefNameId
-attributeAssignOperation
-attributeDefTypesToReplace
-- Returns:
- the def types
-
retrieveAttributeDefsForReplace
public static WsAttributeDefLookup[] retrieveAttributeDefsForReplace(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation) - Parameters:
wsAttributeDefNameName
-wsAttributeDefNameId
-attributeAssignOperation
-attributeDefTypesToReplace
-- Returns:
- the def types
-