Fixed minor issues reported by sonar (Redundant Modifier)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63799 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-03-09 20:48:40 +00:00
parent e062a45a8e
commit dee5508911
21 changed files with 503 additions and 508 deletions

View File

@@ -23,17 +23,17 @@ import org.alfresco.service.namespace.QName;
/** /**
* RM 1.0 compatibility model * RM 1.0 compatibility model
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
public interface CompatibilityModel extends DOD5015Model public interface CompatibilityModel extends DOD5015Model
{ {
// Record series DOD type // Record series DOD type
public static final QName TYPE_RECORD_SERIES = QName.createQName(DOD_URI, "recordSeries"); static final QName TYPE_RECORD_SERIES = QName.createQName(DOD_URI, "recordSeries");
// V1.0 custom property aspect names // V1.0 custom property aspect names
public static final String NAME_CUSTOM_RECORD_PROPERTIES = "customRecordProperties"; static final String NAME_CUSTOM_RECORD_PROPERTIES = "customRecordProperties";
public static final String NAME_CUSTOM_RECORD_FOLDER_PROPERTIES = "customRecordFolderProperties"; static final String NAME_CUSTOM_RECORD_FOLDER_PROPERTIES = "customRecordFolderProperties";
public static final String NAME_CUSTOM_RECORD_CATEGORY_PROPERTIES = "customRecordCategoryProperties"; static final String NAME_CUSTOM_RECORD_CATEGORY_PROPERTIES = "customRecordCategoryProperties";
public static final String NAME_CUSTOM_RECORD_SERIES_PROPERTIES = "customRecordSeriesProperties"; static final String NAME_CUSTOM_RECORD_SERIES_PROPERTIES = "customRecordSeriesProperties";
} }

View File

@@ -28,53 +28,53 @@ import org.alfresco.service.namespace.QName;
/** /**
* Interface containing records management policies * Interface containing records management policies
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
public interface RecordsManagementPolicies public interface RecordsManagementPolicies
{ {
/** Policy names */ /** Policy names */
public static final QName BEFORE_RM_ACTION_EXECUTION = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRMActionExecution"); static final QName BEFORE_RM_ACTION_EXECUTION = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRMActionExecution");
public static final QName ON_RM_ACTION_EXECUTION = QName.createQName(NamespaceService.ALFRESCO_URI, "onRMActionExecution"); static final QName ON_RM_ACTION_EXECUTION = QName.createQName(NamespaceService.ALFRESCO_URI, "onRMActionExecution");
public static final QName BEFORE_CREATE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeCreateReference"); static final QName BEFORE_CREATE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeCreateReference");
public static final QName ON_CREATE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateReference"); static final QName ON_CREATE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "onCreateReference");
public static final QName BEFORE_REMOVE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRemoveReference"); static final QName BEFORE_REMOVE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRemoveReference");
public static final QName ON_REMOVE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "onRemoveReference"); static final QName ON_REMOVE_REFERENCE = QName.createQName(NamespaceService.ALFRESCO_URI, "onRemoveReference");
/** Before records management action execution */ /** Before records management action execution */
public interface BeforeRMActionExecution extends ClassPolicy public interface BeforeRMActionExecution extends ClassPolicy
{ {
public void beforeRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters); void beforeRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters);
} }
/** On records management action execution */ /** On records management action execution */
public interface OnRMActionExecution extends ClassPolicy public interface OnRMActionExecution extends ClassPolicy
{ {
public void onRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters); void onRMActionExecution(NodeRef nodeRef, String name, Map<String, Serializable> parameters);
} }
/** Before creation of reference */ /** Before creation of reference */
public interface BeforeCreateReference extends ClassPolicy public interface BeforeCreateReference extends ClassPolicy
{ {
public void beforeCreateReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference); void beforeCreateReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference);
} }
/** On creation of reference */ /** On creation of reference */
public interface OnCreateReference extends ClassPolicy public interface OnCreateReference extends ClassPolicy
{ {
public void onCreateReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference); void onCreateReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference);
} }
/** Before removal of reference */ /** Before removal of reference */
public interface BeforeRemoveReference extends ClassPolicy public interface BeforeRemoveReference extends ClassPolicy
{ {
public void beforeRemoveReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference); void beforeRemoveReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference);
} }
/** /**
* On removal of reference * On removal of reference
* *
* @since 1.0 * @since 1.0
*/ */
public interface OnRemoveReference extends ClassPolicy public interface OnRemoveReference extends ClassPolicy
{ {
@@ -83,38 +83,38 @@ public interface RecordsManagementPolicies
* @param toNodeRef to node reference * @param toNodeRef to node reference
* @param reference name of reference * @param reference name of reference
*/ */
public void onRemoveReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference); void onRemoveReference(NodeRef fromNodeRef, NodeRef toNodeRef, QName reference);
} }
/** /**
* Before record file policy * Before record file policy
* *
* @since 2.2 * @since 2.2
*/ */
public interface BeforeFileRecord extends ClassPolicy public interface BeforeFileRecord extends ClassPolicy
{ {
/** policy name */ /** policy name */
public static final QName QNAME = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRecordFile"); static final QName QNAME = QName.createQName(NamespaceService.ALFRESCO_URI, "beforeRecordFile");
/** /**
* @param nodeRef node reference * @param nodeRef node reference
*/ */
public void beforeFileRecord(NodeRef nodeRef); void beforeFileRecord(NodeRef nodeRef);
} }
/** /**
* On record file policy * On record file policy
* *
* @since 2.2 * @since 2.2
*/ */
public interface OnFileRecord extends ClassPolicy public interface OnFileRecord extends ClassPolicy
{ {
/** policy name */ /** policy name */
public static final QName QNAME = QName.createQName(NamespaceService.ALFRESCO_URI, "onRecordFile"); static final QName QNAME = QName.createQName(NamespaceService.ALFRESCO_URI, "onRecordFile");
/** /**
* @param nodeRef node reference * @param nodeRef node reference
*/ */
public void onFileRecord(NodeRef nodeRef); void onFileRecord(NodeRef nodeRef);
} }
} }

View File

@@ -49,25 +49,25 @@ import org.alfresco.service.namespace.QName;
public interface RecordsManagementServiceRegistry extends ServiceRegistry public interface RecordsManagementServiceRegistry extends ServiceRegistry
{ {
/** Service QName constants */ /** Service QName constants */
static final QName RECORDS_MANAGEMENT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementService"); final QName RECORDS_MANAGEMENT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementService");
static final QName DISPOSITION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "DispositionService"); final QName DISPOSITION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "DispositionService");
static final QName RECORDS_MANAGEMENT_ADMIN_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementAdminService"); final QName RECORDS_MANAGEMENT_ADMIN_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementAdminService");
static final QName RECORDS_MANAGEMENT_ACTION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementActionService"); final QName RECORDS_MANAGEMENT_ACTION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementActionService");
static final QName RECORDS_MANAGEMENT_EVENT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementEventService"); final QName RECORDS_MANAGEMENT_EVENT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementEventService");
static final QName RECORDS_MANAGEMENT_AUDIT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementAuditService"); final QName RECORDS_MANAGEMENT_AUDIT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementAuditService");
static final QName CAPABILITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "CapabilityService"); final QName CAPABILITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "CapabilityService");
static final QName RECORD_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordService"); final QName RECORD_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordService");
static final QName FREEZE_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FreezeService"); final QName FREEZE_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FreezeService");
static final QName EXTENDED_SECURITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "ExtendedSecurityService"); final QName EXTENDED_SECURITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "ExtendedSecurityService");
static final QName FILE_PLAN_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanService"); final QName FILE_PLAN_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanService");
static final QName FILE_PLAN_ROLE_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanRoleService"); final QName FILE_PLAN_ROLE_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanRoleService");
static final QName FILE_PLAN_PERMISSION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanPermissionService"); final QName FILE_PLAN_PERMISSION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanPermissionService");
static final QName FILE_PLAN_AUTHENTICATION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanAuthenticationService"); final QName FILE_PLAN_AUTHENTICATION_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FilePlanAuthenticationService");
static final QName IDENTIFIER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "recordsManagementIdentifierService"); final QName IDENTIFIER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "recordsManagementIdentifierService");
static final QName RECORD_FOLDER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordFolderService"); final QName RECORD_FOLDER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordFolderService");
static final QName TRANSFER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "TransferService"); final QName TRANSFER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "TransferService");
@Deprecated @Deprecated
static final QName RECORDS_MANAGEMENT_SECURITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementSecurityService"); final QName RECORDS_MANAGEMENT_SECURITY_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "RecordsManagementSecurityService");
/** /**

View File

@@ -23,71 +23,70 @@ import java.util.Map;
import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.cmr.repository.NodeRef;
/** /**
* Record Management Action * Record Management Action
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
public interface RecordsManagementAction public interface RecordsManagementAction
{ {
/** /**
* Get the name of the action * Get the name of the action
* *
* @return String action name * @return String action name
*/ */
public String getName(); String getName();
/** /**
* Get the label of the action * Get the label of the action
* *
* @return String action label * @return String action label
*/ */
public String getLabel(); String getLabel();
/** /**
* Get the description of the action * Get the description of the action
* *
* @return String action description * @return String action description
*/ */
public String getDescription(); String getDescription();
/** /**
* Indicates whether this is a disposition action or not * Indicates whether this is a disposition action or not
* *
* @return boolean true if a disposition action, false otherwise * @return boolean true if a disposition action, false otherwise
*/ */
boolean isDispositionAction(); boolean isDispositionAction();
/** /**
* Execution of the action * Execution of the action
* *
* @param filePlanComponent file plan component the action is executed upon * @param filePlanComponent file plan component the action is executed upon
* @param parameters action parameters * @param parameters action parameters
*/ */
public RecordsManagementActionResult execute(NodeRef filePlanComponent, Map<String, Serializable> parameters); RecordsManagementActionResult execute(NodeRef filePlanComponent, Map<String, Serializable> parameters);
/** /**
* Some admin-related rmActions execute against a target nodeRef which is not provided * Some admin-related rmActions execute against a target nodeRef which is not provided
* by the calling code, but is instead an implementation detail of the action. * by the calling code, but is instead an implementation detail of the action.
* *
* @return the target nodeRef * @return the target nodeRef
*/ */
public NodeRef getImplicitTargetNodeRef(); NodeRef getImplicitTargetNodeRef();
/** /**
* Get the records management action definition. * Get the records management action definition.
* *
* @return * @return
* @since 2.1 * @since 2.1
*/ */
public RecordsManagementActionDefinition getRecordsManagementActionDefinition(); RecordsManagementActionDefinition getRecordsManagementActionDefinition();
/** /**
* Indicates whether the action is public or not * Indicates whether the action is public or not
* *
* @return * @return
* @since 2.1 * @since 2.1
*/ */
public boolean isPublicAction(); boolean isPublicAction();
} }

View File

@@ -18,11 +18,9 @@
*/ */
package org.alfresco.module.org_alfresco_module_rm.action; package org.alfresco.module.org_alfresco_module_rm.action;
/** /**
* Record Management Action Condition * Record Management Action Condition
* *
* @author Roy Wetherall * @author Roy Wetherall
* @since 2.1 * @since 2.1
*/ */
@@ -30,34 +28,34 @@ public interface RecordsManagementActionCondition
{ {
/** /**
* Get the name of the action condition * Get the name of the action condition
* *
* @return String action condition name * @return String action condition name
*/ */
public String getName(); String getName();
/** /**
* Get the label of the action condition * Get the label of the action condition
* *
* @return String action condition label * @return String action condition label
*/ */
public String getLabel(); String getLabel();
/** /**
* Get the description of the action condition * Get the description of the action condition
* *
* @return String action condition description * @return String action condition description
*/ */
public String getDescription(); String getDescription();
/** /**
* *
* @return * @return
*/ */
public RecordsManagementActionConditionDefinition getRecordsManagementActionConditionDefinition(); RecordsManagementActionConditionDefinition getRecordsManagementActionConditionDefinition();
/** /**
* *
* @return * @return
*/ */
public boolean isPublicCondition(); boolean isPublicCondition();
} }

View File

@@ -29,134 +29,134 @@ import org.alfresco.repo.security.permissions.impl.SimplePermissionReference;
public interface RMPermissionModel public interface RMPermissionModel
{ {
// Assignment of Filing // Assignment of Filing
static final String FILING = "Filing"; final String FILING = "Filing";
static final String READ_RECORDS = "ReadRecords"; final String READ_RECORDS = "ReadRecords";
static final String FILE_RECORDS = "FileRecords"; final String FILE_RECORDS = "FileRecords";
// Roles // Roles
static final String ROLE_NAME_USER = "User"; final String ROLE_NAME_USER = "User";
static final String ROLE_NAME_POWER_USER = "PowerUser"; final String ROLE_NAME_POWER_USER = "PowerUser";
static final String ROLE_NAME_SECURITY_OFFICER = "SecurityOfficer"; final String ROLE_NAME_SECURITY_OFFICER = "SecurityOfficer";
static final String ROLE_NAME_RECORDS_MANAGER = "RecordsManager"; final String ROLE_NAME_RECORDS_MANAGER = "RecordsManager";
static final String ROLE_NAME_ADMINISTRATOR = "Administrator"; final String ROLE_NAME_ADMINISTRATOR = "Administrator";
static final String ROLE_ADMINISTRATOR = SimplePermissionReference.getPermissionReference(RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT, ROLE_NAME_ADMINISTRATOR).toString(); final String ROLE_ADMINISTRATOR = SimplePermissionReference.getPermissionReference(RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT, ROLE_NAME_ADMINISTRATOR).toString();
// Capability permissions // Capability permissions
static final String DECLARE_RECORDS = "DeclareRecords"; final String DECLARE_RECORDS = "DeclareRecords";
static final String VIEW_RECORDS = "ViewRecords"; final String VIEW_RECORDS = "ViewRecords";
static final String CREATE_MODIFY_DESTROY_FOLDERS = "CreateModifyDestroyFolders"; final String CREATE_MODIFY_DESTROY_FOLDERS = "CreateModifyDestroyFolders";
static final String EDIT_RECORD_METADATA = "EditRecordMetadata"; final String EDIT_RECORD_METADATA = "EditRecordMetadata";
static final String EDIT_NON_RECORD_METADATA = "EditNonRecordMetadata"; final String EDIT_NON_RECORD_METADATA = "EditNonRecordMetadata";
static final String ADD_MODIFY_EVENT_DATES = "AddModifyEventDates"; final String ADD_MODIFY_EVENT_DATES = "AddModifyEventDates";
static final String CLOSE_FOLDERS = "CloseFolders"; final String CLOSE_FOLDERS = "CloseFolders";
static final String DECLARE_RECORDS_IN_CLOSED_FOLDERS = "DeclareRecordsInClosedFolders"; final String DECLARE_RECORDS_IN_CLOSED_FOLDERS = "DeclareRecordsInClosedFolders";
static final String RE_OPEN_FOLDERS = "ReOpenFolders"; final String RE_OPEN_FOLDERS = "ReOpenFolders";
static final String CYCLE_VITAL_RECORDS = "CycleVitalRecords"; final String CYCLE_VITAL_RECORDS = "CycleVitalRecords";
static final String PLANNING_REVIEW_CYCLES = "PlanningReviewCycles"; final String PLANNING_REVIEW_CYCLES = "PlanningReviewCycles";
static final String UPDATE_TRIGGER_DATES = "UpdateTriggerDates"; final String UPDATE_TRIGGER_DATES = "UpdateTriggerDates";
static final String CREATE_MODIFY_DESTROY_EVENTS = "CreateModifyDestroyEvents"; final String CREATE_MODIFY_DESTROY_EVENTS = "CreateModifyDestroyEvents";
static final String MANAGE_ACCESS_RIGHTS = "ManageAccessRights"; final String MANAGE_ACCESS_RIGHTS = "ManageAccessRights";
static final String MOVE_RECORDS = "MoveRecords"; final String MOVE_RECORDS = "MoveRecords";
static final String CHANGE_OR_DELETE_REFERENCES = "ChangeOrDeleteReferences"; final String CHANGE_OR_DELETE_REFERENCES = "ChangeOrDeleteReferences";
static final String DELETE_LINKS = "DeleteLinks"; final String DELETE_LINKS = "DeleteLinks";
static final String EDIT_DECLARED_RECORD_METADATA = "EditDeclaredRecordMetadata"; final String EDIT_DECLARED_RECORD_METADATA = "EditDeclaredRecordMetadata";
static final String MANUALLY_CHANGE_DISPOSITION_DATES = "ManuallyChangeDispositionDates"; final String MANUALLY_CHANGE_DISPOSITION_DATES = "ManuallyChangeDispositionDates";
static final String APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF = "ApproveRecordsScheduledForCutoff"; final String APPROVE_RECORDS_SCHEDULED_FOR_CUTOFF = "ApproveRecordsScheduledForCutoff";
static final String CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS = "CreateModifyRecordsInCutoffFolders"; final String CREATE_MODIFY_RECORDS_IN_CUTOFF_FOLDERS = "CreateModifyRecordsInCutoffFolders";
static final String EXTEND_RETENTION_PERIOD_OR_FREEZE = "ExtendRetentionPeriodOrFreeze"; final String EXTEND_RETENTION_PERIOD_OR_FREEZE = "ExtendRetentionPeriodOrFreeze";
static final String UNFREEZE = "Unfreeze"; final String UNFREEZE = "Unfreeze";
static final String VIEW_UPDATE_REASONS_FOR_FREEZE = "ViewUpdateReasonsForFreeze"; final String VIEW_UPDATE_REASONS_FOR_FREEZE = "ViewUpdateReasonsForFreeze";
static final String DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION = "DestroyRecordsScheduledForDestruction"; final String DESTROY_RECORDS_SCHEDULED_FOR_DESTRUCTION = "DestroyRecordsScheduledForDestruction";
static final String DESTROY_RECORDS = "DestroyRecords"; final String DESTROY_RECORDS = "DestroyRecords";
static final String UPDATE_VITAL_RECORD_CYCLE_INFORMATION = "UpdateVitalRecordCycleInformation"; final String UPDATE_VITAL_RECORD_CYCLE_INFORMATION = "UpdateVitalRecordCycleInformation";
static final String UNDECLARE_RECORDS = "UndeclareRecords"; final String UNDECLARE_RECORDS = "UndeclareRecords";
static final String DECLARE_AUDIT_AS_RECORD = "DeclareAuditAsRecord"; final String DECLARE_AUDIT_AS_RECORD = "DeclareAuditAsRecord";
static final String DELETE_AUDIT = "DeleteAudit"; final String DELETE_AUDIT = "DeleteAudit";
static final String CREATE_MODIFY_DESTROY_TIMEFRAMES = "CreateModifyDestroyTimeframes"; final String CREATE_MODIFY_DESTROY_TIMEFRAMES = "CreateModifyDestroyTimeframes";
static final String AUTHORIZE_NOMINATED_TRANSFERS = "AuthorizeNominatedTransfers"; final String AUTHORIZE_NOMINATED_TRANSFERS = "AuthorizeNominatedTransfers";
static final String EDIT_SELECTION_LISTS = "EditSelectionLists"; final String EDIT_SELECTION_LISTS = "EditSelectionLists";
static final String AUTHORIZE_ALL_TRANSFERS = "AuthorizeAllTransfers"; final String AUTHORIZE_ALL_TRANSFERS = "AuthorizeAllTransfers";
static final String CREATE_MODIFY_DESTROY_FILEPLAN_METADATA = "CreateModifyDestroyFileplanMetadata"; final String CREATE_MODIFY_DESTROY_FILEPLAN_METADATA = "CreateModifyDestroyFileplanMetadata";
static final String CREATE_AND_ASSOCIATE_SELECTION_LISTS = "CreateAndAssociateSelectionLists"; final String CREATE_AND_ASSOCIATE_SELECTION_LISTS = "CreateAndAssociateSelectionLists";
static final String ATTACH_RULES_TO_METADATA_PROPERTIES = "AttachRulesToMetadataProperties"; final String ATTACH_RULES_TO_METADATA_PROPERTIES = "AttachRulesToMetadataProperties";
static final String CREATE_MODIFY_DESTROY_FILEPLAN_TYPES = "CreateModifyDestroyFileplanTypes"; final String CREATE_MODIFY_DESTROY_FILEPLAN_TYPES = "CreateModifyDestroyFileplanTypes";
static final String CREATE_MODIFY_DESTROY_RECORD_TYPES = "CreateModifyDestroyRecordTypes"; final String CREATE_MODIFY_DESTROY_RECORD_TYPES = "CreateModifyDestroyRecordTypes";
static final String MAKE_OPTIONAL_PARAMETERS_MANDATORY = "MakeOptionalParametersMandatory"; final String MAKE_OPTIONAL_PARAMETERS_MANDATORY = "MakeOptionalParametersMandatory";
static final String MAP_EMAIL_METADATA = "MapEmailMetadata"; final String MAP_EMAIL_METADATA = "MapEmailMetadata";
static final String DELETE_RECORDS = "DeleteRecords"; final String DELETE_RECORDS = "DeleteRecords";
static final String TRIGGER_AN_EVENT = "TriggerAnEvent"; final String TRIGGER_AN_EVENT = "TriggerAnEvent";
static final String CREATE_MODIFY_DESTROY_ROLES = "CreateModifyDestroyRoles"; final String CREATE_MODIFY_DESTROY_ROLES = "CreateModifyDestroyRoles";
static final String CREATE_MODIFY_DESTROY_USERS_AND_GROUPS = "CreateModifyDestroyUsersAndGroups"; final String CREATE_MODIFY_DESTROY_USERS_AND_GROUPS = "CreateModifyDestroyUsersAndGroups";
static final String PASSWORD_CONTROL = "PasswordControl"; final String PASSWORD_CONTROL = "PasswordControl";
static final String ENABLE_DISABLE_AUDIT_BY_TYPES = "EnableDisableAuditByTypes"; final String ENABLE_DISABLE_AUDIT_BY_TYPES = "EnableDisableAuditByTypes";
static final String SELECT_AUDIT_METADATA = "SelectAuditMetadata"; final String SELECT_AUDIT_METADATA = "SelectAuditMetadata";
static final String DISPLAY_RIGHTS_REPORT = "DisplayRightsReport"; final String DISPLAY_RIGHTS_REPORT = "DisplayRightsReport";
static final String ACCESS_AUDIT = "AccessAudit"; final String ACCESS_AUDIT = "AccessAudit";
static final String EXPORT_AUDIT = "ExportAudit"; final String EXPORT_AUDIT = "ExportAudit";
static final String CREATE_MODIFY_DESTROY_REFERENCE_TYPES = "CreateModifyDestroyReferenceTypes"; final String CREATE_MODIFY_DESTROY_REFERENCE_TYPES = "CreateModifyDestroyReferenceTypes";
static final String UPDATE_CLASSIFICATION_DATES = "UpdateClassificationDates"; final String UPDATE_CLASSIFICATION_DATES = "UpdateClassificationDates";
static final String CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES = "CreateModifyDestroyClassificationGuides"; final String CREATE_MODIFY_DESTROY_CLASSIFICATION_GUIDES = "CreateModifyDestroyClassificationGuides";
static final String UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS = "UpgradeDowngradeAndDeclassifyRecords"; final String UPGRADE_DOWNGRADE_AND_DECLASSIFY_RECORDS = "UpgradeDowngradeAndDeclassifyRecords";
static final String UPDATE_EXEMPTION_CATEGORIES = "UpdateExemptionCategories"; final String UPDATE_EXEMPTION_CATEGORIES = "UpdateExemptionCategories";
static final String MAP_CLASSIFICATION_GUIDE_METADATA = "MapClassificationGuideMetadata"; final String MAP_CLASSIFICATION_GUIDE_METADATA = "MapClassificationGuideMetadata";
static final String MANAGE_ACCESS_CONTROLS = "ManageAccessControls"; final String MANAGE_ACCESS_CONTROLS = "ManageAccessControls";
} }

