Class GrouperProvisioningConfigurationValidation

java.lang.Object
edu.internet2.middleware.grouper.app.provisioning.GrouperProvisioningConfigurationValidation
Direct Known Subclasses:
AdobeProvisoningConfigurationValidation, DuoProvisoningConfigurationValidation, DuoRoleProvisoningConfigurationValidation, GoogleProvisioningConfigurationValidation, LdapSyncConfigurationValidation, MidPointProvisoningConfigurationValidation, Scim2SyncConfigurationValidation, TeamDynamixProvisioningConfigurationValidation

public class GrouperProvisioningConfigurationValidation extends Object
this could be a deep validate though
  • Constructor Details

    • GrouperProvisioningConfigurationValidation

      public GrouperProvisioningConfigurationValidation()
  • Method Details

    • getGrouperProvisioner

      public GrouperProvisioner getGrouperProvisioner()
    • setGrouperProvisioner

      public void setGrouperProvisioner(GrouperProvisioner grouperProvisioner)
    • validateGroupAttributeNamesAllowed

      public Collection<String> validateGroupAttributeNamesAllowed()
      override this method to assign which attributes are allowed for groups
      Returns:
      null to not check or a collection to check group attribute names
    • validateGroupAttributeNamesRequired

      public Collection<String> validateGroupAttributeNamesRequired()
      override this method to assign which attributes are required for groups
      Returns:
      null to not check or a collection to check group attribute names
    • validateGroupAttributesRequireString

      public boolean validateGroupAttributesRequireString()
      override this method return true to require group attributes to be strings
      Returns:
      true
    • validateGroupAttributes

      public void validateGroupAttributes()
      validate various generic aspects of group attributes
    • validateEntityAttributeNamesAllowed

      public Collection<String> validateEntityAttributeNamesAllowed()
      override this method to assign which attributes are allowed for entities
      Returns:
      null to not check or a collection to check entity attribute names
    • validateEntityAttributeNamesRequired

      public Collection<String> validateEntityAttributeNamesRequired()
      override this method to assign which attributes are required for entities
      Returns:
      null to not check or a collection to check entity attribute names
    • validateEntityAttributesRequireString

      public boolean validateEntityAttributesRequireString()
      override this method return true to require entity attributes to be strings
      Returns:
      true
    • validateEntityAttributes

      public void validateEntityAttributes()
      validate various generic aspects of entity attributes
    • getSuffixToConfigValue

      public Map<String,String> getSuffixToConfigValue()
      Returns:
      the map
    • getProvisioningValidationIssues

      public List<ProvisioningValidationIssue> getProvisioningValidationIssues()
      get the error messages and jqeury handles and severity
      Returns:
      the error messages
    • addErrorMessage

      public void addErrorMessage(ProvisioningValidationIssue provisioningValidationIssue)
      add an error message and optionally a jquery handle or config suffix
      Parameters:
      provisioningValidationIssue -
    • addErrorMessages

      public void addErrorMessages(Collection<ProvisioningValidationIssue> provisioningValidationIssue)
      add an error message and optionally a jquery handle or config suffix
      Parameters:
      provisioningValidationIssue -
    • validate

      public List<ProvisioningValidationIssue> validate()
      take the config for this provisioner and validate
      Returns:
      error message, and optionally a jquery handle suffix that has the problem
    • validateFromObjectModel

      public void validateFromObjectModel()
      validate from the grouper provisioner
    • validateMetadata

      public void validateMetadata()
    • validateOperateImpliesSelectOrInsert

      public void validateOperateImpliesSelectOrInsert()
      if operating on group/entity/membership
      Parameters:
      suffixToConfigValue -
    • validateFromSuffixValueMap

      public void validateFromSuffixValueMap()
    • validateOperateOnEntitiesIfSubjectSourcesToProvision

      public void validateOperateOnEntitiesIfSubjectSourcesToProvision()
      GRP-3911: subject sources to provision should not be in top config section
    • validateFailsafes

      public void validateFailsafes()
    • validateMatchingAttributes

      public void validateMatchingAttributes()
    • validateMembershipAttributeDoesNotMatchSearchOrMatchingAttribute

      public void validateMembershipAttributeDoesNotMatchSearchOrMatchingAttribute()
    • validateMembershipAttributesAreNotCached

      public void validateMembershipAttributesAreNotCached()
    • validateDoingSomething

      public void validateDoingSomething()
    • validateGroupIdToProvisionExists

      public void validateGroupIdToProvisionExists()
      Parameters:
      suffixToConfigValue -
    • validateGroupDeleteHasDeleteType

      public void validateGroupDeleteHasDeleteType()
      if there is a group delete, then there must be one delete type
      Parameters:
      suffixToConfigValue -
    • validateMembershipDeleteHasDeleteType

      public void validateMembershipDeleteHasDeleteType()
      if there is a group delete, then there must be one delete type
      Parameters:
      suffixToConfigValue -
    • validateEntityDeleteHasDeleteType

      public void validateEntityDeleteHasDeleteType()
      if there is a group delete, then there must be one delete type
      Parameters:
      suffixToConfigValue -
    • validateGroupLinkHasConfiguration

      public void validateGroupLinkHasConfiguration()
      if there is a group delete, then there must be one delete type
      Parameters:
      suffixToConfigValue -
    • validateEntityLinkHasConfiguration

      public void validateEntityLinkHasConfiguration()
      if there is a entity delete, then there must be one delete type
    • validateGroupLinkOnePerBucket

      public void validateGroupLinkOnePerBucket()
      if there is a group link, then make sure multiple things arent going to the same bucket
      Parameters:
      suffixToConfigValue -
    • retrieveProvisionerConfiguration

      public ProvisioningConfiguration retrieveProvisionerConfiguration()
      Returns:
    • validateNoUnsedConfigs

      public void validateNoUnsedConfigs()
      check to make sure all configs are used and none are extraneous
      Parameters:
      suffixToConfigValue -
    • validateEntityLinkOnePerBucket

      public void validateEntityLinkOnePerBucket()
      if there is an entity link, then make sure multiple things arent going to the same bucket
      Parameters:
      suffixToConfigValue -
    • validateConfigBasics

      public void validateConfigBasics()
      make sure things are the right type and required check, list of values, etc
      Parameters:
      suffixToConfigValue -
    • validateProvisionerConfig

      public void validateProvisionerConfig()
      provisioner config
      Parameters:
      suffixToConfigValue -
    • validateAttributeNamesNotReused

      public void validateAttributeNamesNotReused()
      make sure attribute names arent re-used
      Parameters:
      suffixToConfigValue -
    • validateAttributeCount

      public void validateAttributeCount()
      make sure attribute names arent re-used
      Parameters:
      suffixToConfigValue -
    • validateNoFields

      public void validateNoFields()
    • validateSelectAllEntities

      public void validateSelectAllEntities()
    • validateEntityResolverRefactorDontUseOldValues

      public void validateEntityResolverRefactorDontUseOldValues()
    • validateCustomizeMembershipCrud

      public void validateCustomizeMembershipCrud()
    • validateCustomizeGroupCrud

      public void validateCustomizeGroupCrud()
    • validateMembershipShowValidation

      public void validateMembershipShowValidation()
    • validateMembershipReplace

      public void validateMembershipReplace()
    • validateMembershipShowAttributeCrud

      public void validateMembershipShowAttributeCrud()
    • validateGroupShowAttributeCrud

      public void validateGroupShowAttributeCrud()
    • validateGroupShowValidation

      public void validateGroupShowValidation()
    • validateEntityShowValidation

      public void validateEntityShowValidation()
    • validateCustomizeEntityCrud

      public void validateCustomizeEntityCrud()
    • validateEntityShowAttributeCrud

      public void validateEntityShowAttributeCrud()
    • validateMembershipShowAttributeValueSettings

      public void validateMembershipShowAttributeValueSettings()
    • validateGroupShowAttributeValueSettings

      public void validateGroupShowAttributeValueSettings()
    • validateGroupAttributeNamesForbidden

      public Collection<String> validateGroupAttributeNamesForbidden()
    • validateEntityAttributeNamesForbidden

      public Collection<String> validateEntityAttributeNamesForbidden()