public class ConfigChannelCreationHelper
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | MAX_LABEL_LENGTH | 
| static int | MAX_NAME_LENGTH | 
| Constructor and Description | 
|---|
| ConfigChannelCreationHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| ConfigChannel | create(User user)Creates a new config channel | 
| void | save(ConfigChannel cc) | 
| void | update(ConfigChannel cc,
      org.apache.struts.action.DynaActionForm form)populates the config channel readinng the fields from a
 dyna action form | 
| void | update(ConfigChannel cc,
      java.lang.String name,
      java.lang.String label,
      java.lang.String description)populates the config channel readinng the fields from a
 dyna action form | 
| void | validate(org.apache.struts.action.DynaActionForm form)Basically validates the passed in form and returns
 a validator result for bad data.. | 
| void | validate(java.lang.String label,
        java.lang.String name,
        java.lang.String description)Basically validates the passed in data and returns
 a validator result for bad data.. | 
public static final int MAX_NAME_LENGTH
public static final int MAX_LABEL_LENGTH
public void validate(java.lang.String label,
                     java.lang.String name,
                     java.lang.String description)
label - the UNIQUE label of the config channelname - the name of the config channeldescription - the description of the config channelValidatorException - on bad datapublic void validate(org.apache.struts.action.DynaActionForm form)
form - the DynaForm that may be used
              for validating through the UIValidatorException - on bad datapublic ConfigChannel create(User user)
user - needed for authentication.public void update(ConfigChannel cc, org.apache.struts.action.DynaActionForm form)
cc - the channel to populateform - the form to retrieve the data from.ValidatorException - on bad datapublic void update(ConfigChannel cc, java.lang.String name, java.lang.String label, java.lang.String description)
cc - the channel to populatename - name of the channellabel - channel labeldescription - channel descriptionValidatorException - on bad datapublic void save(ConfigChannel cc)
cc - the config channel to save.