edu.internet2.middleware.grouper.ws.rest.attribute
Class WsAssignAttributeLogic
java.lang.Object
edu.internet2.middleware.grouper.ws.rest.attribute.WsAssignAttributeLogic
public class WsAssignAttributeLogic
- extends java.lang.Object
logic for attribute assigning...
Field Summary |
static Log |
LOG
logger |
Method Summary |
static void |
assignAttributesHelper(AttributeAssignType attributeAssignType,
WsAttributeDefNameLookup[] wsAttributeDefNameLookups,
AttributeAssignOperation attributeAssignOperation,
WsAttributeAssignValue[] values,
java.lang.String assignmentNotes,
java.sql.Timestamp assignmentEnabledTime,
java.sql.Timestamp assignmentDisabledTime,
AttributeAssignDelegatable delegatable,
AttributeAssignValueOperation attributeAssignValueOperation,
WsAttributeAssignLookup[] wsAttributeAssignLookups,
WsGroupLookup[] wsOwnerGroupLookups,
WsStemLookup[] wsOwnerStemLookups,
WsSubjectLookup[] wsOwnerSubjectLookups,
WsMembershipLookup[] wsOwnerMembershipLookups,
WsMembershipAnyLookup[] wsOwnerMembershipAnyLookups,
WsAttributeDefLookup[] wsOwnerAttributeDefLookups,
WsAttributeAssignLookup[] wsOwnerAttributeAssignLookups,
java.lang.String[] actions,
boolean includeSubjectDetail,
java.lang.String[] subjectAttributeNames,
boolean includeGroupDetail,
WsAssignAttributesResults wsAssignAttributesResults,
GrouperSession session,
WsParam[] params,
TypeOfGroup typeOfGroup,
AttributeDefType attributeDefType,
WsAttributeDefLookup[] attributeDefsToReplace,
java.lang.String[] actionsToReplace,
java.lang.String[] attributeDefTypesToReplace,
java.lang.Boolean disallowed)
helper method for assigning attributes |
static void |
assignmentMetadataAndValues(WsAssignAttributeResult wsAssignAttributeResult,
AttributeAssign attributeAssign,
WsAttributeAssignValue[] values,
java.lang.String assignmentNotes,
java.sql.Timestamp assignmentEnabledTime,
java.sql.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(java.lang.String wsAttributeDefNameName,
java.lang.String wsAttributeDefNameId,
AttributeAssignOperation attributeAssignOperation)
|
static java.lang.String[] |
retrieveAttributeDefTypesForReplace(java.lang.String wsAttributeDefNameName,
java.lang.String wsAttributeDefNameId,
AttributeAssignOperation attributeAssignOperation)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final Log LOG
- logger
WsAssignAttributeLogic
public WsAssignAttributeLogic()
assignmentMetadataAndValues
public static void assignmentMetadataAndValues(WsAssignAttributeResult wsAssignAttributeResult,
AttributeAssign attributeAssign,
WsAttributeAssignValue[] values,
java.lang.String assignmentNotes,
java.sql.Timestamp assignmentEnabledTime,
java.sql.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,
java.lang.String assignmentNotes,
java.sql.Timestamp assignmentEnabledTime,
java.sql.Timestamp assignmentDisabledTime,
AttributeAssignDelegatable delegatable,
AttributeAssignValueOperation attributeAssignValueOperation,
WsAttributeAssignLookup[] wsAttributeAssignLookups,
WsGroupLookup[] wsOwnerGroupLookups,
WsStemLookup[] wsOwnerStemLookups,
WsSubjectLookup[] wsOwnerSubjectLookups,
WsMembershipLookup[] wsOwnerMembershipLookups,
WsMembershipAnyLookup[] wsOwnerMembershipAnyLookups,
WsAttributeDefLookup[] wsOwnerAttributeDefLookups,
WsAttributeAssignLookup[] wsOwnerAttributeAssignLookups,
java.lang.String[] actions,
boolean includeSubjectDetail,
java.lang.String[] subjectAttributeNames,
boolean includeGroupDetail,
WsAssignAttributesResults wsAssignAttributesResults,
GrouperSession session,
WsParam[] params,
TypeOfGroup typeOfGroup,
AttributeDefType attributeDefType,
WsAttributeDefLookup[] attributeDefsToReplace,
java.lang.String[] actionsToReplace,
java.lang.String[] attributeDefTypesToReplace,
java.lang.Boolean disallowed)
- 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 disallowed
retrieveAttributeDefTypesForReplace
public static java.lang.String[] retrieveAttributeDefTypesForReplace(java.lang.String wsAttributeDefNameName,
java.lang.String wsAttributeDefNameId,
AttributeAssignOperation attributeAssignOperation)
- Parameters:
wsAttributeDefNameName
- wsAttributeDefNameId
- attributeAssignOperation
- attributeDefTypesToReplace
-
- Returns:
- the def types
retrieveAttributeDefsForReplace
public static WsAttributeDefLookup[] retrieveAttributeDefsForReplace(java.lang.String wsAttributeDefNameName,
java.lang.String wsAttributeDefNameId,
AttributeAssignOperation attributeAssignOperation)
- Parameters:
wsAttributeDefNameName
- wsAttributeDefNameId
- attributeAssignOperation
- attributeDefTypesToReplace
-
- Returns:
- the def types