EnterNameAndPasswordProceedFormImpl.java

// license-header java merge-point
// Generated by andromda-jsf cartridge (forms\FormImpl.java.vsl)
package my.onlinestore.purchase;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import javax.faces.model.SelectItem;
import javax.validation.constraints.NotNull;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.myfaces.extensions.validator.baseval.annotation.Pattern;

/**
 * <p>
 * Sends the name and password to the server for authentication.
 * </p>
 */
public class EnterNameAndPasswordProceedFormImpl
    implements Serializable, LoadItemsForm
{
    /**
     * Default constructor
     */
    public EnterNameAndPasswordProceedFormImpl()
    {
    }

    // Action purchase-items-proceed formFields
    private StoreItem[] itemList;

    /**
     * <p>
     * TODO: Model Documentation for itemList
     * </p>
     *
     * @return itemList <p>
TODO: Model Documentation for itemList
</p>
     */
    public StoreItem[] getItemList()
    {
        return this.itemList;
    }

    /**
     * Keeps track of whether or not the value of itemList has
     * be populated at least once.
     */
    private boolean itemListSet = false;

    /**
     * Indicates whether or not the value for itemList has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isItemListSet()
    {
        return this.itemListSet;
    }

    /**
     * <p>
     * TODO: Model Documentation for itemList
     * </p>
     *
     * @param itemListIn <p>
TODO: Model Documentation for itemList
</p>
     */
    public void setItemList(StoreItem[] itemListIn)
    {
        this.itemList = itemListIn;
        this.itemListSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListBackingList()
    {
        return itemListBackingList;
    }

    /**
     * @param itemListBackingListIn
     */
    public void setItemListBackingList(Collection<SelectItem> itemListBackingListIn)
    {
        this.itemListBackingList = itemListBackingListIn;
    }
    

    // itemList attributes

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListTitleBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListTitleBackingList()
    {
        return itemListTitleBackingList;
    }

    /**
     * @param itemListTitleBackingListIn
     */
    public void setItemListTitleBackingList(Collection<SelectItem> itemListTitleBackingListIn)
    {
        this.itemListTitleBackingList = itemListTitleBackingListIn;
    }
    

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListPublisherBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListPublisherBackingList()
    {
        return itemListPublisherBackingList;
    }

    /**
     * @param itemListPublisherBackingListIn
     */
    public void setItemListPublisherBackingList(Collection<SelectItem> itemListPublisherBackingListIn)
    {
        this.itemListPublisherBackingList = itemListPublisherBackingListIn;
    }
    

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListAvailableBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListAvailableBackingList()
    {
        return itemListAvailableBackingList;
    }

    /**
     * @param itemListAvailableBackingListIn
     */
    public void setItemListAvailableBackingList(Collection<SelectItem> itemListAvailableBackingListIn)
    {
        this.itemListAvailableBackingList = itemListAvailableBackingListIn;
    }
    

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListIdBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListIdBackingList()
    {
        return itemListIdBackingList;
    }

    /**
     * @param itemListIdBackingListIn
     */
    public void setItemListIdBackingList(Collection<SelectItem> itemListIdBackingListIn)
    {
        this.itemListIdBackingList = itemListIdBackingListIn;
    }
    

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListHiddenColumnBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListHiddenColumnBackingList()
    {
        return itemListHiddenColumnBackingList;
    }

    /**
     * @param itemListHiddenColumnBackingListIn
     */
    public void setItemListHiddenColumnBackingList(Collection<SelectItem> itemListHiddenColumnBackingListIn)
    {
        this.itemListHiddenColumnBackingList = itemListHiddenColumnBackingListIn;
    }
    

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> itemListReleaseDateBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getItemListReleaseDateBackingList()
    {
        return itemListReleaseDateBackingList;
    }

    /**
     * @param itemListReleaseDateBackingListIn
     */
    public void setItemListReleaseDateBackingList(Collection<SelectItem> itemListReleaseDateBackingListIn)
    {
        this.itemListReleaseDateBackingList = itemListReleaseDateBackingListIn;
    }
    

    private Collection availableItems;

    /**
     * <p>
     * TODO: Model Documentation for availableItems
     * </p>
     *
     * @return availableItems <p>
TODO: Model Documentation for availableItems
</p>
     */
    public Collection getAvailableItems()
    {
        return this.availableItems;
    }

    /**
     * Keeps track of whether or not the value of availableItems has
     * be populated at least once.
     */
    private boolean availableItemsSet = false;

    /**
     * Indicates whether or not the value for availableItems has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isAvailableItemsSet()
    {
        return this.availableItemsSet;
    }

    /**
     * <p>
     * TODO: Model Documentation for availableItems
     * </p>
     *
     * @param availableItemsIn <p>
TODO: Model Documentation for availableItems
</p>
     */
    public void setAvailableItems(Collection availableItemsIn)
    {
        this.availableItems = availableItemsIn;
        this.availableItemsSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> availableItemsBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getAvailableItemsBackingList()
    {
        return availableItemsBackingList;
    }

    /**
     * @param availableItemsBackingListIn
     */
    public void setAvailableItemsBackingList(Collection<SelectItem> availableItemsBackingListIn)
    {
        this.availableItemsBackingList = availableItemsBackingListIn;
    }
    

    private Collection selectedItems;

    /**
     * <p>
     * These items represent the list of items you want to purchase, select them from the list.
     * </p>
     *
     * @return selectedItems <p>
These items represent the list of items you want to purchase, select them from the list.
</p>
     */
    public Collection getSelectedItems()
    {
        return this.selectedItems;
    }

    /**
     * Keeps track of whether or not the value of selectedItems has
     * be populated at least once.
     */
    private boolean selectedItemsSet = false;

    /**
     * Indicates whether or not the value for selectedItems has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isSelectedItemsSet()
    {
        return this.selectedItemsSet;
    }

    /**
     * <p>
     * These items represent the list of items you want to purchase, select them from the list.
     * </p>
     *
     * @param selectedItemsIn <p>
These items represent the list of items you want to purchase, select them from the list.
</p>
     */
    public void setSelectedItems(Collection selectedItemsIn)
    {
        this.selectedItems = selectedItemsIn;
        this.selectedItemsSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> selectedItemsBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getSelectedItemsBackingList()
    {
        return selectedItemsBackingList;
    }

    /**
     * @param selectedItemsBackingListIn
     */
    public void setSelectedItemsBackingList(Collection<SelectItem> selectedItemsBackingListIn)
    {
        this.selectedItemsBackingList = selectedItemsBackingListIn;
    }
    

    @NotNull
    private boolean confirmedLicence;

    /**
     * <p>
     * The license statement needs to be confirmed, this will make you sure you understand the
     * company policies and the agreement that binds us.
     * </p>
     *
     * @return confirmedLicence <p>
The license statement needs to be confirmed, this will make you sure you understand the company
policies and the agreement that binds us.
</p>
     */
    public boolean isConfirmedLicence()
    {
        return this.confirmedLicence;
    }
    public boolean getConfirmedLicence()
    {
        return this.confirmedLicence;
    }

    /**
     * Keeps track of whether or not the value of confirmedLicence has
     * be populated at least once.
     */
    private boolean confirmedLicenceSet = false;

    /**
     * Indicates whether or not the value for confirmedLicence has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isConfirmedLicenceSet()
    {
        return this.confirmedLicenceSet;
    }

    /**
     * <p>
     * The license statement needs to be confirmed, this will make you sure you understand the
     * company policies and the agreement that binds us.
     * </p>
     *
     * @param confirmedLicenceIn <p>
The license statement needs to be confirmed, this will make you sure you understand the company
policies and the agreement that binds us.
</p>
     */
    public void setConfirmedLicence(boolean confirmedLicenceIn)
    {
        this.confirmedLicence = confirmedLicenceIn;
        this.confirmedLicenceSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> confirmedLicenceBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getConfirmedLicenceBackingList()
    {
        return confirmedLicenceBackingList;
    }

    /**
     * @param confirmedLicenceBackingListIn
     */
    public void setConfirmedLicenceBackingList(Collection<SelectItem> confirmedLicenceBackingListIn)
    {
        this.confirmedLicenceBackingList = confirmedLicenceBackingListIn;
    }
    

    private String id;

    /**
     * <p>
     * TODO: Model Documentation for id
     * </p>
     *
     * @return id <p>
TODO: Model Documentation for id
</p>
     */
    public String getId()
    {
        return this.id;
    }

    /**
     * Keeps track of whether or not the value of id has
     * be populated at least once.
     */
    private boolean idSet = false;

    /**
     * Indicates whether or not the value for id has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isIdSet()
    {
        return this.idSet;
    }

    /**
     * <p>
     * TODO: Model Documentation for id
     * </p>
     *
     * @param idIn <p>
TODO: Model Documentation for id
</p>
     */
    public void setId(String idIn)
    {
        this.id = StringUtils.trimToNull(idIn);
        this.idSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> idBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getIdBackingList()
    {
        return idBackingList;
    }

    /**
     * @param idBackingListIn
     */
    public void setIdBackingList(Collection<SelectItem> idBackingListIn)
    {
        this.idBackingList = idBackingListIn;
    }
    

    private String available;

    /**
     * <p>
     * TODO: Model Documentation for available
     * </p>
     *
     * @return available <p>
TODO: Model Documentation for available
</p>
     */
    public String getAvailable()
    {
        return this.available;
    }

    /**
     * Keeps track of whether or not the value of available has
     * be populated at least once.
     */
    private boolean availableSet = false;

    /**
     * Indicates whether or not the value for available has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isAvailableSet()
    {
        return this.availableSet;
    }

    /**
     * <p>
     * TODO: Model Documentation for available
     * </p>
     *
     * @param availableIn <p>
TODO: Model Documentation for available
</p>
     */
    public void setAvailable(String availableIn)
    {
        this.available = StringUtils.trimToNull(availableIn);
        this.availableSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> availableBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getAvailableBackingList()
    {
        return availableBackingList;
    }

    /**
     * @param availableBackingListIn
     */
    public void setAvailableBackingList(Collection<SelectItem> availableBackingListIn)
    {
        this.availableBackingList = availableBackingListIn;
    }
    

    private String publisher;

    /**
     * <p>
     * TODO: Model Documentation for publisher
     * </p>
     *
     * @return publisher <p>
TODO: Model Documentation for publisher
</p>
     */
    public String getPublisher()
    {
        return this.publisher;
    }

    /**
     * Keeps track of whether or not the value of publisher has
     * be populated at least once.
     */
    private boolean publisherSet = false;

    /**
     * Indicates whether or not the value for publisher has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isPublisherSet()
    {
        return this.publisherSet;
    }

    /**
     * <p>
     * TODO: Model Documentation for publisher
     * </p>
     *
     * @param publisherIn <p>
TODO: Model Documentation for publisher
</p>
     */
    public void setPublisher(String publisherIn)
    {
        this.publisher = StringUtils.trimToNull(publisherIn);
        this.publisherSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> publisherBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getPublisherBackingList()
    {
        return publisherBackingList;
    }

    /**
     * @param publisherBackingListIn
     */
    public void setPublisherBackingList(Collection<SelectItem> publisherBackingListIn)
    {
        this.publisherBackingList = publisherBackingListIn;
    }
    

    @NotNull
    @Pattern("^[a-zA-Z]{3,}$")
    private String name;

    /**
     * <p>
     * This name is required and must consist of at least three alphabetical characters
     * </p>
     *
     * @return name <p>
This name is required and must consist of at least three alphabetical characters
</p>
     */
    public String getName()
    {
        return this.name;
    }

    /**
     * Keeps track of whether or not the value of name has
     * be populated at least once.
     */
    private boolean nameSet = false;

    /**
     * Indicates whether or not the value for name has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isNameSet()
    {
        return this.nameSet;
    }

    /**
     * <p>
     * This name is required and must consist of at least three alphabetical characters
     * </p>
     *
     * @param nameIn <p>
This name is required and must consist of at least three alphabetical characters
</p>
     */
    public void setName(String nameIn)
    {
        this.name = StringUtils.trimToNull(nameIn);
        this.nameSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> nameBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getNameBackingList()
    {
        return nameBackingList;
    }

    /**
     * @param nameBackingListIn
     */
    public void setNameBackingList(Collection<SelectItem> nameBackingListIn)
    {
        this.nameBackingList = nameBackingListIn;
    }
    

    @Pattern("^[a-zA-Z0-9]{6,}$")
    @NotNull
    private String password;

    /**
     * <p>
     * This password is required and must consist of at least six alphanumerical characters, the
     * characters you type will be hidden behind a '*' (asterisk).
     * </p>
     *
     * @return password <p>
This password is required and must consist of at least six alphanumerical characters, the characters
you type will be hidden behind a '*' (asterisk).
</p>
     */
    public String getPassword()
    {
        return this.password;
    }

    /**
     * Keeps track of whether or not the value of password has
     * be populated at least once.
     */
    private boolean passwordSet = false;

    /**
     * Indicates whether or not the value for password has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isPasswordSet()
    {
        return this.passwordSet;
    }

    /**
     * <p>
     * This password is required and must consist of at least six alphanumerical characters, the
     * characters you type will be hidden behind a '*' (asterisk).
     * </p>
     *
     * @param passwordIn <p>
This password is required and must consist of at least six alphanumerical characters, the characters
you type will be hidden behind a '*' (asterisk).
</p>
     */
    public void setPassword(String passwordIn)
    {
        this.password = StringUtils.trimToNull(passwordIn);
        this.passwordSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> passwordBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getPasswordBackingList()
    {
        return passwordBackingList;
    }

    /**
     * @param passwordBackingListIn
     */
    public void setPasswordBackingList(Collection<SelectItem> passwordBackingListIn)
    {
        this.passwordBackingList = passwordBackingListIn;
    }
    

    
    @NotNull
    private String confirmPassword;

    /**
     * <p>
     * This field's value should match the one from the password field. This field is present to
     * show that AndroMDA can render the proper conditional validation routines.
     * </p>
     *
     * @return confirmPassword <p>
This field's value should match the one from the password field. This field is present to show that
AndroMDA can render the proper conditional validation routines.
</p>
     */
    public String getConfirmPassword()
    {
        return this.confirmPassword;
    }

    /**
     * Keeps track of whether or not the value of confirmPassword has
     * be populated at least once.
     */
    private boolean confirmPasswordSet = false;

    /**
     * Indicates whether or not the value for confirmPassword has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isConfirmPasswordSet()
    {
        return this.confirmPasswordSet;
    }

    /**
     * <p>
     * This field's value should match the one from the password field. This field is present to
     * show that AndroMDA can render the proper conditional validation routines.
     * </p>
     *
     * @param confirmPasswordIn <p>
This field's value should match the one from the password field. This field is present to show that
AndroMDA can render the proper conditional validation routines.
</p>
     */
    public void setConfirmPassword(String confirmPasswordIn)
    {
        this.confirmPassword = StringUtils.trimToNull(confirmPasswordIn);
        this.confirmPasswordSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> confirmPasswordBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getConfirmPasswordBackingList()
    {
        return confirmPasswordBackingList;
    }

    /**
     * @param confirmPasswordBackingListIn
     */
    public void setConfirmPasswordBackingList(Collection<SelectItem> confirmPasswordBackingListIn)
    {
        this.confirmPasswordBackingList = confirmPasswordBackingListIn;
    }
    

    private String language;

    /**
     * <p>
     * Select the language in which to continue.
     * </p>
     *
     * @return language <p>
Select the language in which to continue.
</p>
     */
    public String getLanguage()
    {
        return this.language;
    }

    /**
     * Keeps track of whether or not the value of language has
     * be populated at least once.
     */
    private boolean languageSet = false;

    /**
     * Indicates whether or not the value for language has been set at least
     * once.
     *
     * @return true/false
     */
    public boolean isLanguageSet()
    {
        return this.languageSet;
    }

    /**
     * <p>
     * Select the language in which to continue.
     * </p>
     *
     * @param languageIn <p>
Select the language in which to continue.
</p>
     */
    public void setLanguage(String languageIn)
    {
        this.language = StringUtils.trimToNull(languageIn);
        this.languageSet = true;
    }

    /**
     * Stores the label/value pairs.
     */
    private Collection<SelectItem> languageBackingList;


    /**
     * @return backingList Collection<SelectItem>
     */
    public Collection<SelectItem> getLanguageBackingList()
    {
        return languageBackingList;
    }

    /**
     * @param languageBackingListIn
     */
    public void setLanguageBackingList(Collection<SelectItem> languageBackingListIn)
    {
        this.languageBackingList = languageBackingListIn;
    }
    


    /*
     * Append this form's fields and values to a Map
     *
     * @param dest the destination Map
     */  
    public Map<String,Object> copyTo(Map<String,Object> dest)
    {
        if(this.itemListSet)
        {
            dest.put("itemList",this.itemList);
        }
        if(this.availableItemsSet)
        {
            dest.put("availableItems",this.availableItems);
        }
        if(this.selectedItemsSet)
        {
            dest.put("selectedItems",this.selectedItems);
        }
        if(this.confirmedLicenceSet)
        {
            dest.put("confirmedLicence",this.confirmedLicence);
        }
        if(this.idSet)
        {
            dest.put("id",this.id);
        }
        if(this.availableSet)
        {
            dest.put("available",this.available);
        }
        if(this.publisherSet)
        {
            dest.put("publisher",this.publisher);
        }
        if(this.nameSet)
        {
            dest.put("name",this.name);
        }
        if(this.passwordSet)
        {
            dest.put("password",this.password);
        }
        if(this.confirmPasswordSet)
        {
            dest.put("confirmPassword",this.confirmPassword);
        }
        if(this.languageSet)
        {
            dest.put("language",this.language);
        }
        return dest;
    }

    /*
     * Fills this form using values of a Map
     *
     * @param source the source Map
     */     
     public EnterNameAndPasswordProceedFormImpl copyFrom(Map<String,Object> source)
    {
        if(source.containsKey("itemList"))
        {
            this.setItemList((StoreItem[])source.get("itemList"));
        }
        if(source.containsKey("availableItems"))
        {
            this.setAvailableItems((Collection)ConvertUtils.convert(source.get("availableItems"),Collection.class));
        }
        if(source.containsKey("selectedItems"))
        {
            this.setSelectedItems((Collection)ConvertUtils.convert(source.get("selectedItems"),Collection.class));
        }
        if(source.containsKey("confirmedLicence"))
        {
            this.setConfirmedLicence((Boolean)ConvertUtils.convert(source.get("confirmedLicence"),Boolean.class));
        }
        if(source.containsKey("id"))
        {
            this.setId((String)ConvertUtils.convert(source.get("id"),String.class));
        }
        if(source.containsKey("available"))
        {
            this.setAvailable((String)ConvertUtils.convert(source.get("available"),String.class));
        }
        if(source.containsKey("publisher"))
        {
            this.setPublisher((String)ConvertUtils.convert(source.get("publisher"),String.class));
        }
        if(source.containsKey("name"))
        {
            this.setName((String)ConvertUtils.convert(source.get("name"),String.class));
        }
        if(source.containsKey("password"))
        {
            this.setPassword((String)ConvertUtils.convert(source.get("password"),String.class));
        }
        if(source.containsKey("confirmPassword"))
        {
            this.setConfirmPassword((String)ConvertUtils.convert(source.get("confirmPassword"),String.class));
        }
        if(source.containsKey("language"))
        {
            this.setLanguage((String)ConvertUtils.convert(source.get("language"),String.class));
        }
        return this;
    }

    /**
     * The serial version UID of this class. Needed for serialization.
     */
    private static final long serialVersionUID = 2085816349259703825L;
}