⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 referenceservice.java

📁 OPIAM stands for Open Identity and Access Management. This Suite will provide modules for user & rig
💻 JAVA
字号:
/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.service.services.references;

import opiam.admin.faare.config.ReferenceListConfig;
import opiam.admin.faare.config.javabeans.JBBaseReferenceListDescriptor;
import opiam.admin.faare.config.javabeans.JBReferenceMap;
import opiam.admin.faare.config.javabeans.JBSearchReferenceListDescriptor;
import opiam.admin.faare.exception.PersistenceException;
import opiam.admin.faare.exception.ServiceException;
import opiam.admin.faare.persistence.PersistenceLDAP;
import opiam.admin.faare.service.UserContext;
import opiam.admin.faare.service.services.Service;

import org.apache.log4j.Logger;

import java.io.File;
import java.io.FileInputStream;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;


/**
 * This service has for objective to construct, from loaded values of directory,<br>
 * a list of predefined values for a field in a search.<br>
 * For example, we can construct a list of departments from the effectively
 * present departments in directory.
 * This service can be used in a transparent way in JSP pages by the tag
 * <i>reflist</i> of the taglib of the FAARE.
 *
 */
public final class ReferenceService extends Service
{
    /** Utility class. */
    private ReferenceService()
    {
    }

    /** Configuration file of the reference service. */
    public static final String REFERENCE_LISTS_XML_FILE = "/config/service/references/references_conf.xml";

    /** Instance of the logger. */
    private static Logger _logger = Logger.getLogger(ReferenceService.class);

    /** Instance of the service. */
    private static ReferenceService _instance = new ReferenceService();

    /** key = name of the ReferenceList, value = object of the ReferenceList type. */
    private static Map _appliRefMap = new HashMap();

    /** Set of the references. */
    private static JBReferenceMap _jbReferenceMap;

    /**
     * Initialization method of the service.
     *
     * @param directory Configuration directory or null if it is in CLASSPATH
     * @throws ServiceException  if an error occurs.
     */
    public static void initialize(String directory) throws ServiceException
    {
        //DW/2655/BeginPatch
        //ReferenceService.setServiceEnabled(true);
        _instance.setServiceEnabled(true);
        //DW/2655/EndPatch


        try
        {
            // Chargement de l'objet jbReferenceMap 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -