001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 * 
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 * 
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License.
018 * 
019 */
020package org.apache.directory.server.core.api;
021
022
023/**
024 * The list of mandatory interceptors we use in the server.
025 * 
026 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
027 */
028public enum InterceptorEnum
029{
030    ACI_AUTHORIZATION_INTERCEPTOR("aciAuthorizationInterceptor"),
031    ADMINISTRATIVE_POINT_INTERCEPTOR("administrativePointInterceptor"),
032    AUTHENTICATION_INTERCEPTOR("authenticationInterceptor"),
033    CHANGE_LOG_INTERCEPTOR("changeLogInterceptor"),
034    COLLECTIVE_ATTRIBUTE_INTERCEPTOR("collectiveAttributeInterceptor"),
035    DEFAULT_AUTHORIZATION_INTERCEPTOR("defaultAuthorizationInterceptor"),
036    EVENT_INTERCEPTOR("eventInterceptor"),
037    EXCEPTION_INTERCEPTOR("exceptionInterceptor"),
038    JOURNAL_INTERCEPTOR("journalInterceptor"),
039    NORMALIZATION_INTERCEPTOR("normalizationInterceptor"),
040    OPERATIONAL_ATTRIBUTE_INTERCEPTOR("operationalAttributeInterceptor"),
041    PASSWORD_POLICY_INTERCEPTOR("ppolicyInterceptor"),
042    REFERRAL_INTERCEPTOR("referralInterceptor"),
043    SCHEMA_INTERCEPTOR("schemaInterceptor"),
044    SUBENTRY_INTERCEPTOR("subentryInterceptor"),
045    TRIGGER_INTERCEPTOR("triggerInterceptor");
046
047    /** The associated interceptor name */
048    private String name;
049
050
051    /**
052     * The private constructor
053     * @param methodName The associated interceptor name
054     */
055    InterceptorEnum( String name )
056    {
057        this.name = name;
058    }
059
060
061    /**
062     * @return The associated interceptor name
063     */
064    public String getName()
065    {
066        return name;
067    }
068}