Examples of ItemConfiguration


Examples of org.apache.lenya.ac.impl.ItemConfiguration

  /**
   * @see org.apache.lenya.ac.Item#configure(org.apache.avalon.framework.configuration.Configuration)
   */
  public void configure(Configuration config) throws ConfigurationException {
    new ItemConfiguration().configure(this, config);

    String networkAddress = config.getChild(ELEMENT_NETWORK_ADDRESS).getValue();
    String subnetMask = config.getChild(ELEMENT_SUBNET_MASK).getValue();

    try {
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

   *
   * @return a <code>Configuration</code>
   */
  protected Configuration createConfiguration() {
    DefaultConfiguration config = new DefaultConfiguration(IP_RANGE);
    new ItemConfiguration().save(this, config);

    DefaultConfiguration networkAddressConfig =
      new DefaultConfiguration(ELEMENT_NETWORK_ADDRESS);
    networkAddressConfig.setValue(getNetworkAddress().getHostAddress());
    config.addChild(networkAddressConfig);
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @param config containing the role details
     * @throws ConfigurationException if the <code>FileRole</code> could not be configured
     */
    public void configure(Configuration config) throws ConfigurationException {
        new ItemConfiguration().configure(this, config);
    }
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @return a <code>Configuration</code>
     */
    private Configuration createConfiguration() {
        DefaultConfiguration config = new DefaultConfiguration(ROLE);
        new ItemConfiguration().save(this, config);
        return config;
    }
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @param config where the user details are specified
     * @throws ConfigurationException if the necessary details aren't specified in the config
     */
    public void configure(Configuration config) throws ConfigurationException {
        new ItemConfiguration().configure(this, config);
        setEmail(config.getChild(EMAIL).getValue(""));
        setEncryptedPassword(config.getChild(PASSWORD).getValue(null));

        removeFromAllGroups();
        Configuration[] groups = config.getChildren(GROUPS);
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @return a <code>Configuration</code>
     */
    protected Configuration createConfiguration() {
        DefaultConfiguration config = new DefaultConfiguration(ID);
        new ItemConfiguration().save(this, config);

        DefaultConfiguration child = null;

        // add email node
        child = new DefaultConfiguration(EMAIL);
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     * Configures this file group.
     * @param config The configuration.
     * @throws ConfigurationException when something went wrong.
     */
    public void configure(Configuration config) throws ConfigurationException {
        new ItemConfiguration().configure(this, config);
    }
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @return a <code>Configuration</code>
     */
    private Configuration createConfiguration() {
        DefaultConfiguration config = new DefaultConfiguration(GROUP);
        new ItemConfiguration().save(this, config);

        return config;
    }
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @param config where the user details are specified
     * @throws ConfigurationException if the necessary details aren't specified in the config
     */
    public void configure(Configuration config) throws ConfigurationException {
        new ItemConfiguration().configure(this, config);
        setEmail(config.getChild(EMAIL).getValue(""));
        setEncryptedPassword(config.getChild(PASSWORD).getValue(null));

        removeFromAllGroups();
        Configuration[] groups = config.getChildren(GROUPS);
View Full Code Here

Examples of org.apache.lenya.ac.impl.ItemConfiguration

     *
     * @return a <code>Configuration</code>
     */
    protected Configuration createConfiguration() {
        DefaultConfiguration config = new DefaultConfiguration(ID);
        new ItemConfiguration().save(this, config);

        DefaultConfiguration child = null;

        // add email node
        child = new DefaultConfiguration(EMAIL);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.