mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed version number in some java and js files
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,7 +28,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Generic class for any runtime exception to do with classified records.
|
* Generic class for any runtime exception to do with classified records.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationException extends AlfrescoRuntimeException
|
public class ClassificationException extends AlfrescoRuntimeException
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
* This class is a POJO data type for a Classification Level.
|
* This class is a POJO data type for a Classification Level.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public final class ClassificationLevel implements ClassificationSchemeEntity
|
public final class ClassificationLevel implements ClassificationSchemeEntity
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,7 @@ import java.util.Comparator;
|
|||||||
* A class to compare classification levels. More secure classification levels are "higher" than less secure levels.
|
* A class to compare classification levels. More secure classification levels are "higher" than less secure levels.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelComparator implements Comparator<ClassificationLevel>
|
public class ClassificationLevelComparator implements Comparator<ClassificationLevel>
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
* This class is a POJO data type for a classification reason.
|
* This class is a POJO data type for a classification reason.
|
||||||
*
|
*
|
||||||
* @author Tom Page
|
* @author Tom Page
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public final class ClassificationReason implements ClassificationSchemeEntity
|
public final class ClassificationReason implements ClassificationSchemeEntity
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,7 @@ import java.io.Serializable;
|
|||||||
* Marker interface for classes that contain basic information about the classification scheme.
|
* Marker interface for classes that contain basic information about the classification scheme.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface ClassificationSchemeEntity extends Serializable
|
public interface ClassificationSchemeEntity extends Serializable
|
||||||
{
|
{
|
||||||
|
@@ -25,7 +25,7 @@ import org.json.JSONObject;
|
|||||||
* Factory to create classification entities from JSON objects.
|
* Factory to create classification entities from JSON objects.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeEntityFactory
|
public class ClassificationSchemeEntityFactory
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationE
|
|||||||
* clearance.
|
* clearance.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface ClassificationSchemeService
|
public interface ClassificationSchemeService
|
||||||
{
|
{
|
||||||
|
@@ -36,7 +36,7 @@ import org.alfresco.util.ParameterCheck;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeServiceImpl extends ServiceBaseImpl implements ClassificationSchemeService,
|
public class ClassificationSchemeServiceImpl extends ServiceBaseImpl implements ClassificationSchemeService,
|
||||||
ClassifiedContentModel
|
ClassifiedContentModel
|
||||||
|
@@ -43,7 +43,7 @@ import org.springframework.extensions.surf.util.AbstractLifecycleBean;
|
|||||||
* This class is responsible for initialising any Classification-specific data on server bootstrap.
|
* This class is responsible for initialising any Classification-specific data on server bootstrap.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationServiceBootstrap extends AbstractLifecycleBean implements ClassifiedContentModel
|
public class ClassificationServiceBootstrap extends AbstractLifecycleBean implements ClassifiedContentModel
|
||||||
{
|
{
|
||||||
|
@@ -38,7 +38,7 @@ import org.json.JSONTokener;
|
|||||||
* and classification reasons, dealing with JSON schema as part of that.
|
* and classification reasons, dealing with JSON schema as part of that.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
class ClassificationServiceDAO
|
class ClassificationServiceDAO
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* A service to handle the classification of content.
|
* A service to handle the classification of content.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface ContentClassificationService
|
public interface ContentClassificationService
|
||||||
{
|
{
|
||||||
|
@@ -45,7 +45,7 @@ import org.alfresco.service.namespace.QName;
|
|||||||
* A service to handle the classification of content.
|
* A service to handle the classification of content.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ContentClassificationServiceImpl extends ServiceBaseImpl
|
public class ContentClassificationServiceImpl extends ServiceBaseImpl
|
||||||
implements ContentClassificationService, ClassifiedContentModel
|
implements ContentClassificationService, ClassifiedContentModel
|
||||||
|
@@ -28,7 +28,7 @@ import org.springframework.extensions.surf.util.I18NUtil;
|
|||||||
* declassified.
|
* declassified.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public final class ExemptionCategory implements ClassificationSchemeEntity
|
public final class ExemptionCategory implements ClassificationSchemeEntity
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationE
|
|||||||
* Container for the configured {@link ExemptionCategory} objects.
|
* Container for the configured {@link ExemptionCategory} objects.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExemptionCategoryManager
|
public class ExemptionCategoryManager
|
||||||
{
|
{
|
||||||
|
@@ -27,7 +27,7 @@ import org.alfresco.service.cmr.security.PersonService.PersonInfo;
|
|||||||
* A simple data type for a single user's security clearance.
|
* A simple data type for a single user's security clearance.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public final class SecurityClearance implements Serializable
|
public final class SecurityClearance implements Serializable
|
||||||
{
|
{
|
||||||
|
@@ -28,7 +28,7 @@ import org.alfresco.service.cmr.security.NoSuchPersonException;
|
|||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface SecurityClearanceService
|
public interface SecurityClearanceService
|
||||||
{
|
{
|
||||||
|
@@ -40,7 +40,7 @@ import org.alfresco.util.ParameterCheck;
|
|||||||
/**
|
/**
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements SecurityClearanceService
|
public class SecurityClearanceServiceImpl extends ServiceBaseImpl implements SecurityClearanceService
|
||||||
{
|
{
|
||||||
|
@@ -35,7 +35,7 @@ import org.alfresco.util.ParameterCheck;
|
|||||||
* Configurable options to be used when querying for users by {@link SecurityClearance}.
|
* Configurable options to be used when querying for users by {@link SecurityClearance}.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public final class UserQueryParams
|
public final class UserQueryParams
|
||||||
{
|
{
|
||||||
|
@@ -33,7 +33,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
|||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationMethodInterceptor implements MethodInterceptor
|
public class ClassificationMethodInterceptor implements MethodInterceptor
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,7 @@ import org.alfresco.error.AlfrescoRuntimeException;
|
|||||||
* Access denied exception thrown when a user tries to execute a method call on an uncleared node.
|
* Access denied exception thrown when a user tries to execute a method call on an uncleared node.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class AccessDeniedException extends AlfrescoRuntimeException
|
public class AccessDeniedException extends AlfrescoRuntimeException
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* Array Post Method Invocation Processor
|
* Array Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class ArrayPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class ArrayPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -26,7 +26,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* AssociationRef Post Method Invocation Processor
|
* AssociationRef Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class AssociationRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class AssociationRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -33,7 +33,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
* Base class for post method invocation processors
|
* Base class for post method invocation processors
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public abstract class BasePostMethodInvocationProcessor
|
public abstract class BasePostMethodInvocationProcessor
|
||||||
{
|
{
|
||||||
@@ -56,7 +56,7 @@ public abstract class BasePostMethodInvocationProcessor
|
|||||||
/** Post method invocation processor */
|
/** Post method invocation processor */
|
||||||
@Autowired
|
@Autowired
|
||||||
private PostMethodInvocationProcessor postMethodInvocationProcessor;
|
private PostMethodInvocationProcessor postMethodInvocationProcessor;
|
||||||
|
|
||||||
/** Pre method invocation processor */
|
/** Pre method invocation processor */
|
||||||
@Autowired
|
@Autowired
|
||||||
private PreMethodInvocationProcessor preMethodInvocationProcessor;
|
private PreMethodInvocationProcessor preMethodInvocationProcessor;
|
||||||
@@ -138,7 +138,7 @@ public abstract class BasePostMethodInvocationProcessor
|
|||||||
NodeRef filter = nodeRef;
|
NodeRef filter = nodeRef;
|
||||||
|
|
||||||
// disable pre-method invocation processor
|
// disable pre-method invocation processor
|
||||||
preMethodInvocationProcessor.disable();
|
preMethodInvocationProcessor.disable();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (getNodeService().exists(nodeRef) &&
|
if (getNodeService().exists(nodeRef) &&
|
||||||
|
@@ -26,7 +26,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* ChildAssociationRef Post Method Invocation Processor
|
* ChildAssociationRef Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class ChildAssociationRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class ChildAssociationRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -27,7 +27,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* Collection Post Method Invocation Processor.
|
* Collection Post Method Invocation Processor.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* NodeRef Post Method Invocation Processor
|
* NodeRef Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class NodeRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class NodeRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -28,7 +28,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* PagingResults Post Method Invocation Processor
|
* PagingResults Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -26,7 +26,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* Permission Check Value Post Method Invocation Processor
|
* Permission Check Value Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class PermissionCheckValuePostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class PermissionCheckValuePostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -30,7 +30,7 @@ import java.util.Set;
|
|||||||
* Registry for post method invocation processors
|
* Registry for post method invocation processors
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class PostMethodInvocationProcessor
|
public class PostMethodInvocationProcessor
|
||||||
{
|
{
|
||||||
|
@@ -45,7 +45,7 @@ import org.springframework.context.ApplicationContextAware;
|
|||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class PreMethodInvocationProcessor implements ApplicationContextAware
|
public class PreMethodInvocationProcessor implements ApplicationContextAware
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* A post method invocation processor for {@link QueryEngineResults}.
|
* A post method invocation processor for {@link QueryEngineResults}.
|
||||||
*
|
*
|
||||||
* @author Tom Page
|
* @author Tom Page
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class QueryEngineResultsPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class QueryEngineResultsPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -36,7 +36,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* ResultSet Post Method Invocation Processor
|
* ResultSet Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class ResultSetPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class ResultSetPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -26,7 +26,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* StoreRef Post Method Invocation Processor
|
* StoreRef Post Method Invocation Processor
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class StoreRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
public class StoreRefPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor
|
||||||
|
@@ -28,7 +28,7 @@ import org.alfresco.service.namespace.QName;
|
|||||||
* Helper containing reusable information about the classified content model.
|
* Helper containing reusable information about the classified content model.
|
||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface ClassifiedContentModel
|
public interface ClassifiedContentModel
|
||||||
{
|
{
|
||||||
|
@@ -27,6 +27,6 @@
|
|||||||
* {@link org.alfresco.module.org_alfresco_module_rm.classification.SecurityClearanceService} which deals
|
* {@link org.alfresco.module.org_alfresco_module_rm.classification.SecurityClearanceService} which deals
|
||||||
* wth users and their clearances.
|
* wth users and their clearances.
|
||||||
*
|
*
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
package org.alfresco.module.org_alfresco_module_rm.classification;
|
package org.alfresco.module.org_alfresco_module_rm.classification;
|
||||||
|
@@ -27,7 +27,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationL
|
|||||||
* Validator for the fields in {@link ClassificationLevel}.
|
* Validator for the fields in {@link ClassificationLevel}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelFieldsValidator implements EntityFieldsValidator<ClassificationLevel>
|
public class ClassificationLevelFieldsValidator implements EntityFieldsValidator<ClassificationLevel>
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationL
|
|||||||
* A validator that checks that the reserved symbol "U" is not configured as a classification level.
|
* A validator that checks that the reserved symbol "U" is not configured as a classification level.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelIsNotUnclassifiedValidator implements FieldValidator<String>
|
public class ClassificationLevelIsNotUnclassifiedValidator implements FieldValidator<String>
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationR
|
|||||||
* Validator for the fields in {@link ClassificationReason}.
|
* Validator for the fields in {@link ClassificationReason}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationReasonFieldsValidator implements EntityFieldsValidator<ClassificationReason>
|
public class ClassificationReasonFieldsValidator implements EntityFieldsValidator<ClassificationReason>
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationS
|
|||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeEntityValidator<T extends ClassificationSchemeEntity>
|
public class ClassificationSchemeEntityValidator<T extends ClassificationSchemeEntity>
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationS
|
|||||||
* A validator for all the fields of a classification POJO.
|
* A validator for all the fields of a classification POJO.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface EntityFieldsValidator<T extends ClassificationSchemeEntity>
|
public interface EntityFieldsValidator<T extends ClassificationSchemeEntity>
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ExemptionCatego
|
|||||||
* Validator for the fields in {@link ExemptionCategory}.
|
* Validator for the fields in {@link ExemptionCategory}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExemptionCategoryFieldsValidator implements EntityFieldsValidator<ExemptionCategory>
|
public class ExemptionCategoryFieldsValidator implements EntityFieldsValidator<ExemptionCategory>
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationE
|
|||||||
* Validate a field.
|
* Validate a field.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public interface FieldValidator<T>
|
public interface FieldValidator<T>
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationL
|
|||||||
* Check that a field is suitable to be used as part of a filename.
|
* Check that a field is suitable to be used as part of a filename.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class FilenameFieldValidator implements FieldValidator<String>
|
public class FilenameFieldValidator implements FieldValidator<String>
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationE
|
|||||||
* Validate the length of a field.
|
* Validate the length of a field.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class LengthFieldValidator implements FieldValidator<String>
|
public class LengthFieldValidator implements FieldValidator<String>
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
* Validator that fails if the first character of a field is non-alphanumeric.
|
* Validator that fails if the first character of a field is non-alphanumeric.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class StartCharacterFieldValidator implements FieldValidator<String>
|
public class StartCharacterFieldValidator implements FieldValidator<String>
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* Implementation for Java backed webscript to get the classification levels.
|
* Implementation for Java backed webscript to get the classification levels.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelsGet extends AbstractRmWebScript
|
public class ClassificationLevelsGet extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -41,7 +41,7 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* Base class for classify content actions
|
* Base class for classify content actions
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public abstract class ClassifyContentBase extends AbstractRmWebScript
|
public abstract class ClassifyContentBase extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Implementation for Java backed webscript to classify a content.
|
* Implementation for Java backed webscript to classify a content.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassifyContentPost extends ClassifyContentBase
|
public class ClassifyContentPost extends ClassifyContentBase
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Implementation for Java backed webscript to edit a classified content.
|
* Implementation for Java backed webscript to edit a classified content.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassifyContentPut extends ClassifyContentBase
|
public class ClassifyContentPut extends ClassifyContentBase
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import java.util.Map;
|
|||||||
* Implementation for Java backed webscript to get the clearance levels.
|
* Implementation for Java backed webscript to get the clearance levels.
|
||||||
*
|
*
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClearanceLevelsGet extends AbstractRmWebScript
|
public class ClearanceLevelsGet extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* Implementation for Java backed webscript to get the exemption categories.
|
* Implementation for Java backed webscript to get the exemption categories.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExemptionCategoriesGet extends AbstractRmWebScript
|
public class ExemptionCategoriesGet extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* Implementation for Java backed webscript to get the classification reasons.
|
* Implementation for Java backed webscript to get the classification reasons.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ReasonsGet extends AbstractRmWebScript
|
public class ReasonsGet extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -43,7 +43,7 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
|
|||||||
* Implementation for Java backed webscript to get users security clearance.
|
* Implementation for Java backed webscript to get users security clearance.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class UserSecurityClearanceGet extends AbstractRmWebScript
|
public class UserSecurityClearanceGet extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -35,7 +35,7 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @author Tom Page
|
* @author Tom Page
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class UserSecurityClearancePut extends AbstractRmWebScript
|
public class UserSecurityClearancePut extends AbstractRmWebScript
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ import java.util.Set;
|
|||||||
* small collections as it has not been optimised for dealing with large collections.
|
* small collections as it has not been optimised for dealing with large collections.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
// This class should all be moved to core Alfresco whenever possible and reused from there.
|
// This class should all be moved to core Alfresco whenever possible and reused from there.
|
||||||
public final class RMCollectionUtils
|
public final class RMCollectionUtils
|
||||||
|
@@ -36,7 +36,7 @@ import com.google.gson.Gson;
|
|||||||
* Classification reasons property decorator
|
* Classification reasons property decorator
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationReasonsPropertyDecorator extends BasePropertyDecorator
|
public class ClassificationReasonsPropertyDecorator extends BasePropertyDecorator
|
||||||
{
|
{
|
||||||
|
@@ -32,7 +32,7 @@ import org.json.simple.JSONObject;
|
|||||||
* Current classification property decorator
|
* Current classification property decorator
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class CurrentClassificationPropertyDecorator extends BasePropertyDecorator
|
public class CurrentClassificationPropertyDecorator extends BasePropertyDecorator
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ import org.alfresco.module.org_alfresco_module_rm.test.util.BaseRMTestCase;
|
|||||||
* Classification level integration test
|
* Classification level integration test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelsTest extends BaseRMTestCase
|
public class ClassificationLevelsTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ import org.alfresco.module.org_alfresco_module_rm.test.util.BaseRMTestCase;
|
|||||||
* Tests of classification reason handling.
|
* Tests of classification reason handling.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationReasonsTest extends BaseRMTestCase
|
public class ClassificationReasonsTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -34,7 +34,7 @@ import com.google.common.collect.Sets;
|
|||||||
* Classification level integration test
|
* Classification level integration test
|
||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassifyTest extends BaseRMTestCase
|
public class ClassifyTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ import org.springframework.context.ApplicationEvent;
|
|||||||
* Tests of exemption category loading.
|
* Tests of exemption category loading.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExemptionCategoriesTest extends BaseRMTestCase
|
public class ExemptionCategoriesTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Base class for classification enforcement tests for the browse action
|
* Base class for classification enforcement tests for the browse action
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public abstract class BrowseClassificationEnforcementTestBase extends BaseRMTestCase
|
public abstract class BrowseClassificationEnforcementTestBase extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -35,7 +35,7 @@ import org.alfresco.service.namespace.QName;
|
|||||||
* Classification enforcement pre method invocation test
|
* Classification enforcement pre method invocation test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationEnforcementPreMethodInvocationTest extends BaseRMTestCase
|
public class ClassificationEnforcementPreMethodInvocationTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -32,7 +32,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Tests for enforcement of classification when browsing documents in the document library
|
* Tests for enforcement of classification when browsing documents in the document library
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class DocumentBrowseClassificationEnforcementTest extends BrowseClassificationEnforcementTestBase
|
public class DocumentBrowseClassificationEnforcementTest extends BrowseClassificationEnforcementTestBase
|
||||||
{
|
{
|
||||||
|
@@ -34,7 +34,7 @@ import org.alfresco.service.cmr.search.SearchParameters;
|
|||||||
* Tests for enforcement of classification when searching documents in the document library
|
* Tests for enforcement of classification when searching documents in the document library
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class DocumentSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
public class DocumentSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
||||||
{
|
{
|
||||||
|
@@ -32,7 +32,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Enforcement of classification when browsing records in the file plan
|
* Enforcement of classification when browsing records in the file plan
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class RecordBrowseClassificationEnforcementTest extends BrowseClassificationEnforcementTestBase
|
public class RecordBrowseClassificationEnforcementTest extends BrowseClassificationEnforcementTestBase
|
||||||
{
|
{
|
||||||
|
@@ -33,7 +33,7 @@ import org.alfresco.util.Pair;
|
|||||||
* Enforcement of classification when searching records in the file plan
|
* Enforcement of classification when searching records in the file plan
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class RecordSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
public class RecordSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
||||||
{
|
{
|
||||||
|
@@ -35,7 +35,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Enforcement of classification for records with relationship
|
* Enforcement of classification for records with relationship
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class RelationshipClassificationEnforcementTest extends BaseRMTestCase
|
public class RelationshipClassificationEnforcementTest extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -38,7 +38,7 @@ import org.json.JSONObject;
|
|||||||
* Integration test for saved searches with classification enforcement
|
* Integration test for saved searches with classification enforcement
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class SavedSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
public class SavedSearchClassificationEnforcementTest extends SearchClassificationEnforcementTestBase
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Base class for classification enforcement tests for the search action
|
* Base class for classification enforcement tests for the search action
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public abstract class SearchClassificationEnforcementTestBase extends BaseRMTestCase
|
public abstract class SearchClassificationEnforcementTestBase extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
|||||||
* Integration test for RM-2260
|
* Integration test for RM-2260
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class RM2260Test extends BaseRMTestCase
|
public class RM2260Test extends BaseRMTestCase
|
||||||
{
|
{
|
||||||
|
@@ -33,7 +33,7 @@ import org.mockito.Mock;
|
|||||||
* Unit tests for the {@link ClassificationSchemeEntityFactory}.
|
* Unit tests for the {@link ClassificationSchemeEntityFactory}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeEntityFactoryUnitTest
|
public class ClassificationSchemeEntityFactoryUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -45,7 +45,7 @@ import org.mockito.MockitoAnnotations;
|
|||||||
* Unit tests for {@link ClassificationSchemeServiceImpl}.
|
* Unit tests for {@link ClassificationSchemeServiceImpl}.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeServiceImplUnitTest
|
public class ClassificationSchemeServiceImplUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -32,7 +32,7 @@ import org.junit.Test;
|
|||||||
* Unit tests for {@link ClassificationServiceDAO}.
|
* Unit tests for {@link ClassificationServiceDAO}.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationServiceDAOUnitTest
|
public class ClassificationServiceDAOUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -64,7 +64,7 @@ import com.google.common.collect.Sets;
|
|||||||
* Unit tests for {@link ContentClassificationServiceImpl}.
|
* Unit tests for {@link ContentClassificationServiceImpl}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ContentClassificationServiceImplUnitTest implements ClassifiedContentModel
|
public class ContentClassificationServiceImplUnitTest implements ClassifiedContentModel
|
||||||
{
|
{
|
||||||
|
@@ -53,7 +53,7 @@ import com.google.common.collect.ImmutableList;
|
|||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class SecurityClearanceServiceImplUnitTest
|
public class SecurityClearanceServiceImplUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ import org.junit.Test;
|
|||||||
* Unit tests for the {@link UserQueryParams}.
|
* Unit tests for the {@link UserQueryParams}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class UserQueryParamsUnitTest
|
public class UserQueryParamsUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -37,7 +37,7 @@ import org.mockito.Mock;
|
|||||||
* Array Post Method Invocation Processor Unit Test
|
* Array Post Method Invocation Processor Unit Test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ArrayPostMethodInvocationProcessorUnitTest
|
public class ArrayPostMethodInvocationProcessorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -46,7 +46,7 @@ import org.mockito.Mock;
|
|||||||
* Unit tests for the {@link CollectionPostMethodInvocationProcessor}.
|
* Unit tests for the {@link CollectionPostMethodInvocationProcessor}.
|
||||||
*
|
*
|
||||||
* @author Tom Page
|
* @author Tom Page
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class CollectionPostMethodInvocationProcessorUnitTest
|
public class CollectionPostMethodInvocationProcessorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -33,7 +33,7 @@ import org.mockito.Mock;
|
|||||||
* NodeRef Post Method Invocation Processor Unit Test
|
* NodeRef Post Method Invocation Processor Unit Test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class NodeRefPostMethodInvocationProcessorUnitTest extends BaseUnitTest
|
public class NodeRefPostMethodInvocationProcessorUnitTest extends BaseUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -41,7 +41,7 @@ import com.google.common.collect.Sets;
|
|||||||
* Unit tests for {@link QueryEngineResultPostMethodInvocationProcessor}.
|
* Unit tests for {@link QueryEngineResultPostMethodInvocationProcessor}.
|
||||||
*
|
*
|
||||||
* @author Tom Page
|
* @author Tom Page
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class QueryEngineResultsPostMethodInvocationProcessorUnitTest
|
public class QueryEngineResultsPostMethodInvocationProcessorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -40,7 +40,7 @@ import org.mockito.Mock;
|
|||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationSchemeEntityValidatorUnitTest
|
public class ClassificationSchemeEntityValidatorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.junit.Test;
|
|||||||
* Unit tests for the {@link ExemptionCategoryFieldsValidator}.
|
* Unit tests for the {@link ExemptionCategoryFieldsValidator}.
|
||||||
*
|
*
|
||||||
* @author Oana Nechiforescu
|
* @author Oana Nechiforescu
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExemptionCategoryFieldsValidatorUnitTest
|
public class ExemptionCategoryFieldsValidatorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ import org.junit.Test;
|
|||||||
* Unit tests for the {@link LengthFieldValidator}.
|
* Unit tests for the {@link LengthFieldValidator}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class LengthFieldValidatorUnitTest
|
public class LengthFieldValidatorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -25,7 +25,7 @@ import org.junit.Test;
|
|||||||
* Unit tests for the {@link StartCharacterFieldValidator}.
|
* Unit tests for the {@link StartCharacterFieldValidator}.
|
||||||
*
|
*
|
||||||
* @author tpage
|
* @author tpage
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class StartCharacterFieldValidatorUnitTest
|
public class StartCharacterFieldValidatorUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -44,7 +44,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||||||
* Tests for the get classification levels API.
|
* Tests for the get classification levels API.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassificationLevelsGetUnitTest extends BaseWebScriptUnitTest
|
public class ClassificationLevelsGetUnitTest extends BaseWebScriptUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ import org.springframework.extensions.webscripts.WebScriptException;
|
|||||||
* Classify content REST API POST implementation unit test.
|
* Classify content REST API POST implementation unit test.
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClassifyContentPostUnitTest extends BaseWebScriptUnitTest
|
public class ClassifyContentPostUnitTest extends BaseWebScriptUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -44,7 +44,7 @@ import static org.mockito.Mockito.doReturn;
|
|||||||
* Tests for the get clearance levels API.
|
* Tests for the get clearance levels API.
|
||||||
*
|
*
|
||||||
* @author David Webster
|
* @author David Webster
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ClearanceLevelsGetUnitTest extends BaseWebScriptUnitTest
|
public class ClearanceLevelsGetUnitTest extends BaseWebScriptUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
|||||||
* Test for get user security clearance API
|
* Test for get user security clearance API
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class UserSecurityClearanceGetUnitTest extends BaseWebScriptUnitTest
|
public class UserSecurityClearanceGetUnitTest extends BaseWebScriptUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -33,11 +33,11 @@ import org.alfresco.util.GUID;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Utilities helpful when mocking Alfresco constructs.
|
* Utilities helpful when mocking Alfresco constructs.
|
||||||
*
|
*
|
||||||
* @author Roy Wetherall
|
* @author Roy Wetherall
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class AlfMock
|
public class AlfMock
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Helper to generate random text value suitable for a property
|
* Helper to generate random text value suitable for a property
|
||||||
@@ -55,7 +55,7 @@ public class AlfMock
|
|||||||
{
|
{
|
||||||
return generateQName(GUID.generate());
|
return generateQName(GUID.generate());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to generate a qname.
|
* Helper method to generate a qname.
|
||||||
*/
|
*/
|
||||||
@@ -63,7 +63,7 @@ public class AlfMock
|
|||||||
{
|
{
|
||||||
return QName.createQName(uri, GUID.generate());
|
return QName.createQName(uri, GUID.generate());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to generate a node reference.
|
* Helper method to generate a node reference.
|
||||||
*
|
*
|
||||||
|
@@ -24,8 +24,8 @@ import java.util.function.Supplier;
|
|||||||
/**
|
/**
|
||||||
* Utility class to help with Java exceptions, particularly in test code.
|
* Utility class to help with Java exceptions, particularly in test code.
|
||||||
*
|
*
|
||||||
* @since 3.0
|
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExceptionUtils
|
public class ExceptionUtils
|
||||||
{
|
{
|
||||||
@@ -34,7 +34,7 @@ public class ExceptionUtils
|
|||||||
{
|
{
|
||||||
/** serial version uid */
|
/** serial version uid */
|
||||||
private static final long serialVersionUID = 3900164716673246207L;
|
private static final long serialVersionUID = 3900164716673246207L;
|
||||||
|
|
||||||
private final Class<? extends Throwable> expected;
|
private final Class<? extends Throwable> expected;
|
||||||
private final Throwable actual;
|
private final Throwable actual;
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ public class ExceptionUtils
|
|||||||
{
|
{
|
||||||
/** serial version uid */
|
/** serial version uid */
|
||||||
private static final long serialVersionUID = -988022536370047222L;
|
private static final long serialVersionUID = -988022536370047222L;
|
||||||
|
|
||||||
private final Class<? extends Throwable> expected;
|
private final Class<? extends Throwable> expected;
|
||||||
|
|
||||||
public MissingThrowableException(Class<? extends Throwable> expected)
|
public MissingThrowableException(Class<? extends Throwable> expected)
|
||||||
|
@@ -30,8 +30,8 @@ import static org.junit.Assert.*;
|
|||||||
/**
|
/**
|
||||||
* Unit tests showing usage of {@link ExceptionUtils}.
|
* Unit tests showing usage of {@link ExceptionUtils}.
|
||||||
*
|
*
|
||||||
* @since 3.0
|
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class ExceptionUtilsUsageExamplesUnitTest
|
public class ExceptionUtilsUsageExamplesUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -34,9 +34,9 @@ import java.util.Map;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for {@link RMCollectionUtils}.
|
* Unit tests for {@link RMCollectionUtils}.
|
||||||
*
|
*
|
||||||
* @author Neil Mc Erlean
|
* @author Neil Mc Erlean
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
public class RMCollectionUtilsUnitTest
|
public class RMCollectionUtilsUnitTest
|
||||||
{
|
{
|
||||||
|
@@ -45,7 +45,7 @@ import com.google.gson.JsonSyntaxException;
|
|||||||
* Classification reasons property decorator unit test
|
* Classification reasons property decorator unit test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class ClassificationReasonsPropertyDecoratorUnitTest
|
public class ClassificationReasonsPropertyDecoratorUnitTest
|
||||||
|
@@ -38,7 +38,7 @@ import org.mockito.runners.MockitoJUnitRunner;
|
|||||||
* Current classification property decorator unit test
|
* Current classification property decorator unit test
|
||||||
*
|
*
|
||||||
* @author Tuna Aksoy
|
* @author Tuna Aksoy
|
||||||
* @since 3.0
|
* @since 3.0.a
|
||||||
*/
|
*/
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class CurrentClassificationPropertyDecoratorUnitTest
|
public class CurrentClassificationPropertyDecoratorUnitTest
|
||||||
|
Reference in New Issue
Block a user