Class AttributeAutoCreateHook

java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeAssignHooks
edu.internet2.middleware.grouper.hooks.examples.AttributeAutoCreateHook

public class AttributeAutoCreateHook extends AttributeAssignHooks
this will only run after grouper is started up
  • Field Details

    • GROUPER_ATTRIBUTE_AUTO_CREATE_MARKER_DEF

      public static final String GROUPER_ATTRIBUTE_AUTO_CREATE_MARKER_DEF
      See Also:
    • GROUPER_ATTRIBUTE_AUTO_CREATE_MARKER

      public static final String GROUPER_ATTRIBUTE_AUTO_CREATE_MARKER
      See Also:
    • GROUPER_ATTRIBUTE_AUTO_CREATE_VALUE_DEF

      public static final String GROUPER_ATTRIBUTE_AUTO_CREATE_VALUE_DEF
      See Also:
    • GROUPER_ATTRIBUTE_AUTO_CREATE_ATTR_IF_NAME

      public static final String GROUPER_ATTRIBUTE_AUTO_CREATE_ATTR_IF_NAME
      See Also:
    • GROUPER_ATTRIBUTE_AUTO_CREATE_ATTR_THEN_NAMES_ON_ASSIGN

      public static final String GROUPER_ATTRIBUTE_AUTO_CREATE_ATTR_THEN_NAMES_ON_ASSIGN
      See Also:
  • Constructor Details

    • AttributeAutoCreateHook

      public AttributeAutoCreateHook()
  • Method Details

    • clearCache

      public static void clearCache()
    • clearHook

      public static void clearHook()
    • attributeAutoCreateStemName

      public static String attributeAutoCreateStemName()
      Returns:
      the stem name
    • main

      public static void main(String[] args)
    • registerHookIfNecessary

      public static void registerHookIfNecessary()
      see if this is configured in the grouper.properties, if so, register this hook
    • autoAssignAttributeIds

      public Map<String,List<AttributeDefName>> autoAssignAttributeIds()
    • attributeAssignPostCommitInsert

      public void attributeAssignPostCommitInsert(HooksContext hooksContext, HooksAttributeAssignBean postCommitInsertBean)
      Description copied from class: AttributeAssignHooks
      called right after the commit of a post insert commit. Note, cant veto this or participate in the tx
      Overrides:
      attributeAssignPostCommitInsert in class AttributeAssignHooks