mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Additional re-factoring.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user