@@ -17,26 +17,14 @@ private SDMConstants() {
1717 "SDM.Attachments.AdditionalProperty.name" ;
1818 public static final String SDM_ANNOTATION_ADDITIONALPROPERTY =
1919 "SDM.Attachments.AdditionalProperty" ;
20- public static final String DUPLICATE_FILE_IN_DRAFT_ERROR_MESSAGE =
21- "The file(s) %s have been added multiple times. Please rename and try again." ;
22- public static final String FILES_RENAME_WARNING_MESSAGE =
23- "The following files could not be renamed as they already exist:\n %s\n " ;
24- public static final String COULD_NOT_UPDATE_THE_ATTACHMENT = "Could not update the attachment" ;
25- public static final String ATTACHMENT_NOT_FOUND = "Attachment not found" ;
20+
2621 public static final String GENERIC_ERROR = "Could not %s the document." ;
27- public static final String VERSIONED_REPO_ERROR =
28- "Upload not supported for versioned repositories." ;
29- public static final String VIRUS_REPO_ERROR_MORE_THAN_400MB =
30- "You cannot upload files that are larger than 400 MB" ;
31- public static final String VIRUS_REPO_ERROR_MORE_THAN_400MB_MESSAGE = "SDM.VirusRepoErrorMessage" ;
22+
3223 public static final String VIRUS_ERROR = "%s contains potential malware and cannot be uploaded." ;
33- public static final String VIRUS_ERROR_MESSAGE = "SDM.VirusErrorMessage" ;
34- public static final String SDM_DUPLICATE_ATTACHMENT = "SDM.DuplicateAttachment" ;
35- public static final String REPOSITORY_ERROR = "Failed to get repository info." ;
24+
3625 public static final String SDM_MISSING_ROLES_EXCEPTION_MSG =
3726 "You do not have the required permissions to update attachments. Kindly contact the admin" ;
38- public static final String SDM_ROLES_ERROR_MESSAGE =
39- "Unable to rename the file due to an error at the server" ;
27+
4028 public static final String SDM_ENV_NAME = "sdm" ;
4129 public static final String ENTITY_PROCESSING_ERROR_LINK =
4230 "Failed to create link due to error while processing entity" ;
@@ -47,28 +35,16 @@ private SDMConstants() {
4735 public static final String SDM_CONNECTIONPOOL_PREFIX = "cds.attachments.sdm.http.%s" ;
4836 public static final String USER_NOT_AUTHORISED_ERROR =
4937 "You do not have the required permissions to upload attachments. Please contact your administrator for access." ;
50- public static final String MIMETYPE_INVALID_ERROR =
51- "This file type is not allowed in this repository. Contact your administrator for assistance." ;
52- public static final String USER_NOT_AUTHORISED_ERROR_LINK =
53- "You do not have the required permissions to create links. Please contact your administrator for access." ;
38+
5439 public static final String USER_NOT_AUTHORISED_ERROR_OPEN_LINK =
5540 "You do not have the required permissions to open links. Please contact your administrator for access." ;
5641 public static final String FILE_NOT_FOUND_ERROR = "Object not found in repository" ;
5742 public static final Integer MAX_CONNECTIONS = 100 ;
5843 public static final int CONNECTION_TIMEOUT = 1200 ;
5944 public static final int CHUNK_SIZE = 20 * 1024 * 1024 ; // 20MB Chunk Size
60- public static final String ONBOARD_REPO_MESSAGE =
61- "Repository with name %s and id %s onboarded successfully" ;
62- public static final String REPOSITORY_ALREADY_EXIST =
63- "Repository with name %s and id %s already exists. Skipping onboarding." ;
64- public static final String ONBOARD_REPO_ERROR_MESSAGE =
65- "Error in onboarding repository with name %s" ;
66- public static final String UPDATE_ATTACHMENT_ERROR = "Could not update the attachment" ;
6745 public static final String ATTACHMENT_MAXCOUNT = "SDM.Attachments.maxCount" ;
68- public static final String ATTACHMENT_MAXCOUNT_ERROR_MSG = "SDM.Attachments.maxCountError" ;
6946 public static final String MAX_COUNT_ERROR_MESSAGE =
7047 "Cannot upload more than %s attachments as set up by the application" ;
71- public static final String FETCH_CHANGELOG_ERROR = "Could not fetch the changelog" ;
7248 public static final String DRAFT_READONLY_CONTEXT = "DRAFT_READONLY_CONTEXT" ;
7349 public static final Integer TIMEOUT_MILLISECONDS = 900000 ;
7450 public static final Integer MAX_CONNECTIONS_PER_ROUTE = 50 ;
@@ -77,29 +53,6 @@ private SDMConstants() {
7753 public static final String TECHNICAL_USER_FLOW = "TECHNICAL_CREDENTIALS_FLOW" ;
7854 public static final String NAMED_USER_FLOW = "TOKEN_EXCHANGE" ;
7955 public static final String ANNOTATION_IS_MEDIA_DATA = "_is_media_data" ;
80- public static final String FAILED_TO_COPY_ATTACHMENT = "Failed to copy attachment" ;
81-
82- // Error messages for move operations
83- public static final String SDM_MOVE_OPERATION_FAILED = "SDM move operation failed" ;
84- public static final String VALIDATION_FAILED_PREFIX = "Validation failed: " ;
85- public static final String VALIDATION_FAILED_DEFAULT_MESSAGE =
86- "Validation failed: Unable to process attachment properties or metadata" ;
87- public static final String INVALID_SECONDARY_PROPERTIES_PREFIX =
88- "Invalid secondary properties detected: " ;
89- public static final String INVALID_SECONDARY_PROPERTIES_SUFFIX =
90- ". Attachment rolled back to source." ;
91- public static final String FAILED_TO_MOVE_ATTACHMENT = "Failed to move attachment" ;
92- public static final String FAILED_TO_MOVE_ATTACHMENT_MSG = "SDM.Move.failedToMoveAttachmentError" ;
93- public static final String MOVE_OPERATION_PARTIAL_FAILURE =
94- "Move operation completed with some failures" ;
95- public static final String FAILED_TO_FETCH_UP_ID = "Failed to fetch up_id" ;
96- public static final String FAILED_TO_FETCH_FACET =
97- "Invalid facet format, unable to extract required information." ;
98- public static final String PARENT_ENTITY_NOT_FOUND_ERROR = "Unable to find parent entity: %s" ;
99- public static final String COMPOSITION_NOT_FOUND_ERROR =
100- "Unable to find composition '%s' in entity: %s" ;
101- public static final String TARGET_ATTACHMENT_ENTITY_NOT_FOUND_ERROR =
102- "Unable to find target attachment entity: %s" ;
10356
10457 public static final String SINGLE_RESTRICTED_CHARACTER_IN_FILE =
10558 "\" %s\" contains unsupported characters (‘/’ or ‘\\ ’). Rename and try again." ;
0 commit comments