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
33ce1dc4
Commit
33ce1dc4
authored
16 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
minor: remove unused class
SVN: 10492
parent
791d9e7c
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/client/web/client/application/ui/sample/GridConfiguration.java
+0
-125
0 additions, 125 deletions
...t/web/client/application/ui/sample/GridConfiguration.java
with
0 additions
and
125 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/sample/GridConfiguration.java
deleted
100644 → 0
+
0
−
125
View file @
791d9e7c
/*
* Copyright 2008 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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
ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.sample
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.dto.ListSampleCriteria
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleType
;
/**
* Stores the information about grid state.
*
* @author Izabela Adamczyk
*/
public
class
GridConfiguration
{
private
ListSampleCriteria
criteria
=
new
ListSampleCriteria
();
public
boolean
majorChange
(
GridConfiguration
newConfiguration
)
{
return
sampleTypeChanged
(
newConfiguration
.
getSampleType
())
||
instanceRequested
(
newConfiguration
.
isIncludeInstance
())
||
groupRequested
(
newConfiguration
.
getGroupCode
(),
newConfiguration
.
isIncludeGroup
());
}
public
boolean
minorChange
(
GridConfiguration
newConfiguration
)
{
return
isIncludeGroup
()
==
true
&&
newConfiguration
.
isIncludeGroup
()
==
false
||
isIncludeInstance
()
==
true
&&
newConfiguration
.
isIncludeInstance
()
==
false
;
}
public
void
update
(
SampleType
sampleTypeNewValue
,
String
groupCodeNewValue
,
boolean
includeGroupNewValue
,
boolean
includeInstanceNewValue
)
{
setSampleType
(
sampleTypeNewValue
);
setGroupCode
(
groupCodeNewValue
);
setIncludeGroup
(
includeGroupNewValue
);
setIncludeInstance
(
includeInstanceNewValue
);
}
public
void
update
(
GridConfiguration
newConfiguration
)
{
setSampleType
(
newConfiguration
.
getSampleType
());
setGroupCode
(
newConfiguration
.
getGroupCode
());
setIncludeGroup
(
newConfiguration
.
isIncludeGroup
());
setIncludeInstance
(
newConfiguration
.
isIncludeInstance
());
}
private
boolean
groupRequested
(
String
groupCodeNewValue
,
boolean
includeGroupNewValue
)
{
return
includeGroupNewValue
&&
(
isIncludeGroup
()
==
false
||
getGroupCode
()
==
null
||
groupCodeNewValue
.
equals
(
getGroupCode
())
==
false
);
}
private
boolean
instanceRequested
(
boolean
includeInstanceNewValue
)
{
return
includeInstanceNewValue
&&
isIncludeInstance
()
==
false
;
}
private
boolean
sampleTypeChanged
(
SampleType
sampleTypeNewValue
)
{
return
getSampleType
()
==
null
||
sampleTypeNewValue
.
getCode
().
equals
(
getSampleType
().
getCode
())
==
false
;
}
private
SampleType
getSampleType
()
{
return
this
.
criteria
.
getSampleType
();
}
private
void
setSampleType
(
SampleType
sampleType
)
{
this
.
criteria
.
setSampleType
(
sampleType
);
}
private
String
getGroupCode
()
{
return
this
.
criteria
.
getGroupCode
();
}
private
void
setGroupCode
(
String
groupCode
)
{
this
.
criteria
.
setGroupCode
(
groupCode
);
}
public
boolean
isIncludeGroup
()
{
return
this
.
criteria
.
isIncludeGroup
();
}
private
void
setIncludeGroup
(
boolean
includeGroup
)
{
this
.
criteria
.
setIncludeGroup
(
includeGroup
);
}
public
boolean
isIncludeInstance
()
{
return
this
.
criteria
.
isIncludeInstance
();
}
private
void
setIncludeInstance
(
boolean
includeInstance
)
{
this
.
criteria
.
setIncludeInstance
(
includeInstance
);
}
public
ListSampleCriteria
getCriterias
()
{
return
criteria
;
}
}
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