Class GrouperProvisioningValidation
java.lang.Object
edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningValidation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignEntityError
(ProvisioningEntityWrapper provisioningMemberWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync objectboolean
assignErrorCodeToEntityWrapper
(ProvisioningEntity grouperTargetEntity, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, ProvisioningEntityWrapper provisioningEntityWrapper) boolean
assignErrorCodeToGroupWrapper
(ProvisioningGroup grouperTargetGroup, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, ProvisioningGroupWrapper provisioningGroupWrapper) void
assignGroupError
(ProvisioningGroupWrapper provisioningGroupWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync objectvoid
assignMembershipError
(ProvisioningMembershipWrapper provisioningMembershipWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync objectreference back up to the provisionervoid
setGrouperProvisioner
(GrouperProvisioner grouperProvisioner1) reference back up to the provisionervalidateEntities
(Collection<ProvisioningEntity> provisioningEntities, boolean removeInvalid, Boolean forMembershipAttribute, boolean forInsert) validate entities based on attribute constraints and set the error code in the sync object and the wrapper objectboolean
validateEntityHasMatchingId
(ProvisioningEntity provisioningEntity, boolean forInsert) see if an entity has a matching IDboolean
validateGroupHasMatchingId
(ProvisioningGroup provisioningGroup, boolean forInsert) see if a group has a matching IDvalidateGroups
(Collection<ProvisioningGroup> provisioningGroups, boolean removeInvalid, Boolean forMembershipAttribute, boolean forInsert) validate groups based on attribute constraints and set the error code in the sync object and the wrapper objectvalidateGroupsHaveMembers
(Collection<ProvisioningGroup> provisioningGroups, boolean removeInvalid) validate groups have members if required object and the wrapper objectvalidateMemberships
(Collection<ProvisioningMembership> provisioningMemberships, boolean removeInvalid) validate memberships based on attribute constraints and set the error code in the sync object and the wrapper objectvalidFieldOrAttributeValue
(ProvisioningUpdatable provisioningUpdatable, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute) check an attribute and make sure all values are validvalidFieldOrAttributeValue
(ProvisioningUpdatable provisioningUpdatable, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, Object fieldOrAttributeValue) validate a specific value for a field
-
Constructor Details
-
GrouperProvisioningValidation
public GrouperProvisioningValidation()
-
-
Method Details
-
getGrouperProvisioner
reference back up to the provisioner- Returns:
- the provisioner
-
setGrouperProvisioner
reference back up to the provisioner- Parameters:
grouperProvisioner1
-
-
validateGroupHasMatchingId
see if a group has a matching ID- Parameters:
provisioningGroup
-- Returns:
- true if has matching id
-
validateEntityHasMatchingId
public boolean validateEntityHasMatchingId(ProvisioningEntity provisioningEntity, boolean forInsert) see if an entity has a matching ID- Parameters:
provisioningEntity
-- Returns:
- true if has matching id
-
validateGroups
public Set<ProvisioningGroup> validateGroups(Collection<ProvisioningGroup> provisioningGroups, boolean removeInvalid, Boolean forMembershipAttribute, boolean forInsert) validate groups based on attribute constraints and set the error code in the sync object and the wrapper object- Parameters:
provisioningGroups
-removeInvalid
-
-
validateEntities
public Set<ProvisioningEntity> validateEntities(Collection<ProvisioningEntity> provisioningEntities, boolean removeInvalid, Boolean forMembershipAttribute, boolean forInsert) validate entities based on attribute constraints and set the error code in the sync object and the wrapper object- Parameters:
provisioningEntities
-removeInvalid
-
-
assignErrorCodeToEntityWrapper
public boolean assignErrorCodeToEntityWrapper(ProvisioningEntity grouperTargetEntity, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, ProvisioningEntityWrapper provisioningEntityWrapper) - Parameters:
grouperTargetEntity
-grouperProvisioningConfigurationAttribute
-provisioningEntityWrapper
-- Returns:
- true for error and false for no error
-
assignErrorCodeToGroupWrapper
public boolean assignErrorCodeToGroupWrapper(ProvisioningGroup grouperTargetGroup, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, ProvisioningGroupWrapper provisioningGroupWrapper) - Parameters:
grouperTargetGroup
-grouperProvisioningConfigurationAttribute
-provisioningGroupWrapper
-- Returns:
- true for error and false for no error
-
validateMemberships
public Set<ProvisioningMembership> validateMemberships(Collection<ProvisioningMembership> provisioningMemberships, boolean removeInvalid) validate memberships based on attribute constraints and set the error code in the sync object and the wrapper object- Parameters:
provisioningMemberships
-removeInvalid
-
-
assignMembershipError
public void assignMembershipError(ProvisioningMembershipWrapper provisioningMembershipWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync object- Parameters:
provisioningMembershipWrapper
-errorCode
-errorMessage
-
-
assignGroupError
public void assignGroupError(ProvisioningGroupWrapper provisioningGroupWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync object- Parameters:
provisioningGroupWrapper
-errorCode
-errorMessage
-
-
assignEntityError
public void assignEntityError(ProvisioningEntityWrapper provisioningMemberWrapper, GcGrouperSyncErrorCode errorCode, String errorMessage) assign error message to wrapper and sync object- Parameters:
provisioningMemberWrapper
-errorCode
-errorMessage
-
-
validFieldOrAttributeValue
public MultiKey validFieldOrAttributeValue(ProvisioningUpdatable provisioningUpdatable, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute) check an attribute and make sure all values are valid- Parameters:
provisioningUpdatable
-grouperProvisioningConfigurationAttribute
-fieldOrAttributeValueOrig
-- Returns:
- GcGrouperSyncErrorCode, error string description or null
-
validFieldOrAttributeValue
public MultiKey validFieldOrAttributeValue(ProvisioningUpdatable provisioningUpdatable, GrouperProvisioningConfigurationAttribute grouperProvisioningConfigurationAttribute, Object fieldOrAttributeValue) validate a specific value for a field- Parameters:
provisioningUpdatable
-grouperProvisioningConfigurationAttribute
-fieldOrAttributeValueOrig
-- Returns:
- GcGrouperSyncErrorCode, error string description or null
-
validateGroupsHaveMembers
public Set<ProvisioningGroup> validateGroupsHaveMembers(Collection<ProvisioningGroup> provisioningGroups, boolean removeInvalid) validate groups have members if required object and the wrapper object- Parameters:
provisioningGroups
-removeInvalid
-
-