Skip to content

Commit

Permalink
lazy filter was in the wrong version
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgregorio committed Aug 21, 2018
1 parent a6568b8 commit 686d394
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions library.iml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
<root url="file://$MODULE_DIR$/target/generated-sources/annotations" />
</sourceRoots>
</configuration>
</facet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public final class LazyFilter {
* Private constructor to prevent misuse
*/
private LazyFilter() {
this.entityStatus = EntityStatus.UNBLOCKED;
this.entityStatus = EntityStatus.ACTIVE;
}

/**
* This replace the default constructor to build instances of this filter
*
*
* @return a instance of this filter
*/
public static LazyFilter getInstance() {
Expand All @@ -41,33 +41,33 @@ public static LazyFilter getInstance() {
*/
public void clear() {
this.value = null;
this.entityStatus = EntityStatus.UNBLOCKED;
this.entityStatus = EntityStatus.ACTIVE;
}

/**
* The status value, if the entity to be queried is blocked, unblocked or if all entities will returned
*
*
* @return the status value
*/
public Boolean getEntityStatusValue() {
return entityStatus.value();
}

/**
* @return the values to be used on the selection box of the status
*/
public EntityStatus[] getEntityStatusValues() {
return EntityStatus.values();
}

/**
* The enum representation of the possible entity status
*/
public enum EntityStatus {

ALL("entity-status.all", null),
BLOCKED("entity-status.blocked", Boolean.TRUE),
UNBLOCKED("entity-status.unblocked", Boolean.FALSE);
ACTIVE("entity-status.active", Boolean.TRUE),
INACTIVE("entity-status.inactive", Boolean.FALSE);

private final Boolean value;
private final String description;
Expand All @@ -85,7 +85,7 @@ private EntityStatus(String description, Boolean value) {

/**
* {@inheritDoc }
*
*
* @return
*/
@Override
Expand Down
Binary file modified src/main/webapp/resources/application/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 686d394

Please sign in to comment.