edu.internet2.middleware.grouper.ws.rest.attribute
Class WsAssignAttributeLogic

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.rest.attribute.WsAssignAttributeLogic

public class WsAssignAttributeLogic
extends Object

logic for attribute assigning...


Field Summary
static Log LOG
          logger
 
Constructor Summary
WsAssignAttributeLogic()
           
 
Method Summary
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
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)
static WsAttributeDefLookup[] retrieveAttributeDefsForReplace(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation)
           
static String[] retrieveAttributeDefTypesForReplace(String wsAttributeDefNameName, String wsAttributeDefNameId, AttributeAssignOperation attributeAssignOperation)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Log LOG
logger

Constructor Detail

WsAssignAttributeLogic

public WsAssignAttributeLogic()
Method Detail

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 all
actionsToReplace - if replacing attributeDefNames, then these are the related actions, if blank, then just do all
attributeDefTypesToReplace - if replacing attributeDefNames, then these are the related attributeDefTypes, if blank, then just do all
disallowed - is disallowed
tallyResults - true to tally results, false to not
backReferenceAttributeAssignIds - 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