diff --git a/config/alfresco/bootstrap-context.xml b/config/alfresco/bootstrap-context.xml index 7ea83ead81..5dd5fc2b72 100644 --- a/config/alfresco/bootstrap-context.xml +++ b/config/alfresco/bootstrap-context.xml @@ -145,10 +145,6 @@ /${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.scripts.childname} alfresco/bootstrap/example_javascripts.acp - - /${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.childname} - alfresco/bootstrap/file_plan.xml - @@ -182,6 +178,10 @@ + + + + diff --git a/config/alfresco/bootstrap/categories.xml b/config/alfresco/bootstrap/categories.xml index 87012bd9cc..5e33800a75 100644 --- a/config/alfresco/bootstrap/categories.xml +++ b/config/alfresco/bootstrap/categories.xml @@ -1098,102 +1098,10 @@ + - + -Records Categoriesrm:recordCategory-root - - Review Periodrm:reviewPeriod-root - - Nonerm:reviewPeriod-0 - TBDrm:reviewPeriod-1 - Annuallyrm:reviewPeriod-2 - Calendar Year Endrm:reviewPeriod-3 - Fiscal Year Endrm:reviewPeriod-4 - Semi-Annuallyrm:reviewPeriod-5 - Quarterlyrm:reviewPeriod-6 - Monthlyrm:reviewPeriod-7 - Weeklyrm:reviewPeriod-8 - Dailyrm:reviewPeriod-9 - - - - Media Typesrm:mediaTypes-root - - TBDrm:mediaTypes-0 - Electronicrm:mediaTypes-1 - Paperrm:mediaTypes-2 - Microformrm:mediaTypes-3 - Portablerm:mediaTypes-4 - - - - Markingsrm:markings-root - - NONErm:markings-0 - - Classificationsrm:markings-1 - - UNCLASSIFIEDrm:markings-1-1 - RESTRICTEDrm:markings-1-2 - CONFIDENTIALrm:markings-1-3 - SECRETrm:markings-1-4 - TOP SECRETrm:markings-1-5 - - - - Handlingrm:markings-2 - - COMSECrm:markings-2-1 - RDrm:markings-2-2 - FRDrm:markings-2-3 - SPECAT-A SIOP-ESIrm:markings-2-4 - SPECAT-Brm:markings-2-5 - US-UK EYES ONLYrm:markings-2-6 - ATOMALrm:markings-2-7 - EXCLUSIVErm:markings-2-8 - CRYPTOrm:markings-2-9 - TRCrm:markings-2-10 - FOR OFFICIAL USE ONLYrm:markings-2-11 - SBUrm:markings-2-12 - DEA SENSITIVErm:markings-2-13 - DOD UCNIrm:markings-2-14 - EXDISrm:markings-2-15 - LIMDISrm:markings-2-16 - NODISrm:markings-2-17 - SOSUSrm:markings-2-18 - EYES ONLYrm:markings-2-19 - - - - Disseminationrm:markings-3 - - ORCONrm:markings-3-1 - PROPINrm:markings-3-2 - NOFORNrm:markings-3-3 - NOCONTRACTrm:markings-3-34 - FOUOrm:markings-3-5 - RELTOrm:markings-3-6 - EYES ONLYrm:markings-3-7 - - - - Reasonrm:markings-4 - - CLASSrm:markings-4-1 - RSNrm:markings-4-2 - DERVrm:markings-4-3 - DNGrm:markings-4-4 - DECLrm:markings-4-5 - - - - - - - - - diff --git a/config/alfresco/bootstrap/example_javascripts.acp b/config/alfresco/bootstrap/example_javascripts.acp index 48bf6636e4..4aea5d4048 100644 Binary files a/config/alfresco/bootstrap/example_javascripts.acp and b/config/alfresco/bootstrap/example_javascripts.acp differ diff --git a/config/alfresco/bootstrap/file_plan.xml b/config/alfresco/bootstrap/file_plan.xml deleted file mode 100644 index 62003b9bb5..0000000000 --- a/config/alfresco/bootstrap/file_plan.xml +++ /dev/null @@ -1,828 +0,0 @@ - - - - admin - 2006-09-02T09:54:43.796+01:00 - 1.4.0 (Dev @build-number@) - /app:company_home/app:dictionary/app:space_templates/cm:File_x0020_Plan - - - - - - - - - - - - - false - N/A - ISF - /app:company_home/app:dictionary/app:content_templates/cm:records_report.ftl - space-icon-cd - 15cc634c-3a5c-11db-ae95-09a9ea11d246 - false - GRS 1 item 1 - /cm:generalclassifiable/cm:Records_x0020_Categories/cm:Review_x0020_Period/cm:Quarterly - /cm:generalclassifiable/cm:Records_x0020_Categories/cm:Media_x0020_Types/cm:Electronic - 1 - false - 2006-09-02T09:21:51.750+01:00 - false - NARA - 1.0 - admin - false - false - false - Obsolete or Superseded - File Plan - SpacesStore - /cm:generalclassifiable/cm:Records_x0020_Categories/cm:Review_x0020_Period/cm:Quarterly - File Plan Template for Records Management - 458 - File Plan Template - false - 5.0 - false - /cm:generalclassifiable/cm:Records_x0020_Categories/cm:Markings/cm:NONE - admin - - false - 2006-09-02T09:53:17.750+01:00 - Destroy/delete when superseded by a like survey or study, or when no longer needed, whichever is later. - workspace - 0000-00 - - Defense Information Systems Agency - false - 2.0 - - - - - - - - - - admin - 2006-09-02T09:41:28.718+01:00 - 7836ac9c-3a5d-11db-ae95-09a9ea11d246 - admin - 459 - workspace - 7836ac9c-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:31:46.093+01:00 - - - - - - - - - - - Add Email Aspect - 783b678e-3a5d-11db-ae95-09a9ea11d246 - 460 - Email Handling - 2006-09-02T09:31:46.109+01:00 - admin - false - 2006-09-02T09:31:46.250+01:00 - true - admin - workspace - false - - - inbound - - - 783b678e-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - false - - - - 78343b97-3a5d-11db-ae95-09a9ea11d246 - 461 - 2006-09-02T09:31:46.140+01:00 - admin - 2006-09-02T09:31:46.250+01:00 - - - - admin - composite-action - workspace - 78343b97-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - admin - 2006-09-02T09:31:46.250+01:00 - 78343b98-3a5d-11db-ae95-09a9ea11d246 - admin - 462 - compare-mime-type - workspace - false - 78343b98-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:31:46.171+01:00 - - - - - - - - - - - message/rfc822 - - admin - value - 2006-09-02T09:31:46.250+01:00 - 78474e6f-3a5d-11db-ae95-09a9ea11d246 - admin - 463 - workspace - 78474e6f-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:31:46.187+01:00 - - - - - - - - - - - - - - - false - - - - 78343b99-3a5d-11db-ae95-09a9ea11d246 - 464 - 2006-09-02T09:31:46.203+01:00 - admin - 2006-09-02T09:31:46.250+01:00 - - - - admin - add-features - workspace - 78343b99-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - {http://www.alfresco.org/model/content/1.0}emailed - - admin - aspect-name - 2006-09-02T09:31:46.250+01:00 - 784c0960-3a5d-11db-ae95-09a9ea11d246 - admin - 465 - workspace - 784c0960-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:31:46.234+01:00 - - - - - - - - - - - - - - - - - - - - Add record aspect and set up record data - d091637d-3a5d-11db-ae95-09a9ea11d246 - 466 - Record Set-up - 2006-09-02T09:34:14.312+01:00 - admin - false - 2006-09-02T09:34:14.546+01:00 - true - admin - workspace - false - - - inbound - - - d091637d-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - false - - - - d08ca886-3a5d-11db-ae95-09a9ea11d246 - 467 - 2006-09-02T09:34:14.343+01:00 - admin - 2006-09-02T09:34:14.546+01:00 - - - - admin - composite-action - workspace - d08ca886-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - admin - 2006-09-02T09:34:14.546+01:00 - d08ca887-3a5d-11db-ae95-09a9ea11d246 - admin - 468 - is-subtype - workspace - false - d08ca887-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:34:14.375+01:00 - - - - - - - - - - - {http://www.alfresco.org/model/content/1.0}content - - admin - type - 2006-09-02T09:34:14.546+01:00 - d09d4a5f-3a5d-11db-ae95-09a9ea11d246 - admin - 469 - workspace - d09d4a5f-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:34:14.390+01:00 - - - - - - - - - - - - - - - false - - - - d08ca888-3a5d-11db-ae95-09a9ea11d246 - 470 - 2006-09-02T09:34:14.421+01:00 - admin - 2006-09-02T09:34:14.546+01:00 - - - - admin - add-features - workspace - d08ca888-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - {http://www.alfresco.org/model/record/1.0}record - - admin - aspect-name - 2006-09-02T09:34:14.546+01:00 - d0a47550-3a5d-11db-ae95-09a9ea11d246 - admin - 471 - workspace - d0a47550-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:34:14.453+01:00 - - - - - - - - - - - - - false - - - - d08ca889-3a5d-11db-ae95-09a9ea11d246 - 472 - 2006-09-02T09:34:14.484+01:00 - admin - 2006-09-02T09:34:14.546+01:00 - - - - admin - extract-metadata - workspace - d08ca889-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - false - - - - d08ca88a-3a5d-11db-ae95-09a9ea11d246 - 473 - 2006-09-02T09:34:14.515+01:00 - admin - 2006-09-02T09:34:14.546+01:00 - - - - admin - script - workspace - d08ca88a-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - /app:company_home/app:dictionary/app:scripts/cm:record_setup.js - - admin - script-ref - 2006-09-02T09:34:14.546+01:00 - d0b2cd31-3a5d-11db-ae95-09a9ea11d246 - admin - 474 - workspace - d0b2cd31-3a5d-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:34:14.531+01:00 - - - - - - - - - - - - - - - - - - - - Set up record folder - 96342c65-3a5e-11db-ae95-09a9ea11d246 - 475 - Records Folder - 2006-09-02T09:39:45.906+01:00 - admin - false - 2006-09-02T09:39:46.093+01:00 - true - admin - workspace - false - - - inbound - - - 96342c65-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - false - - - - 9631e26f-3a5e-11db-ae95-09a9ea11d246 - 476 - 2006-09-02T09:39:45.921+01:00 - admin - 2006-09-02T09:39:46.093+01:00 - - - - admin - composite-action - workspace - 9631e26f-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - admin - 2006-09-02T09:39:46.093+01:00 - 9631e270-3a5e-11db-ae95-09a9ea11d246 - admin - 477 - is-subtype - workspace - false - 9631e270-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:39:45.953+01:00 - - - - - - - - - - - {http://www.alfresco.org/model/content/1.0}folder - - admin - type - 2006-09-02T09:39:46.093+01:00 - 96428447-3a5e-11db-ae95-09a9ea11d246 - admin - 478 - workspace - 96428447-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:39:45.984+01:00 - - - - - - - - - - - - - - - false - - - - 9631e271-3a5e-11db-ae95-09a9ea11d246 - 479 - 2006-09-02T09:39:46.000+01:00 - admin - 2006-09-02T09:39:46.093+01:00 - - - - admin - add-features - workspace - 9631e271-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - {http://www.alfresco.org/model/record/1.0}record - - admin - aspect-name - 2006-09-02T09:39:46.093+01:00 - 9649b038-3a5e-11db-ae95-09a9ea11d246 - admin - 480 - workspace - 9649b038-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:39:46.031+01:00 - - - - - - - - - - - - - false - - - - 9631e272-3a5e-11db-ae95-09a9ea11d246 - 481 - 2006-09-02T09:39:46.046+01:00 - admin - 2006-09-02T09:39:46.093+01:00 - - - - admin - script - workspace - 9631e272-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - /app:company_home/app:dictionary/app:scripts/cm:record_folder.js - - admin - script-ref - 2006-09-02T09:39:46.093+01:00 - 964e6b29-3a5e-11db-ae95-09a9ea11d246 - admin - 482 - workspace - 964e6b29-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:39:46.078+01:00 - - - - - - - - - - - - - - - - - - - - Process record lifecycle based upon the file plan - d36b6897-3a5e-11db-ae95-09a9ea11d246 - 483 - Record Lifecycle - 2006-09-02T09:41:28.609+01:00 - admin - false - 2006-09-02T09:41:28.718+01:00 - true - admin - workspace - false - - - update - - - d36b6897-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - false - - - - d36b6892-3a5e-11db-ae95-09a9ea11d246 - 484 - 2006-09-02T09:41:28.640+01:00 - admin - 2006-09-02T09:41:28.734+01:00 - - - - admin - composite-action - workspace - d36b6892-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - admin - 2006-09-02T09:41:28.734+01:00 - d36b6893-3a5e-11db-ae95-09a9ea11d246 - admin - 485 - no-condition - workspace - false - d36b6893-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:41:28.656+01:00 - - - - - - - - - - - - false - - - - d36b6894-3a5e-11db-ae95-09a9ea11d246 - 486 - 2006-09-02T09:41:28.687+01:00 - admin - 2006-09-02T09:41:28.734+01:00 - - - - admin - script - workspace - d36b6894-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - - - - - - - - - - - /app:company_home/app:dictionary/app:scripts/cm:record_lifecycle.js - - admin - script-ref - 2006-09-02T09:41:28.734+01:00 - d37c3179-3a5e-11db-ae95-09a9ea11d246 - admin - 487 - workspace - d37c3179-3a5e-11db-ae95-09a9ea11d246 - SpacesStore - 2006-09-02T09:41:28.703+01:00 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml index 3243cd34f8..42266c5fa8 100644 --- a/config/alfresco/core-services-context.xml +++ b/config/alfresco/core-services-context.xml @@ -412,7 +412,6 @@ alfresco/model/bpmModel.xml alfresco/model/applicationModel.xml alfresco/model/forumModel.xml - alfresco/model/recordsModel.xml org/alfresco/repo/security/authentication/userModel.xml diff --git a/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoSchemaUpdate-1.4-2.sql b/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoSchemaUpdate-1.4-2.sql index 84f27b9117..60ad676333 100644 --- a/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoSchemaUpdate-1.4-2.sql +++ b/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoSchemaUpdate-1.4-2.sql @@ -45,6 +45,9 @@ ALTER TABLE alf_node_status DROP COLUMN change_txn_id, ADD CONSTRAINT FK71C2002B9E57C13D FOREIGN KEY (transaction_id) REFERENCES alf_transaction (id), ADD INDEX FK71C2002B9E57C13D (transaction_id); +ALTER TABLE alf_node_status + DROP COLUMN deleted + ;(optional) -- -- Record script finish diff --git a/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.Oracle9Dialect/AlfrescoSchemaUpdate-1.4-2.sql b/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.Oracle9Dialect/AlfrescoSchemaUpdate-1.4-2.sql index 89e82d22d6..ee3de98dad 100644 --- a/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.Oracle9Dialect/AlfrescoSchemaUpdate-1.4-2.sql +++ b/config/alfresco/dbscripts/upgrade/1.4/org.hibernate.dialect.Oracle9Dialect/AlfrescoSchemaUpdate-1.4-2.sql @@ -54,6 +54,7 @@ update alf_node_status ns SET ns.transaction_id = alter table alf_node_status DROP COLUMN change_txn_id; alter table alf_node_status ADD CONSTRAINT FK71C2002B9E57C13D FOREIGN KEY (transaction_id) REFERENCES alf_transaction (id); create index FK71C2002B9E57C13D on alf_node_status (transaction_id); +alter table alf_node_status DROP COLUMN deleted;(optional) -- -- Record script finish diff --git a/config/alfresco/extension/file-servers-custom.xml b/config/alfresco/extension/file-servers-custom.xml new file mode 100644 index 0000000000..95bf3f6d5f --- /dev/null +++ b/config/alfresco/extension/file-servers-custom.xml @@ -0,0 +1,55 @@ + + + + + + + + + + workspace://SpacesStore + /app:company_home + + + + __Alfresco.url + http://${localname}:8080/alfresco/ + + + + + + + + + + alfresco/desktop/Alfresco.exe + http://${localname}:8080/alfresco/ + + + org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction + CheckInOut + __CheckInOut.exe + + + org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction + JavaScriptURL + __ShowDetails.exe + + anyFiles + copyToTarget + + + + + + + + + + diff --git a/config/alfresco/import-export-context.xml b/config/alfresco/import-export-context.xml index a171b3642e..d3844ae525 100644 --- a/config/alfresco/import-export-context.xml +++ b/config/alfresco/import-export-context.xml @@ -227,6 +227,9 @@ --> + + + diff --git a/config/alfresco/model/recordsModel.xml b/config/alfresco/model/recordsModel.xml deleted file mode 100644 index cf135f6a5a..0000000000 --- a/config/alfresco/model/recordsModel.xml +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - - - Records Management Model - John Newton - 1.0 - - - - - - - - - - - - - - - - - - - - - - RM: User Specified Data - - - Privacy Act System - d:text - false - - - - - - - - RM: File Plan - - - Record Category Identifier - d:text - true - - - Disposition Authority - d:text - true - - - Permanent Record Indicator - d:boolean - true - - - Disposition Instructions - d:text - true - - - Contains Records Folders - d:boolean - true - - - Name of Folders - d:text - false - - - Default Media Format - d:category - false - - - Default Marking List - d:category - false - true - - - Default Originating Org - d:text - false - - - - - Vital Record Indicator - d:boolean - true - - - Vital Record Review Period - d:category - true - - - - - Process Cutoff - d:boolean - false - - - Event Trigger - d:text - false - - - Cutoff Period - d:category - false - - - Cutoff When Obsolete - d:boolean - false - - - Cutoff When Superseded - d:boolean - false - - - - - Process Hold - d:boolean - false - - - Hold Period in Years - d:float - false - - - Discretionary Hold - d:boolean - false - - - - - Process Transfer - d:boolean - false - - - Transfer Location - d:text - false - - - Transfer Blocksize in Years - d:float - false - - - - - Process Accession - d:boolean - false - - - Time to Accession in Years - d:float - false - - - Accession Location - d:text - false - - - Accession Blocksize in Years - d:float - false - - - - - Process Destruction - d:boolean - false - - - Destruction Location - d:text - false - - - - - Note - d:text - false - - - Record Counter - d:int - false - - - - rma:userSpecifiedData - - - - - - RM: Superseded - - - Superceded By - - rma:supersededBy - false - true - - - cm:content - rma:supersedes - false - true - - - - - - - - - RM: Record - - - Unique Record Identifier - d:text - true - - - Subject - d:text - - - Format - d:text - true - - - Media Format - d:category - true - - - Date Filed - d:datetime - true - - - Publication Date - d:datetime - true - - - Date Received - d:datetime - false - - - Originator - d:text - true - - - Originating Organization - d:text - true - - - Addressee - d:text - true - - - Other Addressees - d:text - false - - - Supplemental Marking List - d:category - false - true - - - Obsolete - d:boolean - false - - - Note - d:text - false - - - - cm:auditable - cm:author - rma:userSpecifiedData - cm:referencing - rma:superseded - - - - - - RM: Vital Record - - - Vital Record - d:boolean - false - - - Last Review Date - d:datetime - false - - - Next Review Date - d:datetime - false - - - - - - - - RM: Cutoffable - - - Cutoff Executed - d:boolean - false - - - Cutoff Now - d:boolean - false - - - Cutoff Date - d:datetime - false - - - Cutoff Event - d:text - false - - - - - - - - RM: Holdable - - - Hold Executed - d:boolean - false - - - Hold Until - d:datetime - false - - - Hold Until Event - d:text - false - - - Freeze - d:boolean - false - - - - - - - - RM: Transferable - - - Transfer Executed - d:boolean - false - - - Transfer Date - d:datetime - false - - - - - - - - RM: Accessionable - - - Accession Executed - d:boolean - false - - - Accession Date - d:datetime - false - - - - - - - - RM: Destroyable - - - Destruction Date - d:datetime - false - - - - - sys:temporary - - - - - - \ No newline at end of file diff --git a/config/alfresco/templates/content/examples/records_report.ftl b/config/alfresco/templates/content/examples/records_report.ftl deleted file mode 100644 index 0d1878a933..0000000000 --- a/config/alfresco/templates/content/examples/records_report.ftl +++ /dev/null @@ -1,149 +0,0 @@ -<#-- Records Report - Template to apply to a records space to report on status of records --> - - - -<#assign datetimeformat="dd MMM yyyy HH:mm"> -<#assign xqueryformat="'yyyy-MM-dd'T'HH:mm:ss.000'Z'"> -<#-- space.childrenByXPath[".//*[@rma:nextReviewDate < '${date?string(xqueryformat)}']"]?sort_by(['properties', 'rma:nextReviewDate']) --> - -<#macro standardHeaders title extra=""> -

${title}

- - - ID - - Title - - - File Plan - Originator - Date Filed - ${extra} - - - -<#macro standardProperties child extraProperty=""> - - - <#assign childRef=child.nodeRef> - <#assign childWorkspace=childRef[0..childRef?index_of("://")-1]> - <#assign childStorenode=childRef[childRef?index_of("://")+3..]> - <#assign childPath="${childWorkspace}/${childStorenode}"> - - <#if child.parent.hasAspect("rma:filePlan")> - <#assign fileplan=child.parent> - <#elseif child.parent.parent?exists && child.parent.hasAspect("rma:filePlan")> - <#assign fileplan=child.parent.parent> - <#else> - <#assign fileplan=child.parent> - - - <#assign fpRef=fileplan.nodeRef> - <#assign fpWorkspace=fpRef[0..fpRef?index_of("://")-1]> - <#assign fpStorenode=fpRef[fpRef?index_of("://")+3..]> - <#assign fileplanPath="${fpWorkspace}/${fpStorenode}"> - - <#-- Record properties icon --> - - Record Details - - <#-- Record identifier --> - - ${child.properties["rma:recordIdentifier"]} - - <#-- Record icon --> - - View Record - - <#-- Record title --> - - ${child.properties["cm:title"]} - - <#-- Fileplan icon --> - - Fileplan Contents - - <#-- Fileplan properties icon --> - - Fileplan Details - - - - ${fileplan.name} - - - ${child.properties["rma:originator"]} - - - ${child.properties["rma:dateFiled"]?string(datetimeformat)} - - - ${extraProperty} - - - - -<#macro standardFooters> -
- - - - - - -<@standardHeaders title="Recent Records" extra="Date"/> -<#list space.childrenByXPath[".//*[@rma:dateReceived]"]?sort_by(['properties', 'rma:dateReceived']) as child> - <#if (dateCompare(child.properties["cm:modified"], date, 1000*60*60*24*7) == 1) || (dateCompare(child.properties["cm:created"], date, 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:dateReceived"]?string(datetimeformat) /> - - -<@standardFooters/> - - -<@standardHeaders title="Vital Records Due for Review" extra="Next Review Due"/> -<#list space.childrenByXPath[".//*[@rma:nextReviewDate]"]?sort_by(['properties', 'rma:nextReviewDate']) as child> - <#if (dateCompare(date, child.properties["rma:nextReviewDate"], 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:nextReviewDate"]?string(datetimeformat) /> - - -<@standardFooters/> - - -<@standardHeaders title="Records Due for Cutoff" extra="Cutoff Date"/> -<#list space.childrenByXPath[".//*[@rma:cutoffDateTime]"]?sort_by(['properties', 'rma:cutoffDateTime']) as child> - <#if (dateCompare(date, child.properties["rma:cutoffDateTime"], 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:cutoffDateTime"]?string(datetimeformat) /> - - -<@standardFooters/> - - -<@standardHeaders title="Records Retention Due for Expiry" extra="Expiry Date"/> -<#list space.childrenByXPath[".//*[@rma:holdUntil]"]?sort_by(['properties', 'rma:holdUntil']) as child> - <#if (dateCompare(date, child.properties["rma:holdUntil"], 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:holdUntil"]?string(datetimeformat) /> - - -<@standardFooters/> - - -<@standardHeaders title="Records Due for Transfer" extra="Transfer Date"/> -<#list space.childrenByXPath[".//*[@rma:transferDate]"]?sort_by(['properties', 'rma:transferDate']) as child> - <#if (dateCompare(date, child.properties["rma:transferDate"], 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:transferDate"]?string(datetimeformat) /> - - -<@standardFooters/> - - -<@standardHeaders title="Records Due for Destruction" extra="Destruction Due Date"/> -<#list space.childrenByXPath[".//*[@rma:destructionDate]"]?sort_by(['properties', 'rma:destructionDate']) as child> - <#if (dateCompare(date, child.properties["rma:destructionDate"], 1000*60*60*24*7) == 1)> - <@standardProperties child=child extraProperty=child.properties["rma:destructionDate"]?string(datetimeformat) /> - - -<@standardFooters/> - -
\ No newline at end of file diff --git a/config/alfresco/templates/content_template_examples.xml b/config/alfresco/templates/content_template_examples.xml index ed43602646..c5947af0cb 100644 --- a/config/alfresco/templates/content_template_examples.xml +++ b/config/alfresco/templates/content_template_examples.xml @@ -126,20 +126,6 @@ - - - - - - - true - Displays the current state of records in a file plan space or a space containing a file plan. - contentUrl=classpath:alfresco/templates/content/examples/records_report.ftl|mimetype=text/plain|size=6134|encoding=UTF-8 - records_report.ftl - records_report.ftl - - - diff --git a/source/java/org/alfresco/repo/importer/ImporterBootstrap.java b/source/java/org/alfresco/repo/importer/ImporterBootstrap.java index 6eb6ca27fb..60f8e1fcba 100644 --- a/source/java/org/alfresco/repo/importer/ImporterBootstrap.java +++ b/source/java/org/alfresco/repo/importer/ImporterBootstrap.java @@ -25,6 +25,7 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; +import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.Properties; @@ -82,6 +83,7 @@ public class ImporterBootstrap extends AbstractLifecycleBean private NodeService nodeService; private ImporterService importerService; private List bootstrapViews; + private List extensionBootstrapViews; private StoreRef storeRef = null; private List mustNotExistStoreUrls = null; private Properties configuration = null; @@ -175,6 +177,20 @@ public class ImporterBootstrap extends AbstractLifecycleBean this.bootstrapViews = bootstrapViews; } + /** + * Sets the bootstrap views + * + * @param bootstrapViews + */ + public void addBootstrapViews(List bootstrapViews) + { + if (this.extensionBootstrapViews == null) + { + this.extensionBootstrapViews = new ArrayList(); + } + this.extensionBootstrapViews.addAll(bootstrapViews); + } + /** * Sets the Store Ref to bootstrap into * @@ -347,6 +363,12 @@ public class ImporterBootstrap extends AbstractLifecycleBean // bootstrap the store contents if (bootstrapViews != null) { + // add-in any extended views + if (extensionBootstrapViews != null) + { + bootstrapViews.addAll(extensionBootstrapViews); + } + for (Properties bootstrapView : bootstrapViews) { String view = bootstrapView.getProperty(VIEW_LOCATION_VIEW); diff --git a/source/java/org/alfresco/repo/importer/ImporterBootstrapViews.java b/source/java/org/alfresco/repo/importer/ImporterBootstrapViews.java new file mode 100644 index 0000000000..a15f11da30 --- /dev/null +++ b/source/java/org/alfresco/repo/importer/ImporterBootstrapViews.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2005 Alfresco, Inc. + * + * Licensed under the Mozilla Public License version 1.1 + * with a permitted attribution clause. You may obtain a + * copy of the License at + * + * http://www.alfresco.org/legal/license.txt + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the + * License. + */ +package org.alfresco.repo.importer; + +import java.util.List; +import java.util.Properties; + +import org.springframework.beans.factory.InitializingBean; + +/** + * Collection of views to import + * + * @author David Caruana + */ +public class ImporterBootstrapViews implements InitializingBean +{ + // Dependencies + private ImporterBootstrap importer; + private List bootstrapViews; + + + /** + * Sets the importer + * + * @param importer + */ + public void setImporter(ImporterBootstrap importer) + { + this.importer = importer; + } + + /** + * Sets the bootstrap views + * + * @param bootstrapViews + */ + public void setBootstrapViews(List bootstrapViews) + { + this.bootstrapViews = bootstrapViews; + } + + + public void afterPropertiesSet() throws Exception + { + importer.addBootstrapViews(bootstrapViews); + } + +}