Class GdgTypeStemFinder

java.lang.Object
edu.internet2.middleware.grouper.app.grouperTypes.GdgTypeStemFinder

public class GdgTypeStemFinder extends Object

Use this class to find objects type attributes on stems

Sample call

 GrouperObjectTypesAttributeValue attributeValue = new GdgTypeStemFinder().assignStem(stem).assignType("ref").findGdgTypeStemAssignment();
 

Sample call to find multiple object types attributes on a stem

 Set attributeValues = new GdgTypeStemFinder().assignStem(stem).findGdgTypeStemAssignments();
 

  • Constructor Details

    • GdgTypeStemFinder

      public GdgTypeStemFinder()
  • Method Details

    • assignStem

      public GdgTypeStemFinder assignStem(Stem stem)
      assign stem from which to retrieve object types attributes
      Parameters:
      stem -
      Returns:
    • assignStemId

      public GdgTypeStemFinder assignStemId(String stemId)
      assign stem id from which to retrieve object types attributes
      Parameters:
      stem -
      Returns:
    • assignStemName

      public GdgTypeStemFinder assignStemName(String stemName)
      assign stem name from which to retrieve object types attributes
      Parameters:
      stem -
      Returns:
    • assignType

      public GdgTypeStemFinder assignType(String type)
      type e.g. ref, basis, app
      Parameters:
      type -
      Returns:
    • assignRunAsRoot

      public GdgTypeStemFinder assignRunAsRoot(boolean runAsRoot)
      set this to true to run as a root session
      Parameters:
      runAsRoot -
      Returns:
    • assignDirectAssignment

      public GdgTypeStemFinder assignDirectAssignment(Boolean directAssignment)
      only find attributes where direct assignment is true (possible values: null (default), true, false)
      Parameters:
      directAssignment -
      Returns:
    • findGdgTypeStemAssignment

      public GrouperObjectTypesAttributeValue findGdgTypeStemAssignment()
      find bean containing object types attributes on a stem
      Returns:
    • findGdgTypeStemAssignments

      public Set<GrouperObjectTypesAttributeValue> findGdgTypeStemAssignments()