View File

@@ -28,85 +28,85 @@ import org.alfresco.service.namespace.QName;
public interface RMCaveatConfigComponent public interface RMCaveatConfigComponent
{ {
public void init(); void init();
/** /**
* Get allowed values for given caveat list (for current user) * Get allowed values for given caveat list (for current user)
* *
* @param constraintName * @param constraintName
* @return * @return
*/ */
public List<String> getRMAllowedValues(String constraintName); List<String> getRMAllowedValues(String constraintName);
/** /**
* Get custom caveat models * Get custom caveat models
* *
* @return * @return
*/ */
public List<QName> getRMCaveatModels(); List<QName> getRMCaveatModels();
/** /**
* Check whether access to 'record component' node is vetoed for current user due to caveat(s) * Check whether access to 'record component' node is vetoed for current user due to caveat(s)
* *
* @param nodeRef * @param nodeRef
* @return false, if caveat(s) veto access otherwise return true * @return false, if caveat(s) veto access otherwise return true
*/ */
public boolean hasAccess(NodeRef nodeRef); boolean hasAccess(NodeRef nodeRef);
/** /**
* Get RM constraint list * Get RM constraint list
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
*/ */
public RMConstraintInfo getRMConstraint(String listName); RMConstraintInfo getRMConstraint(String listName);
/** /**
* Add RM constraint * Add RM constraint
*/ */
public void addRMConstraint(String listName); void addRMConstraint(String listName);
/** /**
* Add RM constraint value for given authority * Add RM constraint value for given authority
*/ */
public void addRMConstraintListValue(String listName, String authorityName, String value); void addRMConstraintListValue(String listName, String authorityName, String value);
/** /**
* Update RM constraint values for given authority * Update RM constraint values for given authority
*/ */
public void updateRMConstraintListAuthority(String listName, String authorityName, List<String>values); void updateRMConstraintListAuthority(String listName, String authorityName, List<String>values);
/** /**
* Update RM constraint authorities for given value * Update RM constraint authorities for given value
*/ */
public void updateRMConstraintListValue(String listName, String valueName, List<String>authorities); void updateRMConstraintListValue(String listName, String valueName, List<String>authorities);
/** /**
* Remove RM constraint value (all authorities) * Remove RM constraint value (all authorities)
*/ */
public void removeRMConstraintListValue(String listName, String valueName); void removeRMConstraintListValue(String listName, String valueName);
/** /**
* Remove RM constraint authority (all values) * Remove RM constraint authority (all values)
*/ */
public void removeRMConstraintListAuthority(String listName, String authorityName); void removeRMConstraintListAuthority(String listName, String authorityName);
/** /**
* Delete RM Constraint * Delete RM Constraint
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
*/ */
public void deleteRMConstraint(String listName); void deleteRMConstraint(String listName);
/** /**
* Get the details of a caveat list * Get the details of a caveat list
* @param listName * @param listName
* @return * @return
*/ */
public Map<String, List<String>> getListDetails(String listName); Map<String, List<String>> getListDetails(String listName);
public NodeRef updateOrCreateCaveatConfig(File jsonFile); NodeRef updateOrCreateCaveatConfig(File jsonFile);
public NodeRef updateOrCreateCaveatConfig(String jsonString); NodeRef updateOrCreateCaveatConfig(String jsonString);
public NodeRef updateOrCreateCaveatConfig(InputStream is); NodeRef updateOrCreateCaveatConfig(InputStream is);
} }

View File

@@ -29,125 +29,124 @@ import org.alfresco.service.cmr.repository.NodeRef;
public interface RMCaveatConfigService public interface RMCaveatConfigService
{ {
public void init(); void init();
/** /**
* Get allowed values for given caveat list (for current user) * Get allowed values for given caveat list (for current user)
* @param constraintName * @param constraintName
* @return * @return
*/ */
public List<String> getRMAllowedValues(String constraintName); List<String> getRMAllowedValues(String constraintName);
/** /**
* Check whether access to 'record component' node is vetoed for current user due to caveat(s) * Check whether access to 'record component' node is vetoed for current user due to caveat(s)
* *
* @param nodeRef * @param nodeRef
* @return false, if caveat(s) veto access otherwise return true * @return false, if caveat(s) veto access otherwise return true
*/ */
public boolean hasAccess(NodeRef nodeRef); boolean hasAccess(NodeRef nodeRef);
/* /*
* Get a single RM constraint * Get a single RM constraint
*/ */
public RMConstraintInfo getRMConstraint(String listName); RMConstraintInfo getRMConstraint(String listName);
/* /*
* Get the names of all the caveat lists * Get the names of all the caveat lists
*/ */
public Set<RMConstraintInfo> getAllRMConstraints(); Set<RMConstraintInfo> getAllRMConstraints();
/** /**
* Get the details of a caveat list * Get the details of a caveat list
* @param listName * @param listName
* @return * @return
*/ */
public Map<String, List<String>> getListDetails(String listName); Map<String, List<String>> getListDetails(String listName);
public NodeRef updateOrCreateCaveatConfig(File jsonFile); NodeRef updateOrCreateCaveatConfig(File jsonFile);
public NodeRef updateOrCreateCaveatConfig(String jsonString); NodeRef updateOrCreateCaveatConfig(String jsonString);
public NodeRef updateOrCreateCaveatConfig(InputStream is); NodeRef updateOrCreateCaveatConfig(InputStream is);
/** /**
* add RM constraint list * add RM constraint list
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param listTitle * @param listTitle
*/ */
public RMConstraintInfo addRMConstraint(String listName, String listTitle, String[] allowedValues); RMConstraintInfo addRMConstraint(String listName, String listTitle, String[] allowedValues);
/** /**
* update RM constraint list allowed values * update RM constraint list allowed values
* @param listName the name of the RMConstraintList - can not be changed * @param listName the name of the RMConstraintList - can not be changed
* @param allowedValues * @param allowedValues
*/ */
public RMConstraintInfo updateRMConstraintAllowedValues(String listName, String[] allowedValues); RMConstraintInfo updateRMConstraintAllowedValues(String listName, String[] allowedValues);
/** /**
* update RM constraint Title * update RM constraint Title
* @param listName the name of the RMConstraintList - can not be changed * @param listName the name of the RMConstraintList - can not be changed
* @param allowedValues * @param allowedValues
*/ */
public RMConstraintInfo updateRMConstraintTitle(String listName, String newTitle); RMConstraintInfo updateRMConstraintTitle(String listName, String newTitle);
/** /**
* delete RM Constraint * delete RM Constraint
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
*/ */
public void deleteRMConstraint(String listName); void deleteRMConstraint(String listName);
/** /**
* Add a single value to an authority in a list. The existing values of the list remain. * Add a single value to an authority in a list. The existing values of the list remain.
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param authorityName * @param authorityName
* @param values * @param values
* @throws AlfrescoRuntimeException if either the list or the authority do not already exist. * @throws AlfrescoRuntimeException if either the list or the authority do not already exist.
*/ */
public void addRMConstraintListValue(String listName, String authorityName, String value); void addRMConstraintListValue(String listName, String authorityName, String value);
/** /**
* Replace the values for an authority in a list. * Replace the values for an authority in a list.
* The existing values are removed. * The existing values are removed.
* *
* If the authority does not already exist in the list, it will be added * If the authority does not already exist in the list, it will be added
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param authorityName * @param authorityName
* @param values * @param values
*/ */
public void updateRMConstraintListAuthority(String listName, String authorityName, List<String>values); void updateRMConstraintListAuthority(String listName, String authorityName, List<String>values);
/** /**
* Remove an authority from a list * Remove an authority from a list
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param authorityName * @param authorityName
* @param values * @param values
*/ */
public void removeRMConstraintListAuthority(String listName, String authorityName); void removeRMConstraintListAuthority(String listName, String authorityName);
/** /**
* Replace the values for an authority in a list. * Replace the values for an authority in a list.
* The existing values are removed. * The existing values are removed.
* *
* If the authority does not already exist in the list, it will be added * If the authority does not already exist in the list, it will be added
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param value * @param value
* @param authorities * @param authorities
*/ */
public void updateRMConstraintListValue(String listName, String value, List<String>authorities); void updateRMConstraintListValue(String listName, String value, List<String>authorities);
/** /**
* Remove an authority from a list * Remove an authority from a list
* *
* @param listName the name of the RMConstraintList * @param listName the name of the RMConstraintList
* @param authorityName * @param authorityName
* @param value * @param value
*/ */
public void removeRMConstraintListValue(String listName, String valueName); void removeRMConstraintListValue(String listName, String valueName);
} }

View File

