Merge pull request #1154 from Alfresco/feature/APPS-37_DeclareAndFileAsRecordUI

APPS-37: Declare And File record UI
This commit is contained in:
Elena Hardon
2020-06-24 00:10:55 +03:00
committed by GitHub
3 changed files with 9 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ public class RuleDefinition
private boolean runInBackground = false; private boolean runInBackground = false;
private String ruleType = ConditionsOnRule.ADDED.getWhenConditionValue(); private String ruleType = ConditionsOnRule.ADDED.getWhenConditionValue();
private String path; private String path;
private boolean createRecordPath = false; private Boolean createRecordPath;
private String contentTitle; private String contentTitle;
private String contentDescription; private String contentDescription;
private String rejectReason; private String rejectReason;
@@ -145,7 +145,7 @@ public class RuleDefinition
return this; return this;
} }
public boolean isCreateRecordPath() public Boolean getCreateRecordPath()
{ {
return createRecordPath; return createRecordPath;
} }

View File

@@ -257,7 +257,10 @@ public class RulesAPI extends BaseAPI
JSONObject parameters = new JSONObject(); JSONObject parameters = new JSONObject();
if (ruleProperties.getPath() != null) if (ruleProperties.getPath() != null)
{ {
parameters.put("createRecordPath", ruleProperties.isCreateRecordPath()); if(ruleProperties.getCreateRecordPath() != null)
{
parameters.put("createRecordPath", ruleProperties.getCreateRecordPath());
}
parameters.put("path", ruleProperties.getPath()); parameters.put("path", ruleProperties.getPath());
} }
if (ruleProperties.getContentTitle() != null) if (ruleProperties.getContentTitle() != null)

View File

@@ -46,12 +46,13 @@ isRecordType.description=Records have a specified record type
# #
# i18n for Records Management Actions # i18n for Records Management Actions
# #
# Declare As Record # File As Record
create-record.title=Declare as Record create-record.title=File as Record
create-record.description=Declares file as a record and optionally files it create-record.description=Declares file as a record and optionally files it
create-record.file-plan.display-label=File Plan create-record.file-plan.display-label=File Plan
create-record.hide-record.display-label=Hide Record create-record.hide-record.display-label=Hide Record
create-record.path.display-label=Record Folder Location create-record.path.display-label=Record Folder Location
# Declare As Version Record # Declare As Version Record
declare-as-version-record.title=Declare Version as Record declare-as-version-record.title=Declare Version as Record
declare-as-version-record.description=Declares this version of the file as a record and optionally files it declare-as-version-record.description=Declares this version of the file as a record and optionally files it