Class IntakeTool.PullHelper

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PullHelper​(String groupName)
      Protected constructor to force use of factory method.
    • Constructor Detail

      • PullHelper

        protected PullHelper​(String groupName)
        Protected constructor to force use of factory method.
        Parameters:
        groupName - the group name
    • Method Detail

      • getDefault

        public org.apache.fulcrum.intake.model.Group getDefault()
                                                         throws org.apache.fulcrum.intake.IntakeException
        Populates the object with the default values from the XML File
        Returns:
        a Group object with the default values
        Throws:
        org.apache.fulcrum.intake.IntakeException - if getting the group fails
      • setKey

        public org.apache.fulcrum.intake.model.Group setKey​(String key)
                                                     throws org.apache.fulcrum.intake.IntakeException
        Calls setKey(key,true)
        Parameters:
        key - the group key
        Returns:
        an Intake Group
        Throws:
        org.apache.fulcrum.intake.IntakeException - if getting the group fails
      • setKey

        public org.apache.fulcrum.intake.model.Group setKey​(String key,
                                                            boolean create)
                                                     throws org.apache.fulcrum.intake.IntakeException
        Return the group identified by its key
        Parameters:
        key - the group key
        create - true if a non-existing group should be created
        Returns:
        an Intake Group
        Throws:
        org.apache.fulcrum.intake.IntakeException - if getting the group fails
      • mapTo

        public org.apache.fulcrum.intake.model.Group mapTo​(org.apache.fulcrum.intake.Retrievable obj)
        maps an Intake Group to the values from a Retrievable object.
        Parameters:
        obj - A retrievable object
        Returns:
        an Intake Group