Class IntakeTool.PullHelper
- java.lang.Object
-
- org.apache.turbine.services.intake.IntakeTool.PullHelper
-
- Enclosing class:
- IntakeTool
public class IntakeTool.PullHelper extends Object
Inner class to present a nice interface to the template designer
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PullHelper(String groupName)
Protected constructor to force use of factory method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.fulcrum.intake.model.Group
getDefault()
Populates the object with the default values from the XML Fileorg.apache.fulcrum.intake.model.Group
mapTo(org.apache.fulcrum.intake.Retrievable obj)
maps an Intake Group to the values from a Retrievable object.org.apache.fulcrum.intake.model.Group
setKey(String key)
Calls setKey(key,true)org.apache.fulcrum.intake.model.Group
setKey(String key, boolean create)
Return the group identified by its key
-
-
-
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 keycreate
- 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
-
-