You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2014/11/24 12:16:06 UTC

[5/6] directory-fortress-enmasse git commit: The AbstractImpl class has been renamed

The AbstractImpl class has been renamed

Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/commit/5f2368ea
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/tree/5f2368ea
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/diff/5f2368ea

Branch: refs/heads/master
Commit: 5f2368eaa6a15b5b5af709e7fcb01c9dbd88937e
Parents: f88d1ab
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Sat Nov 22 11:04:18 2014 +0100
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Sat Nov 22 11:04:18 2014 +0100

----------------------------------------------------------------------
 .../directory/fortress/rest/AbstractImpl.java   | 62 --------------------
 1 file changed, 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse/blob/5f2368ea/src/main/java/org/apache/directory/fortress/rest/AbstractImpl.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/rest/AbstractImpl.java b/src/main/java/org/apache/directory/fortress/rest/AbstractImpl.java
deleted file mode 100644
index 90f06d2..0000000
--- a/src/main/java/org/apache/directory/fortress/rest/AbstractImpl.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- *   Licensed to the Apache Software Foundation (ASF) under one
- *   or more contributor license agreements.  See the NOTICE file
- *   distributed with this work for additional information
- *   regarding copyright ownership.  The ASF licenses this file
- *   to you 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.
- *
- */
-package org.apache.directory.fortress.rest;
-
-import org.apache.log4j.Logger;
-import org.apache.directory.fortress.core.GlobalErrIds;
-import org.apache.directory.fortress.core.SecurityException;
-import org.apache.directory.fortress.core.rest.FortResponse;
-
-/**
- * An abstract class containing some methods shared by all the implementations.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
-
- */
-abstract class AbstractImpl
-{
-    /**
-     * Create an error message and log it.
-     * 
-     * @param response The {@link FortResponse} instance in which we will store the error message and ID
-     * @param LOG The Logger
-     * @param se The exception
-     */
-    protected void createError( FortResponse response, Logger LOG, SecurityException se )
-    {
-        LOG.info( "Caught " + se );
-        response.setErrorCode( se.getErrorId() );
-        response.setErrorMessage( se.getMessage() );
-    }
-    
-    
-    /**
-     * Creates a {@link FortResponse} instance where the error code is set with a default value.
-     * 
-     * @return The created instancd
-     */
-    protected FortResponse createResponse()
-    {
-        FortResponse response = new FortResponse();
-        response.setErrorCode( GlobalErrIds.NO_ERROR );
-
-        return response;
-    }
-}