Document slot = getDocumentService().selectDocument(fileref,
new Revision().toString());
if (slot == null) {
- setErrorCode("reference.undefined");
+ setErrorCode("message.error.reference.undefined");
setToolProperty("none");
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
return ERROR;
} else {
if (!slot.isUndefined()) {
- setErrorCode("reference.duplicate");
+ setErrorCode("message.error.reference.duplicate");
setToolProperty("none");
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
state = ProgressState.inCHECK;
docver = version.toString();
} catch (ParseException e) {
- setErrorCode("format.version");
+ setErrorCode("message.error.format.version");
setToolProperty("none");
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
check.parse(date);
} catch (ParseException e) {
- setErrorCode("format.date");
+ setErrorCode("message.error.format.date");
setToolProperty("none");
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
if (action == ToDo.cancel)
return "cancel";
if (doctype == 0) {
- setErrorCode("import.type");
+ setErrorCode("message.error.import.type");
setToolProperty("none");
setLeftMenuProperty("study");
return SUCCESS;
} catch (FileNotFoundException error) {
LOG.error("Reason:", error);
- setErrorCode("import.file");
+ setErrorCode("message.error.import.file");
} catch (Exception error) {
LOG.error("Reason:", error);
- setErrorCode("internal");
+ setErrorCode("message.error.internal");
}
setToolProperty("none");
return docver;
}
- public void setDocumentDate(String date) {
+ public void setDocumentDate(final String date) {
// -----------------------------------------
this.date = date;
}
- public void setDocumentName(String name) {
+ public void setDocumentName(final String name) {
// -----------------------------------------
this.docname = name; // Name entered by the user if enabled
}
- public void setDocumentTitle(String name) { // Called even if DocumentName is enabled
+ public void setDocumentTitle(final String name) { // Called even if DocumentName is enabled
// -----------------------------------------
if (this.docname == null)
this.docname = name;
}
- public void setDocumentType(String value) {
+ public void setDocumentType(final String value) {
// ------------------------------------------
this.doctype = Integer.valueOf(value);
}
- public void setDefaultDocumentState(String state) { // Called even if DocumentState is enabled
+ public void setDefaultDocumentState(final String state) { // Called even if DocumentState is enabled
// --------------------------------------------------
if (this.state == null)
this.state = ProgressState.valueOf(state);
}
- public void setDefaultDocumentType(String value) { // Called even if DocumentType is enabled
+ public void setDefaultDocumentType(final String value) { // Called even if DocumentType is enabled
// --------------------------------------------------
if (this.doctype == 0)
this.doctype = Integer.valueOf(value);
}
- public void setReference(String value) {
+ public void setReference(final String value) {
// ---------------------------------------
this.docref = value;
}
- public void setVersion(String value) {
+ public void setVersion(final String value) {
// -------------------------------------
this.docver = value;
}
* @param projectSettingsService
* project settings service
*/
- public void setProjectSettings(ProjectSettingsService projectSettingsService) {
+ public void setProjectSettings(final ProjectSettingsService projectSettingsService) {
_projectSettingsService = projectSettingsService;
}
* @param publicationService
* the publicationService to set
*/
- public void setPublicationService(PublicationService publicationService) {
+ public void setPublicationService(final PublicationService publicationService) {
_publicationService = publicationService;
}
* Set the stepService.
* @param stepService the stepService to set
*/
- public void setStepService(StepService stepService) {
+ public void setStepService(final StepService stepService) {
_stepService = stepService;
}
* Set the documentService.
* @param documentService the documentService to set
*/
- public void setDocumentService(DocumentService documentService) {
+ public void setDocumentService(final DocumentService documentService) {
_documentService = documentService;
}
* Set the repositoryService.
* @param repositoryService the repositoryService to set
*/
- public void setRepositoryService(RepositoryService repositoryService) {
+ public void setRepositoryService(final RepositoryService repositoryService) {
_repositoryService = repositoryService;
}
* Set the documentTypeService.
* @param documentTypeService the documentTypeService to set
*/
- public void setDocumentTypeService(DocumentTypeService documentTypeService) {
+ public void setDocumentTypeService(final DocumentTypeService documentTypeService) {
_documentTypeService = documentTypeService;
}
* Set the menuProperty.
* @param menuProperty the menuProperty to set
*/
- public void setMenuProperty(String menuProperty) {
+ public void setMenuProperty(final String menuProperty) {
this._menuProperty = menuProperty;
}
* Set the _titleProperty.
* @param _titleProperty the titleProperty to set
*/
- public void setTitleProperty(String titleProperty) {
+ public void setTitleProperty(final String titleProperty) {
_titleProperty = titleProperty;
}
* Set the editDisabledProperty.
* @param editDisabledProperty the editDisabledProperty to set
*/
- public final void setEditDisabledProperty(String editDisabledProperty) {
+ public final void setEditDisabledProperty(final String editDisabledProperty) {
_editDisabledProperty = editDisabledProperty;
}