Some refactoring, moving the methods from classification API to security groups API where they should have been from the start. Trying to make the old classes behave, changing their names.

This commit is contained in:
Oana Nechiforescu
2017-04-09 11:52:58 +03:00
parent c86aecb1be
commit 23516599ce
2 changed files with 5 additions and 5 deletions

View File

@@ -58,10 +58,10 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
public abstract class BaseApi public abstract class Base
{ {
// logger // logger
private static final Logger LOGGER = LoggerFactory.getLogger(BaseApi.class); private static final Logger LOGGER = LoggerFactory.getLogger(Base.class);
/** exception key in JSON response body */ /** exception key in JSON response body */
private static final String EXCEPTION_KEY = "exception"; private static final String EXCEPTION_KEY = "exception";

View File

@@ -24,7 +24,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L% * #L%
*/ */
package org.alfresco.rest.core.oldAPI; package org.alfresco.rest.oldAPI;
import java.text.MessageFormat; import java.text.MessageFormat;
import java.util.ArrayList; import java.util.ArrayList;
@@ -32,7 +32,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import org.alfresco.dataprep.AlfrescoHttpClientFactory; import org.alfresco.dataprep.AlfrescoHttpClientFactory;
import org.alfresco.rest.core.oldAPI.BaseApi; import org.alfresco.rest.core.oldAPI.Base;
import org.apache.http.NameValuePair; import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.client.utils.URLEncodedUtils;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
@@ -46,7 +46,7 @@ import org.springframework.stereotype.Component;
* @since 2.5 * @since 2.5
*/ */
@Component @Component
public class SearchApi extends BaseApi public class Search extends Base
{ {
/** http client factory */ /** http client factory */
@Autowired private AlfrescoHttpClientFactory alfrescoHttpClientFactory; @Autowired private AlfrescoHttpClientFactory alfrescoHttpClientFactory;