11-05-2009 02:48 PM
01-10-2010 12:23 AM
01-12-2010 08:46 AM
01-26-2010 01:09 PM
01-26-2010 02:01 PM
WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/dod5015-evaluator.lib.js
/**
* SPECIFIC TO: RECORD FOLDER
*/
case "record-folder":
actionSet = "recordFolder";
permissions["new-folder"] = capabilities["Create"]; <<—Add this line.
/* Record and Record Folder common evaluator */
Evaluator.recordAndRecordFolder(asset, permissions, status);
/* Update Cut Off status to folder-specific status */
if (status["cutoff"] == true)
{
delete status["cutoff"];
status["cutoff-folder"] = true;
}
06-04-2010 09:16 AM
06-15-2010 02:30 AM
07-06-2010 07:23 PM
07-27-2010 10:09 AM
WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/dod5015-evaluator.lib.js
/**
* SPECIFIC TO: RECORD FOLDER
*/
case "record-folder":
actionSet = "recordFolder";
permissions["new-folder"] = capabilities["Create"]; //<<—Add this line.
/* Record and Record Folder common evaluator */
Evaluator.recordAndRecordFolder(asset, permissions, status);
/* Update Cut Off status to folder-specific status */
if (status["cutoff"] == true)
{
delete status["cutoff"];
status["cutoff-folder"] = true;
}
/DOD 5015/source/java/org/alfresco/module/org_alfresco_module_dod5015/action/impl/FileAction.java
// Calculate the review schedule
VitalRecordDefinition viDef = this.recordsManagementService.getVitalRecordDefinition(actionedUponNodeRef);
Date reviewAsOf = viDef.getNextReviewDate();
if (viDef != null){ //Add this line
if (reviewAsOf != null)
{
Map<QName, Serializable> reviewProps = new HashMap<QName, Serializable>(1);
reviewProps.put(RecordsManagementModel.PROP_REVIEW_AS_OF, reviewAsOf);
if (!nodeService.hasAspect(actionedUponNodeRef, ASPECT_VITAL_RECORD))
{
this.nodeService.addAspect(actionedUponNodeRef, RecordsManagementModel.ASPECT_VITAL_RECORD, reviewProps);
}
else
{
Map<QName, Serializable> props = nodeService.getProperties(actionedUponNodeRef);
props.putAll(reviewProps);
nodeService.setProperties(actionedUponNodeRef, props);
}
}
}// Add this line to close if (viDef != null){
/DOD 5015/source/java/org/alfresco/module/org_alfresco_module_dod5015/RecordsManagementServiceImpl.java
/**
* Try to file any record created in a record folder
*
* @see org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy#onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef, boolean)
*/
public void onFileContent(ChildAssociationRef childAssocRef, boolean bNew)
{
// File the document
rmActionService.executeRecordsManagementAction(childAssocRef.getChildRef(), "file");
}
/DOD 5015/source/java/org/alfresco/module/org_alfresco_module_dod5015/RecordsManagementServiceImpl.java
/**
* Set's up the record folder upon creation
*
* @param childAssocRef
* @param bNew
*/
public void onCreateRecordFolder(ChildAssociationRef childAssocRef, boolean bNew)
{
// Setup record folder
rmActionService.executeRecordsManagementAction(childAssocRef.getChildRef(), "setupRecordFolder");
}
07-27-2010 06:45 PM
11-23-2010 03:55 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.