@@ -29,61 +29,61 @@ import org.alfresco.service.namespace.QName;
public interface DOD5015Model public interface DOD5015Model
{ {
// Namespace details // Namespace details
static final String DOD_URI = "http://www.alfresco.org/model/dod5015/1.0"; final String DOD_URI = "http://www.alfresco.org/model/dod5015/1.0";
static final String DOD_PREFIX = "dod"; final String DOD_PREFIX = "dod";
// DOD Site // DOD Site
static final QName TYPE_DOD_5015_SITE = QName.createQName(DOD_URI, "site"); final QName TYPE_DOD_5015_SITE = QName.createQName(DOD_URI, "site");
// DOD File Plan // DOD File Plan
static final QName TYPE_DOD_5015_FILE_PLAN = QName.createQName(DOD_URI, "filePlan"); final QName TYPE_DOD_5015_FILE_PLAN = QName.createQName(DOD_URI, "filePlan");
// DOD Record // DOD Record
static final QName ASPECT_DOD_5015_RECORD = QName.createQName(DOD_URI, "dod5015record"); final QName ASPECT_DOD_5015_RECORD = QName.createQName(DOD_URI, "dod5015record");
static final QName PROP_ORIGINATOR = QName.createQName(DOD_URI, "originator"); final QName PROP_ORIGINATOR = QName.createQName(DOD_URI, "originator");
static final QName PROP_ORIGINATING_ORGANIZATION = QName.createQName(DOD_URI, "originatingOrganization"); final QName PROP_ORIGINATING_ORGANIZATION = QName.createQName(DOD_URI, "originatingOrganization");
static final QName PROP_PUBLICATION_DATE = QName.createQName(DOD_URI, "publicationDate"); final QName PROP_PUBLICATION_DATE = QName.createQName(DOD_URI, "publicationDate");
static final QName PROP_MEDIA_TYPE = QName.createQName(DOD_URI, "mediaType"); final QName PROP_MEDIA_TYPE = QName.createQName(DOD_URI, "mediaType");
static final QName PROP_FORMAT = QName.createQName(DOD_URI, "format"); final QName PROP_FORMAT = QName.createQName(DOD_URI, "format");
static final QName PROP_DATE_RECEIVED = QName.createQName(DOD_URI, "dateReceived"); final QName PROP_DATE_RECEIVED = QName.createQName(DOD_URI, "dateReceived");
// Scanned Record // Scanned Record
static final QName ASPECT_SCANNED_RECORD = QName.createQName(DOD_URI, "scannedRecord"); final QName ASPECT_SCANNED_RECORD = QName.createQName(DOD_URI, "scannedRecord");
static final QName PROP_SCANNED_FORMAT = QName.createQName(DOD_URI, "scannedFormat"); final QName PROP_SCANNED_FORMAT = QName.createQName(DOD_URI, "scannedFormat");
static final QName PROP_SCANNED_FORMAT_VERSION = QName.createQName(DOD_URI, "scannedFormatVersion"); final QName PROP_SCANNED_FORMAT_VERSION = QName.createQName(DOD_URI, "scannedFormatVersion");
static final QName PROP_RESOLUTION_X = QName.createQName(DOD_URI, "resolutionX"); final QName PROP_RESOLUTION_X = QName.createQName(DOD_URI, "resolutionX");
static final QName PROP_RESOLUTION_Y = QName.createQName(DOD_URI, "resolutionY"); final QName PROP_RESOLUTION_Y = QName.createQName(DOD_URI, "resolutionY");
static final QName PROP_SCANNED_BIT_DEPTH = QName.createQName(DOD_URI, "scannedBitDepth"); final QName PROP_SCANNED_BIT_DEPTH = QName.createQName(DOD_URI, "scannedBitDepth");
// PDF Record // PDF Record
static final QName ASPECT_PDF_RECORD = QName.createQName(DOD_URI, "pdfRecord"); final QName ASPECT_PDF_RECORD = QName.createQName(DOD_URI, "pdfRecord");
static final QName PROP_PRODUCING_APPLICATION = QName.createQName(DOD_URI, "producingApplication"); final QName PROP_PRODUCING_APPLICATION = QName.createQName(DOD_URI, "producingApplication");
static final QName PROP_PRODUCING_APPLICATION_VERSION = QName.createQName(DOD_URI, "producingApplicationVersion"); final QName PROP_PRODUCING_APPLICATION_VERSION = QName.createQName(DOD_URI, "producingApplicationVersion");
static final QName PROP_PDF_VERSION = QName.createQName(DOD_URI, "pdfVersion"); final QName PROP_PDF_VERSION = QName.createQName(DOD_URI, "pdfVersion");
static final QName PROP_CREATING_APPLICATION = QName.createQName(DOD_URI, "creatingApplication"); final QName PROP_CREATING_APPLICATION = QName.createQName(DOD_URI, "creatingApplication");
static final QName PROP_DOCUMENT_SECURITY_SETTINGS = QName.createQName(DOD_URI, "documentSecuritySettings"); final QName PROP_DOCUMENT_SECURITY_SETTINGS = QName.createQName(DOD_URI, "documentSecuritySettings");
// Digital Photograph Record // Digital Photograph Record
static final QName ASPECT_DIGITAL_PHOTOGRAPH_RECORD = QName.createQName(DOD_URI, "digitalPhotographRecord"); final QName ASPECT_DIGITAL_PHOTOGRAPH_RECORD = QName.createQName(DOD_URI, "digitalPhotographRecord");
static final QName PROP_CAPTION = QName.createQName(DOD_URI, "caption"); final QName PROP_CAPTION = QName.createQName(DOD_URI, "caption");
static final QName PROP_PHOTOGRAPHER = QName.createQName(DOD_URI, "photographer"); final QName PROP_PHOTOGRAPHER = QName.createQName(DOD_URI, "photographer");
static final QName PROP_COPYRIGHT = QName.createQName(DOD_URI, "copyright"); final QName PROP_COPYRIGHT = QName.createQName(DOD_URI, "copyright");
static final QName PROP_BIT_DEPTH = QName.createQName(DOD_URI, "bitDepth"); final QName PROP_BIT_DEPTH = QName.createQName(DOD_URI, "bitDepth");
static final QName PROP_IMAGE_SIZE_X = QName.createQName(DOD_URI, "imageSizeX"); final QName PROP_IMAGE_SIZE_X = QName.createQName(DOD_URI, "imageSizeX");
static final QName PROP_IMAGE_SIZE_Y = QName.createQName(DOD_URI, "imageSizeY"); final QName PROP_IMAGE_SIZE_Y = QName.createQName(DOD_URI, "imageSizeY");
static final QName PROP_IMAGE_SOURCE = QName.createQName(DOD_URI, "imageSource"); final QName PROP_IMAGE_SOURCE = QName.createQName(DOD_URI, "imageSource");
static final QName PROP_COMPRESSION = QName.createQName(DOD_URI, "compression"); final QName PROP_COMPRESSION = QName.createQName(DOD_URI, "compression");
static final QName PROP_ICC_ICM_PROFILE = QName.createQName(DOD_URI, "iccIcmProfile"); final QName PROP_ICC_ICM_PROFILE = QName.createQName(DOD_URI, "iccIcmProfile");
static final QName PROP_EXIF_INFORMATION = QName.createQName(DOD_URI, "exifInformation"); final QName PROP_EXIF_INFORMATION = QName.createQName(DOD_URI, "exifInformation");
// Web Record // Web Record
static final QName ASPECT_WEB_RECORD = QName.createQName(DOD_URI, "webRecord"); final QName ASPECT_WEB_RECORD = QName.createQName(DOD_URI, "webRecord");
static final QName PROP_WEB_FILE_NAME = QName.createQName(DOD_URI, "webFileName"); final QName PROP_WEB_FILE_NAME = QName.createQName(DOD_URI, "webFileName");
static final QName PROP_WEB_PLATFORM = QName.createQName(DOD_URI, "webPlatform"); final QName PROP_WEB_PLATFORM = QName.createQName(DOD_URI, "webPlatform");
static final QName PROP_WEBSITE_NAME = QName.createQName(DOD_URI, "webSiteName"); final QName PROP_WEBSITE_NAME = QName.createQName(DOD_URI, "webSiteName");
static final QName PROP_WEB_SITE_URL = QName.createQName(DOD_URI, "webSiteURL"); final QName PROP_WEB_SITE_URL = QName.createQName(DOD_URI, "webSiteURL");
static final QName PROP_CAPTURE_METHOD = QName.createQName(DOD_URI, "captureMethod"); final QName PROP_CAPTURE_METHOD = QName.createQName(DOD_URI, "captureMethod");
static final QName PROP_CAPTURE_DATE = QName.createQName(DOD_URI, "captureDate"); final QName PROP_CAPTURE_DATE = QName.createQName(DOD_URI, "captureDate");
static final QName PROP_CONTACT = QName.createQName(DOD_URI, "contact"); final QName PROP_CONTACT = QName.createQName(DOD_URI, "contact");
static final QName PROP_CONTENT_MANAGEMENT_SYSTEM = QName.createQName(DOD_URI, "contentManagementSystem"); final QName PROP_CONTENT_MANAGEMENT_SYSTEM = QName.createQName(DOD_URI, "contentManagementSystem");
} }

View File

@@ -31,7 +31,7 @@ public interface CustomEmailMappingService
* *
* @return {@link Set}<{@link CustomMapping}> * @return {@link Set}<{@link CustomMapping}>
*/ */
public Set<CustomMapping> getCustomMappings(); Set<CustomMapping> getCustomMappings();
/** /**
* Add custom mapping * Add custom mapping
@@ -39,7 +39,7 @@ public interface CustomEmailMappingService
* @param from * @param from
* @param to * @param to
*/ */
public void addCustomMapping(String from, String to); void addCustomMapping(String from, String to);
/** /**
* Delete custom mapping * Delete custom mapping
@@ -47,19 +47,19 @@ public interface CustomEmailMappingService
* @param from * @param from
* @param to * @param to
*/ */
public void deleteCustomMapping(String from, String to); void deleteCustomMapping(String from, String to);
/** /**
* Gets the list of email mapping keys * Gets the list of email mapping keys
* *
* @return Email mapping keys * @return Email mapping keys
*/ */
public List<String> getEmailMappingKeys(); List<String> getEmailMappingKeys();
/** /**
* Registers an email mapping key with the existing list of email mapping keys * Registers an email mapping key with the existing list of email mapping keys
* *
* @param emailMappingKey emailMappingKey to register * @param emailMappingKey emailMappingKey to register
*/ */
public void registerEMailMappingKey(String emailMappingKey); void registerEMailMappingKey(String emailMappingKey);
} }

View File

@@ -41,7 +41,7 @@ public interface FilePlanService
* Default RM site id. * Default RM site id.
* Can be used with {@link FilePlanService#getFilePlanBySiteId(String)} to get the file plan node. * Can be used with {@link FilePlanService#getFilePlanBySiteId(String)} to get the file plan node.
* */ * */
public static final String DEFAULT_RM_SITE_ID = "rm"; static final String DEFAULT_RM_SITE_ID = "rm";
/** /**
* Indicates whether the given node is a file plan component or not. * Indicates whether the given node is a file plan component or not.

View File

@@ -23,35 +23,35 @@ import org.alfresco.service.namespace.QName;
/** /**
* Records management identifier service * Records management identifier service
* *
* @author Roy Wetherall * @author Roy Wetherall
*/ */
public interface IdentifierService public interface IdentifierService
{ {
/** Context value names */ /** Context value names */
public static final String CONTEXT_NODEREF = "noderef"; static final String CONTEXT_NODEREF = "noderef";
public static final String CONTEXT_PARENT_NODEREF = "parentndoeref"; static final String CONTEXT_PARENT_NODEREF = "parentndoeref";
public static final String CONTEXT_ORIG_TYPE = "origionaltype"; static final String CONTEXT_ORIG_TYPE = "origionaltype";
/** /**
* Register an identifier generator implementation with the service. * Register an identifier generator implementation with the service.
* *
* @param identifierGenerator identifier generator implementation * @param identifierGenerator identifier generator implementation
*/ */
void register(IdentifierGenerator identifierGenerator); void register(IdentifierGenerator identifierGenerator);
/** /**
* Generate an identifier for a node with the given type and parent. * Generate an identifier for a node with the given type and parent.
* *
* @param type type of the node * @param type type of the node
* @param parent parent of the ndoe * @param parent parent of the ndoe
* @return String generated identifier * @return String generated identifier
*/ */
String generateIdentifier(QName type, NodeRef parent); String generateIdentifier(QName type, NodeRef parent);
/** /**
* Generate an identifier for the given node. * Generate an identifier for the given node.
* *
* @param nodeRef node reference * @param nodeRef node reference
* @return String generated identifier * @return String generated identifier
*/ */

View File

@@ -22,31 +22,31 @@ import org.alfresco.service.namespace.QName;
/** /**
* Helper class containing records management custom model qualified names * Helper class containing records management custom model qualified names
* *
* @author Gavin Cornwell * @author Gavin Cornwell
*/ */
public interface RecordsManagementCustomModel public interface RecordsManagementCustomModel
{ {
// Namespace details // Namespace details
public static String RM_CUSTOM_URI = "http://www.alfresco.org/model/rmcustom/1.0"; static String RM_CUSTOM_URI = "http://www.alfresco.org/model/rmcustom/1.0";
public static String RM_CUSTOM_PREFIX = "rmc"; static String RM_CUSTOM_PREFIX = "rmc";
// Model // Model
public static QName RM_CUSTOM_MODEL = QName.createQName(RM_CUSTOM_URI, "rmcustom"); static QName RM_CUSTOM_MODEL = QName.createQName(RM_CUSTOM_URI, "rmcustom");
// Custom constraint for Supplemental Marking List // Custom constraint for Supplemental Marking List
public static QName CONSTRAINT_CUSTOM_SMLIST = QName.createQName(RM_CUSTOM_URI, "smList"); static QName CONSTRAINT_CUSTOM_SMLIST = QName.createQName(RM_CUSTOM_URI, "smList");
// Custom property for for Supplemental Marking List // Custom property for for Supplemental Marking List
public static QName PROP_SUPPLEMENTAL_MARKING_LIST = QName.createQName(RM_CUSTOM_URI, "supplementalMarkingList"); static QName PROP_SUPPLEMENTAL_MARKING_LIST = QName.createQName(RM_CUSTOM_URI, "supplementalMarkingList");
// Supplemental Marking List aspect // Supplemental Marking List aspect
public static QName ASPECT_SUPPLEMENTAL_MARKING_LIST = QName.createQName(RM_CUSTOM_URI, "customSupplementalMarkingList"); static QName ASPECT_SUPPLEMENTAL_MARKING_LIST = QName.createQName(RM_CUSTOM_URI, "customSupplementalMarkingList");
// Custom associations aspect // Custom associations aspect
public static QName ASPECT_CUSTOM_ASSOCIATIONS = QName.createQName(RM_CUSTOM_URI, "customAssocs"); static QName ASPECT_CUSTOM_ASSOCIATIONS = QName.createQName(RM_CUSTOM_URI, "customAssocs");
// Some Custom references which are present on system startup. // Some Custom references which are present on system startup.
public static QName CUSTOM_REF_VERSIONS = QName.createQName(RecordsManagementCustomModel.RM_CUSTOM_URI, "versions"); static QName CUSTOM_REF_VERSIONS = QName.createQName(RecordsManagementCustomModel.RM_CUSTOM_URI, "versions");
public static QName CUSTOM_REF_SUPERSEDES = QName.createQName(RecordsManagementCustomModel.RM_CUSTOM_URI, "supersedes"); static QName CUSTOM_REF_SUPERSEDES = QName.createQName(RecordsManagementCustomModel.RM_CUSTOM_URI, "supersedes");
} }

View File

@@ -27,238 +27,237 @@ import org.alfresco.service.namespace.QName;
*/ */
public interface RecordsManagementModel extends RecordsManagementCustomModel public interface RecordsManagementModel extends RecordsManagementCustomModel
{ {
// Namespace details // Namespace details
public static final String RM_URI = "http://www.alfresco.org/model/recordsmanagement/1.0"; static final String RM_URI = "http://www.alfresco.org/model/recordsmanagement/1.0";
public static final String RM_PREFIX = "rma"; static final String RM_PREFIX = "rma";
// Model // Model
public static final QName RM_MODEL = QName.createQName(RM_URI, "recordsmanagement"); static final QName RM_MODEL = QName.createQName(RM_URI, "recordsmanagement");
// RM Site // RM Site
public static final QName TYPE_RM_SITE = QName.createQName(RM_URI, "rmsite"); static final QName TYPE_RM_SITE = QName.createQName(RM_URI, "rmsite");
// Caveat config // Caveat config
public static final QName TYPE_CAVEAT_CONFIG = QName.createQName(RM_URI, "caveatConfig"); static final QName TYPE_CAVEAT_CONFIG = QName.createQName(RM_URI, "caveatConfig");
public static final QName ASPECT_CAVEAT_CONFIG_ROOT = QName.createQName(RM_URI, "caveatConfigRoot"); static final QName ASPECT_CAVEAT_CONFIG_ROOT = QName.createQName(RM_URI, "caveatConfigRoot");
public static final QName ASSOC_CAVEAT_CONFIG = QName.createQName(RM_URI, "caveatConfigAssoc"); static final QName ASSOC_CAVEAT_CONFIG = QName.createQName(RM_URI, "caveatConfigAssoc");
// Email config // Email config
public static final QName TYPE_EMAIL_CONFIG = QName.createQName(RM_URI, "emailConfig"); static final QName TYPE_EMAIL_CONFIG = QName.createQName(RM_URI, "emailConfig");
public static final QName ASPECT_EMAIL_CONFIG_ROOT = QName.createQName(RM_URI, "emailConfigRoot"); static final QName ASPECT_EMAIL_CONFIG_ROOT = QName.createQName(RM_URI, "emailConfigRoot");
public static final QName ASSOC_EMAIL_CONFIG = QName.createQName(RM_URI, "emailConfigAssoc"); static final QName ASSOC_EMAIL_CONFIG = QName.createQName(RM_URI, "emailConfigAssoc");
// Records management container // Records management container
public static final QName TYPE_RECORDS_MANAGEMENT_CONTAINER = QName.createQName(RM_URI, "recordsManagementContainer"); static final QName TYPE_RECORDS_MANAGEMENT_CONTAINER = QName.createQName(RM_URI, "recordsManagementContainer");
// Record Category // Record Category
public static final QName TYPE_RECORD_CATEGORY = QName.createQName(RM_URI, "recordCategory"); static final QName TYPE_RECORD_CATEGORY = QName.createQName(RM_URI, "recordCategory");
// Records management root container // Records management root container
public static final QName TYPE_FILE_PLAN = QName.createQName(RM_URI, "filePlan"); static final QName TYPE_FILE_PLAN = QName.createQName(RM_URI, "filePlan");
// Unfiled record container // Unfiled record container
public static final QName TYPE_UNFILED_RECORD_CONTAINER = QName.createQName(RM_URI, "unfiledRecordContainer"); static final QName TYPE_UNFILED_RECORD_CONTAINER = QName.createQName(RM_URI, "unfiledRecordContainer");
// Unfiled record container child // Unfiled record container child
public static final QName TYPE_UNFILED_RECORD_CONTAINER_CHILD = QName.createQName(RM_URI, "unfiledRecordContainerChild"); static final QName TYPE_UNFILED_RECORD_CONTAINER_CHILD = QName.createQName(RM_URI, "unfiledRecordContainerChild");
// Hold container // Hold container
public static final QName TYPE_HOLD_CONTAINER = QName.createQName(RM_URI, "holdContainer"); static final QName TYPE_HOLD_CONTAINER = QName.createQName(RM_URI, "holdContainer");
public static final QName TYPE_HOLD_CONTAINER_CHILD = QName.createQName(RM_URI, "holdContainerChild"); static final QName TYPE_HOLD_CONTAINER_CHILD = QName.createQName(RM_URI, "holdContainerChild");
// Transfer container // Transfer container
public static final QName TYPE_TRANSFER_CONTAINER = QName.createQName(RM_URI, "transferContainer"); static final QName TYPE_TRANSFER_CONTAINER = QName.createQName(RM_URI, "transferContainer");
// Disposition instructions aspect // Disposition instructions aspect
public static final QName ASPECT_SCHEDULED = QName.createQName(RM_URI, "scheduled"); static final QName ASPECT_SCHEDULED = QName.createQName(RM_URI, "scheduled");
public static final QName ASSOC_DISPOSITION_SCHEDULE = QName.createQName(RM_URI, "dispositionSchedule"); static final QName ASSOC_DISPOSITION_SCHEDULE = QName.createQName(RM_URI, "dispositionSchedule");
// Disposition definition type // Disposition definition type
public static final QName TYPE_DISPOSITION_SCHEDULE = QName.createQName(RM_URI, "dispositionSchedule"); static final QName TYPE_DISPOSITION_SCHEDULE = QName.createQName(RM_URI, "dispositionSchedule");
public static final QName PROP_DISPOSITION_AUTHORITY = QName.createQName(RM_URI, "dispositionAuthority"); static final QName PROP_DISPOSITION_AUTHORITY = QName.createQName(RM_URI, "dispositionAuthority");
public static final QName PROP_DISPOSITION_INSTRUCTIONS = QName.createQName(RM_URI, "dispositionInstructions"); static final QName PROP_DISPOSITION_INSTRUCTIONS = QName.createQName(RM_URI, "dispositionInstructions");
public static final QName PROP_RECORD_LEVEL_DISPOSITION = QName.createQName(RM_URI, "recordLevelDisposition"); static final QName PROP_RECORD_LEVEL_DISPOSITION = QName.createQName(RM_URI, "recordLevelDisposition");
public static final QName ASSOC_DISPOSITION_ACTION_DEFINITIONS = QName.createQName(RM_URI, "dispositionActionDefinitions"); static final QName ASSOC_DISPOSITION_ACTION_DEFINITIONS = QName.createQName(RM_URI, "dispositionActionDefinitions");
// Disposition action type // Disposition action type
public static final QName TYPE_DISPOSITION_ACTION_DEFINITION = QName.createQName(RM_URI, "dispositionActionDefinition"); static final QName TYPE_DISPOSITION_ACTION_DEFINITION = QName.createQName(RM_URI, "dispositionActionDefinition");
public static final QName PROP_DISPOSITION_ACTION_NAME = QName.createQName(RM_URI, "dispositionActionName"); static final QName PROP_DISPOSITION_ACTION_NAME = QName.createQName(RM_URI, "dispositionActionName");
public static final QName PROP_DISPOSITION_DESCRIPTION = QName.createQName(RM_URI, "dispositionDescription"); static final QName PROP_DISPOSITION_DESCRIPTION = QName.createQName(RM_URI, "dispositionDescription");
public static final QName PROP_DISPOSITION_PERIOD = QName.createQName(RM_URI, "dispositionPeriod"); static final QName PROP_DISPOSITION_PERIOD = QName.createQName(RM_URI, "dispositionPeriod");
public static final QName PROP_DISPOSITION_PERIOD_PROPERTY = QName.createQName(RM_URI, "dispositionPeriodProperty"); static final QName PROP_DISPOSITION_PERIOD_PROPERTY = QName.createQName(RM_URI, "dispositionPeriodProperty");
public static final QName PROP_DISPOSITION_EVENT = QName.createQName(RM_URI, "dispositionEvent"); static final QName PROP_DISPOSITION_EVENT = QName.createQName(RM_URI, "dispositionEvent");
public static final QName PROP_DISPOSITION_EVENT_COMBINATION = QName.createQName(RM_URI, "dispositionEventCombination"); static final QName PROP_DISPOSITION_EVENT_COMBINATION = QName.createQName(RM_URI, "dispositionEventCombination");
public static final QName PROP_DISPOSITION_LOCATION = QName.createQName(RM_URI, "dispositionLocation"); static final QName PROP_DISPOSITION_LOCATION = QName.createQName(RM_URI, "dispositionLocation");
// Records folder // Records folder
public static final QName TYPE_RECORD_FOLDER = QName.createQName(RM_URI, "recordFolder"); static final QName TYPE_RECORD_FOLDER = QName.createQName(RM_URI, "recordFolder");
public static final QName PROP_IS_CLOSED = QName.createQName(RM_URI, "isClosed"); static final QName PROP_IS_CLOSED = QName.createQName(RM_URI, "isClosed");
// Declared record aspect // Declared record aspect
public static final QName ASPECT_DECLARED_RECORD = QName.createQName(RM_URI, "declaredRecord"); static final QName ASPECT_DECLARED_RECORD = QName.createQName(RM_URI, "declaredRecord");
public static final QName PROP_DECLARED_AT = QName.createQName(RM_URI, "declaredAt"); static final QName PROP_DECLARED_AT = QName.createQName(RM_URI, "declaredAt");
public static final QName PROP_DECLARED_BY = QName.createQName(RM_URI, "declaredBy"); static final QName PROP_DECLARED_BY = QName.createQName(RM_URI, "declaredBy");
// Record aspect // Record aspect
public static final QName ASPECT_RECORD = QName.createQName(RM_URI, "record"); static final QName ASPECT_RECORD = QName.createQName(RM_URI, "record");
public static final QName PROP_DATE_FILED = QName.createQName(RM_URI, "dateFiled"); static final QName PROP_DATE_FILED = QName.createQName(RM_URI, "dateFiled");
public static final QName PROP_ORIGIONAL_NAME = QName.createQName(RM_URI, "origionalName"); static final QName PROP_ORIGIONAL_NAME = QName.createQName(RM_URI, "origionalName");
// public static final QName PROP_ORIGINATOR = QName.createQName(RM_URI, "originator"); //static final QName PROP_ORIGINATOR = QName.createQName(RM_URI, "originator");
// public static final QName PROP_ORIGINATING_ORGANIZATION = QName.createQName(RM_URI, "originatingOrganization"); //static final QName PROP_ORIGINATING_ORGANIZATION = QName.createQName(RM_URI, "originatingOrganization");
// public static final QName PROP_PUBLICATION_DATE = QName.createQName(RM_URI, "publicationDate"); //static final QName PROP_PUBLICATION_DATE = QName.createQName(RM_URI, "publicationDate");
// public static final QName PROP_MEDIA_TYPE = QName.createQName(RM_URI, "mediaType"); //static final QName PROP_MEDIA_TYPE = QName.createQName(RM_URI, "mediaType");
// public static final QName PROP_FORMAT = QName.createQName(RM_URI, "format"); //static final QName PROP_FORMAT = QName.createQName(RM_URI, "format");
// public static final QName PROP_DATE_RECEIVED = QName.createQName(RM_URI, "dateReceived"); //static final QName PROP_DATE_RECEIVED = QName.createQName(RM_URI, "dateReceived");
// Common record details // Common record details
public static final QName PROP_LOCATION = QName.createQName(RM_URI, "location"); static final QName PROP_LOCATION = QName.createQName(RM_URI, "location");
// Fileable aspect // Fileable aspect
public static final QName ASPECT_FILABLE = QName.createQName(RM_URI, "fileable"); static final QName ASPECT_FILABLE = QName.createQName(RM_URI, "fileable");
// Record component identifier aspect // Record component identifier aspect
public static final QName ASPECT_RECORD_COMPONENT_ID = QName.createQName(RM_URI, "recordComponentIdentifier"); static final QName ASPECT_RECORD_COMPONENT_ID = QName.createQName(RM_URI, "recordComponentIdentifier");
public static final QName PROP_IDENTIFIER = QName.createQName(RM_URI, "identifier"); static final QName PROP_IDENTIFIER = QName.createQName(RM_URI, "identifier");
public static final QName PROP_DB_UNIQUENESS_ID = QName.createQName(RM_URI, "dbUniquenessId"); static final QName PROP_DB_UNIQUENESS_ID = QName.createQName(RM_URI, "dbUniquenessId");
// Vital record definition aspect // Vital record definition aspect
public static final QName ASPECT_VITAL_RECORD_DEFINITION = QName.createQName(RM_URI, "vitalRecordDefinition"); static final QName ASPECT_VITAL_RECORD_DEFINITION = QName.createQName(RM_URI, "vitalRecordDefinition");
public static final QName PROP_VITAL_RECORD_INDICATOR = QName.createQName(RM_URI, "vitalRecordIndicator"); static final QName PROP_VITAL_RECORD_INDICATOR = QName.createQName(RM_URI, "vitalRecordIndicator");
public static final QName PROP_REVIEW_PERIOD = QName.createQName(RM_URI, "reviewPeriod"); static final QName PROP_REVIEW_PERIOD = QName.createQName(RM_URI, "reviewPeriod");
// Vital record aspect // Vital record aspect
public static final QName ASPECT_VITAL_RECORD = QName.createQName(RM_URI, "vitalRecord"); static final QName ASPECT_VITAL_RECORD = QName.createQName(RM_URI, "vitalRecord");
public static final QName PROP_REVIEW_AS_OF = QName.createQName(RM_URI, "reviewAsOf"); static final QName PROP_REVIEW_AS_OF = QName.createQName(RM_URI, "reviewAsOf");
public static final QName PROP_NOTIFICATION_ISSUED = QName.createQName(RM_URI, "notificationIssued"); static final QName PROP_NOTIFICATION_ISSUED = QName.createQName(RM_URI, "notificationIssued");
// Cut off aspect // Cut off aspect
public static final QName ASPECT_CUT_OFF = QName.createQName(RM_URI, "cutOff"); static final QName ASPECT_CUT_OFF = QName.createQName(RM_URI, "cutOff");
public static final QName PROP_CUT_OFF_DATE = QName.createQName(RM_URI, "cutOffDate"); static final QName PROP_CUT_OFF_DATE = QName.createQName(RM_URI, "cutOffDate");
// Transferred aspect // Transferred aspect
public static final QName ASPECT_TRANSFERRED = QName.createQName(RM_URI, "transferred"); static final QName ASPECT_TRANSFERRED = QName.createQName(RM_URI, "transferred");
// Ascended aspect // Ascended aspect
public static final QName ASPECT_ASCENDED = QName.createQName(RM_URI, "ascended"); static final QName ASPECT_ASCENDED = QName.createQName(RM_URI, "ascended");
// Disposition schedule aspect // Disposition schedule aspect
public static final QName ASPECT_DISPOSITION_LIFECYCLE = QName.createQName(RM_URI, "dispositionLifecycle"); static final QName ASPECT_DISPOSITION_LIFECYCLE = QName.createQName(RM_URI, "dispositionLifecycle");
public static final QName ASSOC_NEXT_DISPOSITION_ACTION = QName.createQName(RM_URI, "nextDispositionAction"); static final QName ASSOC_NEXT_DISPOSITION_ACTION = QName.createQName(RM_URI, "nextDispositionAction");
public static final QName ASSOC_DISPOSITION_ACTION_HISTORY = QName.createQName(RM_URI, "dispositionActionHistory"); static final QName ASSOC_DISPOSITION_ACTION_HISTORY = QName.createQName(RM_URI, "dispositionActionHistory");
// Disposition action type // Disposition action type
public static final QName TYPE_DISPOSITION_ACTION = QName.createQName(RM_URI, "dispositionAction"); static final QName TYPE_DISPOSITION_ACTION = QName.createQName(RM_URI, "dispositionAction");
public static final QName PROP_DISPOSITION_ACTION_ID = QName.createQName(RM_URI, "dispositionActionId"); static final QName PROP_DISPOSITION_ACTION_ID = QName.createQName(RM_URI, "dispositionActionId");
public static final QName PROP_DISPOSITION_ACTION = QName.createQName(RM_URI, "dispositionAction"); static final QName PROP_DISPOSITION_ACTION = QName.createQName(RM_URI, "dispositionAction");
public static final QName PROP_DISPOSITION_AS_OF = QName.createQName(RM_URI, "dispositionAsOf"); static final QName PROP_DISPOSITION_AS_OF = QName.createQName(RM_URI, "dispositionAsOf");
public static final QName PROP_DISPOSITION_EVENTS_ELIGIBLE = QName.createQName(RM_URI, "dispositionEventsEligible"); static final QName PROP_DISPOSITION_EVENTS_ELIGIBLE = QName.createQName(RM_URI, "dispositionEventsEligible");
public static final QName PROP_DISPOSITION_ACTION_STARTED_AT = QName.createQName(RM_URI, "dispositionActionStartedAt"); static final QName PROP_DISPOSITION_ACTION_STARTED_AT = QName.createQName(RM_URI, "dispositionActionStartedAt");
public static final QName PROP_DISPOSITION_ACTION_STARTED_BY = QName.createQName(RM_URI, "dispositionActionStartedBy"); static final QName PROP_DISPOSITION_ACTION_STARTED_BY = QName.createQName(RM_URI, "dispositionActionStartedBy");
public static final QName PROP_DISPOSITION_ACTION_COMPLETED_AT = QName.createQName(RM_URI, "dispositionActionCompletedAt"); static final QName PROP_DISPOSITION_ACTION_COMPLETED_AT = QName.createQName(RM_URI, "dispositionActionCompletedAt");
public static final QName PROP_DISPOSITION_ACTION_COMPLETED_BY = QName.createQName(RM_URI, "dispositionActionCompletedBy"); static final QName PROP_DISPOSITION_ACTION_COMPLETED_BY = QName.createQName(RM_URI, "dispositionActionCompletedBy");
public static final QName ASSOC_EVENT_EXECUTIONS = QName.createQName(RM_URI, "eventExecutions"); static final QName ASSOC_EVENT_EXECUTIONS = QName.createQName(RM_URI, "eventExecutions");
// Event execution type // Event execution type
public static final QName TYPE_EVENT_EXECUTION = QName.createQName(RM_URI, "eventExecution"); static final QName TYPE_EVENT_EXECUTION = QName.createQName(RM_URI, "eventExecution");
public static final QName PROP_EVENT_EXECUTION_NAME = QName.createQName(RM_URI, "eventExecutionName"); static final QName PROP_EVENT_EXECUTION_NAME = QName.createQName(RM_URI, "eventExecutionName");
public static final QName PROP_EVENT_EXECUTION_AUTOMATIC = QName.createQName(RM_URI, "eventExecutionAutomatic"); static final QName PROP_EVENT_EXECUTION_AUTOMATIC = QName.createQName(RM_URI, "eventExecutionAutomatic");
public static final QName PROP_EVENT_EXECUTION_COMPLETE = QName.createQName(RM_URI, "eventExecutionComplete"); static final QName PROP_EVENT_EXECUTION_COMPLETE = QName.createQName(RM_URI, "eventExecutionComplete");
public static final QName PROP_EVENT_EXECUTION_COMPLETED_BY = QName.createQName(RM_URI, "eventExecutionCompletedBy"); static final QName PROP_EVENT_EXECUTION_COMPLETED_BY = QName.createQName(RM_URI, "eventExecutionCompletedBy");
public static final QName PROP_EVENT_EXECUTION_COMPLETED_AT = QName.createQName(RM_URI, "eventExecutionCompletedAt"); static final QName PROP_EVENT_EXECUTION_COMPLETED_AT = QName.createQName(RM_URI, "eventExecutionCompletedAt");
// Custom RM data aspect // Custom RM data aspect
public static final QName ASPECT_CUSTOM_RM_DATA = QName.createQName(RM_URI, "customRMData"); static final QName ASPECT_CUSTOM_RM_DATA = QName.createQName(RM_URI, "customRMData");
// marker aspect on all RM objercts (except caveat root) // marker aspect on all RM objercts (except caveat root)
public static final QName ASPECT_FILE_PLAN_COMPONENT = QName.createQName(RM_URI, "filePlanComponent"); static final QName ASPECT_FILE_PLAN_COMPONENT = QName.createQName(RM_URI, "filePlanComponent");
public static final QName PROP_ROOT_NODEREF = QName.createQName(RM_URI, "rootNodeRef"); static final QName PROP_ROOT_NODEREF = QName.createQName(RM_URI, "rootNodeRef");
// Non-electronic document // Non-electronic document
public static final QName TYPE_NON_ELECTRONIC_DOCUMENT = QName.createQName(RM_URI, "nonElectronicDocument"); static final QName TYPE_NON_ELECTRONIC_DOCUMENT = QName.createQName(RM_URI, "nonElectronicDocument");
// Records management root aspect // Records management root aspect
public static final QName ASPECT_RECORDS_MANAGEMENT_ROOT = QName.createQName(RM_URI, "recordsManagementRoot"); static final QName ASPECT_RECORDS_MANAGEMENT_ROOT = QName.createQName(RM_URI, "recordsManagementRoot");
@Deprecated // since 2.1 @Deprecated // since 2.1
public static final QName ASSOC_HOLDS = QName.createQName(RM_URI, "holds"); static final QName ASSOC_HOLDS = QName.createQName(RM_URI, "holds");
@Deprecated // since 2.1 @Deprecated // since 2.1
public static final QName ASSOC_TRANSFERS = QName.createQName(RM_URI, "transfers"); static final QName ASSOC_TRANSFERS = QName.createQName(RM_URI, "transfers");
// Hold type // Hold type
public static final QName TYPE_HOLD = QName.createQName(RM_URI, "hold"); static final QName TYPE_HOLD = QName.createQName(RM_URI, "hold");
public static final QName PROP_HOLD_REASON = QName.createQName(RM_URI, "holdReason"); static final QName PROP_HOLD_REASON = QName.createQName(RM_URI, "holdReason");
public static final QName ASSOC_FROZEN_RECORDS = QName.createQName(RM_URI, "frozenRecords"); static final QName ASSOC_FROZEN_RECORDS = QName.createQName(RM_URI, "frozenRecords");
// Record meta data aspect // Record meta data aspect
public static final QName ASPECT_RECORD_META_DATA = QName.createQName(RM_URI, "recordMetaData"); static final QName ASPECT_RECORD_META_DATA = QName.createQName(RM_URI, "recordMetaData");
// Frozen aspect // Frozen aspect
public static final QName ASPECT_FROZEN = QName.createQName(RM_URI, "frozen"); static final QName ASPECT_FROZEN = QName.createQName(RM_URI, "frozen");
public static final QName PROP_FROZEN_AT = QName.createQName(RM_URI, "frozenAt"); static final QName PROP_FROZEN_AT = QName.createQName(RM_URI, "frozenAt");
public static final QName PROP_FROZEN_BY = QName.createQName(RM_URI, "frozenBy"); static final QName PROP_FROZEN_BY = QName.createQName(RM_URI, "frozenBy");
// Transfer aspect // Transfer aspect
public static final QName TYPE_TRANSFER = QName.createQName(RM_URI, "transfer"); static final QName TYPE_TRANSFER = QName.createQName(RM_URI, "transfer");
public static final QName PROP_TRANSFER_ACCESSION_INDICATOR = QName.createQName(RM_URI, "transferAccessionIndicator"); static final QName PROP_TRANSFER_ACCESSION_INDICATOR = QName.createQName(RM_URI, "transferAccessionIndicator");
public static final QName PROP_TRANSFER_PDF_INDICATOR = QName.createQName(RM_URI, "transferPDFIndicator"); static final QName PROP_TRANSFER_PDF_INDICATOR = QName.createQName(RM_URI, "transferPDFIndicator");
public static final QName PROP_TRANSFER_LOCATION = QName.createQName(RM_URI, "transferLocation"); static final QName PROP_TRANSFER_LOCATION = QName.createQName(RM_URI, "transferLocation");
public static final QName ASSOC_TRANSFERRED = QName.createQName(RM_URI, "transferred"); static final QName ASSOC_TRANSFERRED = QName.createQName(RM_URI, "transferred");
// Transferring aspect // Transferring aspect
public static final QName ASPECT_TRANSFERRING = QName.createQName(RM_URI, "transferring"); static final QName ASPECT_TRANSFERRING = QName.createQName(RM_URI, "transferring");
// Versioned record aspect // Versioned record aspect
public static final QName ASPECT_VERSIONED_RECORD = QName.createQName(RM_URI, "versionedRecord"); static final QName ASPECT_VERSIONED_RECORD = QName.createQName(RM_URI, "versionedRecord");
// Unpublished update aspect // Unpublished update aspect
public static final QName ASPECT_UNPUBLISHED_UPDATE = QName.createQName(RM_URI, "unpublishedUpdate"); static final QName ASPECT_UNPUBLISHED_UPDATE = QName.createQName(RM_URI, "unpublishedUpdate");
public static final QName PROP_UNPUBLISHED_UPDATE = QName.createQName(RM_URI, "unpublishedUpdate"); static final QName PROP_UNPUBLISHED_UPDATE = QName.createQName(RM_URI, "unpublishedUpdate");
public static final QName PROP_UPDATE_TO = QName.createQName(RM_URI, "updateTo"); static final QName PROP_UPDATE_TO = QName.createQName(RM_URI, "updateTo");
public static final QName PROP_UPDATED_PROPERTIES = QName.createQName(RM_URI, "updatedProperties"); static final QName PROP_UPDATED_PROPERTIES = QName.createQName(RM_URI, "updatedProperties");
public static final QName PROP_PUBLISH_IN_PROGRESS = QName.createQName(RM_URI, "publishInProgress"); static final QName PROP_PUBLISH_IN_PROGRESS = QName.createQName(RM_URI, "publishInProgress");
public static final String UPDATE_TO_DISPOSITION_ACTION_DEFINITION = "dispositionActionDefinition"; static final String UPDATE_TO_DISPOSITION_ACTION_DEFINITION = "dispositionActionDefinition";
// Ghosted aspect // Ghosted aspect
public static QName ASPECT_GHOSTED = QName.createQName(RM_URI, "ghosted"); static QName ASPECT_GHOSTED = QName.createQName(RM_URI, "ghosted");
// Search rollup aspect // Search rollup aspect
public static final QName ASPECT_RM_SEARCH = QName.createQName(RM_URI, "recordSearch"); static final QName ASPECT_RM_SEARCH = QName.createQName(RM_URI, "recordSearch");
public static final QName PROP_RS_DISPOSITION_ACTION_NAME = QName.createQName(RM_URI, "recordSearchDispositionActionName"); static final QName PROP_RS_DISPOSITION_ACTION_NAME = QName.createQName(RM_URI, "recordSearchDispositionActionName");
public static final QName PROP_RS_DISPOSITION_ACTION_AS_OF = QName.createQName(RM_URI, "recordSearchDispositionActionAsOf"); static final QName PROP_RS_DISPOSITION_ACTION_AS_OF = QName.createQName(RM_URI, "recordSearchDispositionActionAsOf");
public static final QName PROP_RS_DISPOSITION_EVENTS_ELIGIBLE = QName.createQName(RM_URI, "recordSearchDispositionEventsEligible"); static final QName PROP_RS_DISPOSITION_EVENTS_ELIGIBLE = QName.createQName(RM_URI, "recordSearchDispositionEventsEligible");
public static final QName PROP_RS_DISPOSITION_EVENTS = QName.createQName(RM_URI, "recordSearchDispositionEvents"); static final QName PROP_RS_DISPOSITION_EVENTS = QName.createQName(RM_URI, "recordSearchDispositionEvents");
public static final QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriod"); static final QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriod");
public static final QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriodExpression"); static final QName PROP_RS_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION = QName.createQName(RM_URI, "recordSearchVitalRecordReviewPeriodExpression");
public static final QName PROP_RS_DISPOSITION_PERIOD = QName.createQName(RM_URI, "recordSearchDispositionPeriod"); static final QName PROP_RS_DISPOSITION_PERIOD = QName.createQName(RM_URI, "recordSearchDispositionPeriod");
public static final QName PROP_RS_DISPOSITION_PERIOD_EXPRESSION = QName.createQName(RM_URI, "recordSearchDispositionPeriodExpression"); static final QName PROP_RS_DISPOSITION_PERIOD_EXPRESSION = QName.createQName(RM_URI, "recordSearchDispositionPeriodExpression");
public static final QName PROP_RS_HAS_DISPOITION_SCHEDULE = QName.createQName(RM_URI, "recordSearchHasDispositionSchedule"); static final QName PROP_RS_HAS_DISPOITION_SCHEDULE = QName.createQName(RM_URI, "recordSearchHasDispositionSchedule");
public static final QName PROP_RS_DISPOITION_INSTRUCTIONS = QName.createQName(RM_URI, "recordSearchDispositionInstructions"); static final QName PROP_RS_DISPOITION_INSTRUCTIONS = QName.createQName(RM_URI, "recordSearchDispositionInstructions");
public static final QName PROP_RS_DISPOITION_AUTHORITY = QName.createQName(RM_URI, "recordSearchDispositionAuthority"); static final QName PROP_RS_DISPOITION_AUTHORITY = QName.createQName(RM_URI, "recordSearchDispositionAuthority");
public static final QName PROP_RS_HOLD_REASON = QName.createQName(RM_URI, "recordSearchHoldReason"); static final QName PROP_RS_HOLD_REASON = QName.createQName(RM_URI, "recordSearchHoldReason");
// Loaded Data Set Ids // Loaded Data Set Ids
public static final QName ASPECT_LOADED_DATA_SET_ID = QName.createQName(RM_URI, "loadedDataSetId"); static final QName ASPECT_LOADED_DATA_SET_ID = QName.createQName(RM_URI, "loadedDataSetId");
public static final QName PROP_LOADED_DATA_SET_IDS = QName.createQName(RM_URI, "loadedDataSetIds"); static final QName PROP_LOADED_DATA_SET_IDS = QName.createQName(RM_URI, "loadedDataSetIds");
// Extended security aspect // Extended security aspect
public static final QName ASPECT_EXTENDED_SECURITY = QName.createQName(RM_URI, "extendedSecurity"); static final QName ASPECT_EXTENDED_SECURITY = QName.createQName(RM_URI, "extendedSecurity");
public static final QName PROP_READERS = QName.createQName(RM_URI, "readers"); static final QName PROP_READERS = QName.createQName(RM_URI, "readers");
public static final QName PROP_WRITERS = QName.createQName(RM_URI, "writers"); static final QName PROP_WRITERS = QName.createQName(RM_URI, "writers");
// Originating details of a record // Originating details of a record
public static final QName ASPECT_RECORD_ORIGINATING_DETAILS = QName.createQName(RM_URI, "recordOriginatingDetails"); static final QName ASPECT_RECORD_ORIGINATING_DETAILS = QName.createQName(RM_URI, "recordOriginatingDetails");
public static final QName PROP_RECORD_ORIGINATING_USER_ID = QName.createQName(RM_URI, "recordOriginatingUserId"); static final QName PROP_RECORD_ORIGINATING_USER_ID = QName.createQName(RM_URI, "recordOriginatingUserId");
public static final QName PROP_RECORD_ORIGINATING_CREATION_DATE = QName.createQName(RM_URI, "recordOriginatingCreationDate"); static final QName PROP_RECORD_ORIGINATING_CREATION_DATE = QName.createQName(RM_URI, "recordOriginatingCreationDate");
public static final QName PROP_RECORD_ORIGINATING_LOCATION = QName.createQName(RM_URI, "recordOriginatingLocation"); static final QName PROP_RECORD_ORIGINATING_LOCATION = QName.createQName(RM_URI, "recordOriginatingLocation");
// Rejection details of a record // Rejection details of a record
public static final QName ASPECT_RECORD_REJECTION_DETAILS = QName.createQName(RM_URI, "recordRejectionDetails"); static final QName ASPECT_RECORD_REJECTION_DETAILS = QName.createQName(RM_URI, "recordRejectionDetails");
public static final QName PROP_RECORD_REJECTION_USER_ID = QName.createQName(RM_URI, "recordRejectionUserId"); static final QName PROP_RECORD_REJECTION_USER_ID = QName.createQName(RM_URI, "recordRejectionUserId");
public static final QName PROP_RECORD_REJECTION_DATE = QName.createQName(RM_URI, "recordRejectionDate"); static final QName PROP_RECORD_REJECTION_DATE = QName.createQName(RM_URI, "recordRejectionDate");
public static final QName PROP_RECORD_REJECTION_REASON = QName.createQName(RM_URI, "recordRejectionReason"); static final QName PROP_RECORD_REJECTION_REASON = QName.createQName(RM_URI, "recordRejectionReason");
// Countable aspect // Countable aspect
public static final QName ASPECT_COUNTABLE = QName.createQName(RM_URI, "countable"); static final QName ASPECT_COUNTABLE = QName.createQName(RM_URI, "countable");
public static final QName PROP_COUNT = QName.createQName(RM_URI, "count"); static final QName PROP_COUNT = QName.createQName(RM_URI, "count");
} }

View File

@@ -28,10 +28,10 @@ import org.alfresco.service.namespace.QName;
public interface ReportModel public interface ReportModel
{ {
// Namespace details // Namespace details
public static final String RMR_URI = "http://www.alfresco.org/model/recordsmanagementreport/1.0"; static final String RMR_URI = "http://www.alfresco.org/model/recordsmanagementreport/1.0";
public static final String RMR_PREFIX = "rmr"; static final String RMR_PREFIX = "rmr";
public static final QName TYPE_REPORT = QName.createQName(RMR_URI, "report"); static final QName TYPE_REPORT = QName.createQName(RMR_URI, "report");
public static final QName TYPE_DESTRUCTION_REPORT = QName.createQName(RMR_URI, "destructionReport"); static final QName TYPE_DESTRUCTION_REPORT = QName.createQName(RMR_URI, "destructionReport");
public static final QName TYPE_TRANSFER_REPORT = QName.createQName(RMR_URI, "transferReport"); static final QName TYPE_TRANSFER_REPORT = QName.createQName(RMR_URI, "transferReport");
} }

View File

@@ -34,34 +34,34 @@ import org.alfresco.service.cmr.repository.NodeRef;
public interface FilePlanRoleService public interface FilePlanRoleService
{ {
/** Default role names */ /** Default role names */
public static final String ROLE_USER = "User"; static final String ROLE_USER = "User";
public static final String ROLE_POWER_USER = "PowerUser"; static final String ROLE_POWER_USER = "PowerUser";
public static final String ROLE_SECURITY_OFFICER = "SecurityOfficer"; static final String ROLE_SECURITY_OFFICER = "SecurityOfficer";
public static final String ROLE_RECORDS_MANAGER = "RecordsManager"; static final String ROLE_RECORDS_MANAGER = "RecordsManager";
public static final String ROLE_ADMIN = "Administrator"; static final String ROLE_ADMIN = "Administrator";
public static final String ROLE_EXTENDED_READERS = "ExtendedReaders"; static final String ROLE_EXTENDED_READERS = "ExtendedReaders";
public static final String ROLE_EXTENDED_WRITERS = "ExtendedWriters"; static final String ROLE_EXTENDED_WRITERS = "ExtendedWriters";
/** System roles */ /** System roles */
public static final List<String> SYSTEM_ROLES = Arrays.asList( static final List<String> SYSTEM_ROLES = Arrays.asList(
ROLE_EXTENDED_READERS, ROLE_EXTENDED_READERS,
ROLE_EXTENDED_WRITERS ROLE_EXTENDED_WRITERS
); );
/** /**
* Sets up the roles on a new file plan. * Sets up the roles on a new file plan.
* *
* @param filePlan file plan * @param filePlan file plan
*/ */
void setupFilePlanRoles(NodeRef filePlan); void setupFilePlanRoles(NodeRef filePlan);
/** /**
* Tears down the roles on a file plan. * Tears down the roles on a file plan.
* *
* @param filePlan file plan * @param filePlan file plan
*/ */
void tearDownFilePlanRoles(NodeRef filePlan); void tearDownFilePlanRoles(NodeRef filePlan);
/** /**
* Returns the name of the container group for all roles of a specified file * Returns the name of the container group for all roles of a specified file
* plan. * plan.

View File

@@ -30,18 +30,18 @@ import org.alfresco.service.cmr.repository.Period;
public interface VitalRecordService public interface VitalRecordService
{ {
/** Period 'none' */ /** Period 'none' */
static final Period PERIOD_NONE = new Period("none|0"); final Period PERIOD_NONE = new Period("none|0");
/** /**
* Setup the vital record definition for the given node. * Setup the vital record definition for the given node.
* *
* @param nodeRef node reference * @param nodeRef node reference
*/ */
void setupVitalRecordDefinition(NodeRef nodeRef); void setupVitalRecordDefinition(NodeRef nodeRef);
/** /**
* Gets the vital record definition details for the node. * Gets the vital record definition details for the node.
* *
* @param nodeRef node reference * @param nodeRef node reference
* @return VitalRecordDefinition vital record definition details * @return VitalRecordDefinition vital record definition details
*/ */

View File

@@ -22,7 +22,7 @@ import java.util.List;
public interface ParameterSubstitutionSuggester public interface ParameterSubstitutionSuggester
{ {
final static int DEFAULT_MAXIMUM_NUMBER_SUGGESTIONS = 10; static int DEFAULT_MAXIMUM_NUMBER_SUGGESTIONS = 10;
public List<String> getSubstitutionSuggestions(final String substitutionFragment); List<String> getSubstitutionSuggestions(final String substitutionFragment);
} }

View File

@@ -29,15 +29,15 @@ public interface RMAuthority
/** /**
* The default rm zone. * The default rm zone.
*/ */
public static String ZONE_APP_RM = "APP.RM"; static String ZONE_APP_RM = "APP.RM";
/** /**
* The constant for all roles display name * The constant for all roles display name
*/ */
public static String ALL_ROLES_DISPLAY_NAME = "All Roles"; static String ALL_ROLES_DISPLAY_NAME = "All Roles";
/** /**
* The constant for all roles prefix * The constant for all roles prefix
*/ */
public static String ALL_ROLES_PREFIX = "AllRoles"; static String ALL_ROLES_PREFIX = "AllRoles";
} }

View File

@@ -24,11 +24,11 @@ import org.alfresco.service.cmr.security.PermissionService;
/** /**
* Extended Permission Service Interface used in RM. * Extended Permission Service Interface used in RM.
* *
* @author Roy Wetherall * @author Roy Wetherall
* @since 2.1 * @since 2.1
*/ */
public interface ExtendedPermissionService extends PermissionService public interface ExtendedPermissionService extends PermissionService
{ {
public Set<String> getWriters(Long aclId); Set<String> getWriters(Long aclId);
} }

View File

@@ -29,17 +29,17 @@ import org.alfresco.service.namespace.QName;
public interface RMWorkflowModel public interface RMWorkflowModel
{ {
// Namespace URI // Namespace URI
public static String RM_WORKFLOW_URI = "http://www.alfresco.org/model/rmworkflow/1.0"; static String RM_WORKFLOW_URI = "http://www.alfresco.org/model/rmworkflow/1.0";
// Namespace prefix // Namespace prefix
public static String RM_WORKFLOW_PREFIX = "rmwf"; static String RM_WORKFLOW_PREFIX = "rmwf";
// Mixed Assignees // Mixed Assignees
public static QName RM_MIXED_ASSIGNEES = QName.createQName(RM_WORKFLOW_URI, "mixedAssignees"); static QName RM_MIXED_ASSIGNEES = QName.createQName(RM_WORKFLOW_URI, "mixedAssignees");
// Requested Information // Requested Information
public static QName RM_REQUESTED_INFORMATION = QName.createQName(RM_WORKFLOW_URI, "requestedInformation"); static QName RM_REQUESTED_INFORMATION = QName.createQName(RM_WORKFLOW_URI, "requestedInformation");
// Rule creator // Rule creator
public static QName RM_RULE_CREATOR = QName.createQName(RM_WORKFLOW_URI, "ruleCreator"); static QName RM_RULE_CREATOR = QName.createQName(RM_WORKFLOW_URI, "ruleCreator");
} }