All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.efaps.admin.EFapsSystemConfiguration Maven / Gradle / Ivy

/*
 * Copyright 2003 - 2013 The eFaps Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Revision:        $Rev: 8848 $
 * Last Changed:    $Date: 2013-02-19 10:49:59 -0500 (Tue, 19 Feb 2013) $
 * Last Changed By: $Author: [email protected] $
 */

package org.efaps.admin;

import java.util.UUID;

import org.efaps.admin.common.SystemConfiguration;
import org.efaps.util.cache.CacheReloadException;

/**
 * Enumeration for {@link SystemConfiguration system configurations} used from
 * eFaps.
 *
 * @author The eFaps Team
 * @version $Id: EFapsSystemConfiguration.java 7483 2012-05-11 16:57:38Z
 *          [email protected] $
 */
public enum EFapsSystemConfiguration
{
    /**
     * Kernel system configuration.
     */
    KERNEL("acf2b19b-f7c4-4e4a-a724-fb2d9ed30079");

    /**
     * Stores the {@link UUID} of related system configuration.
     */
    private final UUID uuid;

    /**
     * Initializes the {@link #uuid} for the system configuration.
     *
     * @param _uuid string representation of the UUID
     */
    private EFapsSystemConfiguration(final String _uuid)
    {
        this.uuid = UUID.fromString(_uuid);
    }

    /**
     * Returns related {@link SystemConfiguration system configuration}
     * instance.
     *
     * @return related system configuration instance
     * @throws CacheReloadException on error
     */
    public SystemConfiguration get()
        throws CacheReloadException
    {
        return SystemConfiguration.get(this.uuid);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy