Additional re-factoring.

This commit is contained in:
Oana Nechiforescu
2017-04-12 16:07:42 +03:00
parent 004af33cdc
commit a24c4bb7df
6 changed files with 31 additions and 2 deletions

View File

@@ -61,6 +61,12 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* The base API class containing common methods for making v0 API requests
*
* @author Kristijan Conkas
* @since 2.5
*/
public abstract class BaseAPI
{
// logger
@@ -607,6 +613,4 @@ public abstract class BaseAPI
}
return getObjectByPath(username, password, itemPath) == null;
}
}

View File

@@ -57,6 +57,12 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
/**
* Methods to make API requests using v0 API on RM items (move, update and other actions) including adding users to RM roles
*
* @author Oana Nechiforescu
* @since 2.5
*/
@Component
public class RMRolesAndActionsAPI extends BaseAPI
{

View File

@@ -37,6 +37,12 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
/**
* Methods to make API requests using v0 API on record categories
*
* @author Oana Nechiforescu
* @since 2.5
*/
@Component
public class RecordCategoriesAPI extends BaseAPI
{

View File

@@ -35,6 +35,12 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Methods to make API requests using v0 API on records folders
*
* @author Oana Nechiforescu
* @since 2.5
*/
@Component
public class RecordFoldersAPI extends BaseAPI
{

View File

@@ -39,6 +39,12 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Methods to make API requests using v0 API on records
*
* @author Oana Nechiforescu
* @since 2.5
*/
@Component
public class RecordsAPI extends BaseAPI
{

View File

@@ -42,6 +42,7 @@ import org.springframework.stereotype.Component;
/**
* Helper methods for performing search using various Alfresco search APIs.
*
* @author Kristijan Conkas
* @since 2.5
*/