COR•REC Service_1

package com.corgroup.bmp.osgi.service;

import java.util.Map;

import org.osgi.framework.BundleContext;

    public class CorrecService_I implements Comparable{

//collaborate actions
    public static final int ACTIONS = 0;
    public static final int CREATE = 1;
    public static final int GET = 2;
    public static final int SELECT = 3;
    public static final int ADD_COMPOSITE = 4;
    public static final int ALTER = 5;
    public static final int COUNT = 6;
    public static final int MEMBER = 7;
    public static final int FETCH = 8;
    public static final int SAVE = 9;
    public static final int CONTROLS = 10;
    public static final int CONTROL = 11;
    public static final int DISPOSE = 12;
    public static final int INCREASE = 13;
    public static final int DECREASE = 14;

//collaborate map keys     public static final String SERVICE = "service";
    public static final String SERVICE_DATA = "service_data";
    public static final String CONSUMER = "consumer";
    public static final String OGCN = "ogcn";
    public static final String KEY = "key";
    public static final String ID = "id";
    public static final String ATTRIBUTES = "attributes";
    public static final String INTEGER = "integer";
    public static final String BOOLEAN = "boolean";
    public static final String LONG = "long";
    public static final String STRING = "string";
    public static final String STRING_ARRAY = "string_array";
    public static final String COMPOSITE = "composite";
    public static final String COMBO = "combo";
    public static final String SERV_LISTENER = "servListener";
    public static final String FIELDS = "fields";
    public static final String HR_NAME = "hr_name";

    /**
     * This is not required.
     * Extended feature for plugins that have obtained
     * access to the COR•REC Platform ObjectGraph.
     */

    public boolean isOGcompatible();
    /**
     * BundleContext supplied at instantiation
     */

    public BundleContext getBundleContext();
    public Object collaborate(Integer action, Map map);
    /**
     * A convenience method when a service needs to
     * keep track of the consumers it is servicing
     */

    public void registerConsumer(Object consumer);
    public void disposeConsumer(Object consumer);
    public boolean isServiceCompleted();
    public void setServiceComplete(boolean b);
    /**
     * must be unique to each services
     * @return
     */

    public String getID();
    /**
     * Default is all plugin modules may request access
     * to this service. Otherwise it should contain the
     * fully qualified names plugins that may request access.
     */

    public String[] getTargets();
    /**
     * String supplied at instantiation
     */

    public String getName();
    /**
     * prevent or allow continued access during this session
     */

    public Boolean isAvailable();
}
© CORGROUP® LLC 2025 All rights reserved