Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
4f9cd4fe
Commit
4f9cd4fe
authored
13 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-2336] updated constraint violation messages
SVN: 22200
parent
a95556d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/DataAccessExceptionTranslator.java
+6
-7
6 additions, 7 deletions
...ric/server/business/bo/DataAccessExceptionTranslator.java
with
6 additions
and
7 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/DataAccessExceptionTranslator.java
+
6
−
7
View file @
4f9cd4fe
...
@@ -51,10 +51,9 @@ public final class DataAccessExceptionTranslator
...
@@ -51,10 +51,9 @@ public final class DataAccessExceptionTranslator
public
final
static
String
FOREIGN_KEY_VIOLATION_FORMAT
=
public
final
static
String
FOREIGN_KEY_VIOLATION_FORMAT
=
"%s is being used. Delete all connected data %s first."
;
"%s is being used. Delete all connected data %s first."
;
public
final
static
String
DETAILED_FOREIGN_KEY_VIOLATION_FORMAT
=
public
final
static
String
DETAILED_FOREIGN_KEY_VIOLATION_FORMAT
=
FOREIGN_KEY_VIOLATION_FORMAT
FOREIGN_KEY_VIOLATION_FORMAT
+
" To find out which exactly objects are connected to this object "
+
" To find out which exactly objects are connected to this object "
+
"go to its Detail view or use Search."
;
+
"go to its Detail view or use Search."
;
private
DataAccessExceptionTranslator
()
private
DataAccessExceptionTranslator
()
{
{
...
@@ -137,13 +136,13 @@ public final class DataAccessExceptionTranslator
...
@@ -137,13 +136,13 @@ public final class DataAccessExceptionTranslator
switch
(
entityKindOrNull
)
switch
(
entityKindOrNull
)
{
{
case
DATA_SET:
case
DATA_SET:
return
"
(child data sets)
"
;
return
""
;
case
EXPERIMENT:
case
EXPERIMENT:
return
"(
attachments,
data sets, samples)"
;
return
"(data sets, samples)"
;
case
MATERIAL:
case
MATERIAL:
return
""
;
return
""
;
case
SAMPLE:
case
SAMPLE:
return
"(
attachments,
data sets, contained and generated samples)"
;
return
"(data sets, contained and generated samples)"
;
}
}
return
""
;
return
""
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment