Examples of ItemConfiguration


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

     * Configure this instance of <code>FileRole</code>
     * @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

     * Create a configuration containing the role details
     * @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

     * Configure this FileUser.
     * @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(""));
        setDefaultMenuLocale(config.getChild(MENU_LOCALE).getValue(""));
        setDefaultDocumentLocale(config.getChild(DOCUMENT_LOCALE).getValue(""));
        setEncryptedPassword(config.getChild(PASSWORD).getValue(null));

View Full Code Here

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

     * Create a configuration from the current user details. Can be used for saving.
     * @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

     * Create a configuration containing the group details
     * @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

    /**
     * @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

     * Create a configuration from the current user details. Can be used for saving.
     * @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 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(""));
        setDefaultMenuLocale(config.getChild(MENU_LOCALE).getValue(""));
        setDefaultDocumentLocale(config.getChild(DOCUMENT_LOCALE).getValue(""));
        setEncryptedPassword(config.getChild(PASSWORD).getValue(null));

View Full Code Here

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

     * saving.
     * @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.