litesoft
Diff Revisions
949
vs
950
for /trunk/Java/DATT/src/org/litesoft/datt/server/boviews/podataproviders/StoryViewPoServerVoDataProvider.java
|
@@ -5,7 +5,7 @@ |
5 |
5 |
|
import org.litesoft.commonfoundation.base.*; |
6 |
6 |
|
import org.litesoft.commonfoundation.exceptions.*; |
7 |
7 |
|
import org.litesoft.commonfoundation.iterators.*; |
8 |
|
- |
import org.litesoft.commonfoundation.typeutils.Objects; |
|
8 |
+ |
import org.litesoft.commonfoundation.typeutils.*; |
9 |
9 |
|
import org.litesoft.datt.client.boviews.*; |
10 |
10 |
|
import org.litesoft.datt.client.support.*; |
11 |
11 |
|
import org.litesoft.datt.server.*; |
|
@@ -120,7 +120,7 @@ |
120 |
120 |
|
if ( pStory.getIsDone() ) { |
121 |
121 |
|
throw new ConcurrentModificationException( "Story 'Done': " + pStoryView ); |
122 |
122 |
|
} |
123 |
|
- |
if ( Objects.areEqual( pStory.getPriority(), pStoryView.getPriority() ) ) { |
|
123 |
+ |
if ( Currently.areEqual( pStory.getPriority(), pStoryView.getPriority() ) ) { |
124 |
124 |
|
return pStory; |
125 |
125 |
|
} |
126 |
126 |
|
throw new ConcurrentModificationException( "Priority Changed, Story: " + pStoryView ); |
|
@@ -132,7 +132,7 @@ |
132 |
132 |
|
|
133 |
133 |
|
private SCresult reprioritizeBetween( UnfilteringFinder pFinder, PriorityGroup.Range pRange, StoryView[] pToReprioritize ) |
134 |
134 |
|
throws PersistenceException { |
135 |
|
- |
if ( Objects.isNullOrEmpty( pToReprioritize ) ) { |
|
135 |
+ |
if ( Currently.isNullOrEmpty( pToReprioritize ) ) { |
136 |
136 |
|
return VOSC.result( "Nothing to Reprioritize" ); |
137 |
137 |
|
} |
138 |
138 |
|
Transaction zTransaction = pFinder.createUnaugmentedTransaction(); |
|
@@ -157,7 +157,7 @@ |
157 |
157 |
|
} |
158 |
158 |
|
|
159 |
159 |
|
private List<Story> validate( StoryView[] pToReprioritize, List<Story> pStories ) { |
160 |
|
- |
List<Story> zStories = new ArrayList<Story>( pToReprioritize.length ); |
|
160 |
+ |
List<Story> zStories = Lists.newArrayList( pToReprioritize.length ); |
161 |
161 |
|
for ( StoryView zStoryView : pToReprioritize ) { |
162 |
162 |
|
zStories.add( validatePriority( getStory( pStories, zStoryView.getID() ), zStoryView ) ); |
163 |
163 |
|
} |
|
@@ -166,7 +166,7 @@ |
166 |
166 |
|
|
167 |
167 |
|
private Story getStory( List<Story> pStories, Long pID ) { |
168 |
168 |
|
for ( Story zStory : pStories ) { |
169 |
|
- |
if ( Objects.areEqual( pID, zStory.getID() ) ) { |
|
169 |
+ |
if ( Currently.areEqual( pID, zStory.getID() ) ) { |
170 |
170 |
|
return zStory; |
171 |
171 |
|
} |
172 |
172 |
|
} |
|
@@ -174,7 +174,7 @@ |
174 |
174 |
|
} |
175 |
175 |
|
|
176 |
176 |
|
private Collection getKeysFor( StoryView[] pToReprioritize ) { |
177 |
|
- |
List<Long> keys = new ArrayList<Long>( pToReprioritize.length ); |
|
177 |
+ |
List<Long> keys = Lists.newArrayList( pToReprioritize.length ); |
178 |
178 |
|
for ( StoryView zStoryView : pToReprioritize ) { |
179 |
179 |
|
keys.add( zStoryView.getID() ); |
180 |
180 |
|
} |