This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0adc6cf
commit 5647f58
Showing
4 changed files
with
127 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
server/zanata-war/src/main/java/org/zanata/action/ReindexClassOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package org.zanata.action; | ||
|
||
/** | ||
* Stores options for the lucene indexing | ||
* | ||
* @author David Mason, damason@redhat.com | ||
*/ | ||
public class ReindexClassOptions | ||
{ | ||
private Class<?> clazz; | ||
private boolean purge = false; | ||
private boolean reindex = false; | ||
private boolean optimize = false; | ||
|
||
public ReindexClassOptions(Class<?> indexableClass) | ||
{ | ||
clazz = indexableClass; | ||
} | ||
|
||
public String getClassName() | ||
{ | ||
return clazz.getSimpleName(); | ||
} | ||
|
||
public boolean isPurge() | ||
{ | ||
return purge; | ||
} | ||
|
||
public void setPurge(boolean shouldPurge) | ||
{ | ||
this.purge = shouldPurge; | ||
} | ||
|
||
public boolean isReindex() | ||
{ | ||
return reindex; | ||
} | ||
|
||
public void setReindex(boolean shouldReindex) | ||
{ | ||
this.reindex = shouldReindex; | ||
} | ||
|
||
public boolean isOptimize() | ||
{ | ||
return optimize; | ||
} | ||
|
||
public void setOptimize(boolean optimize) | ||
{ | ||
this.optimize = optimize; | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters