-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/codition-for-facet-item' into 0.3.9
- Loading branch information
Showing
11 changed files
with
362 additions
and
151 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
1 change: 0 additions & 1 deletion
1
turing-app/src/main/java/com/viglet/turing/persistence/model/sn/TurSNSiteFacetRangeEnum.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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package com.viglet.turing.persistence.model.sn; | ||
|
||
public enum TurSNSiteFacetRangeEnum { | ||
|
||
DISABLED, | ||
DAY, | ||
MONTH, | ||
|
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
29 changes: 29 additions & 0 deletions
29
turing-app/src/main/java/com/viglet/turing/sn/facet/TurSNFacetMapForFilterQuery.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,29 @@ | ||
/* | ||
* | ||
* Copyright (C) 2016-2024 the original author or authors. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.viglet.turing.sn.facet; | ||
|
||
import java.util.HashMap; | ||
|
||
/** | ||
* @author Alexandre Oliveira | ||
* @since 0.3.9 | ||
*/ | ||
public class TurSNFacetMapForFilterQuery extends HashMap<String, TurSNFacetProperties> { | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
turing-app/src/main/java/com/viglet/turing/sn/facet/TurSNFacetProperties.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,39 @@ | ||
/* | ||
* | ||
* Copyright (C) 2016-2024 the original author or authors. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.viglet.turing.sn.facet; | ||
|
||
import com.viglet.turing.persistence.model.sn.field.TurSNSiteFacetFieldEnum; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Alexandre Oliveira | ||
* @since 0.3.9 | ||
*/ | ||
@Builder | ||
@Getter | ||
@Setter | ||
public class TurSNFacetProperties { | ||
private TurSNSiteFacetFieldEnum facetType; | ||
private TurSNSiteFacetFieldEnum facetItemType; | ||
private List<String> facetItems; | ||
} |
49 changes: 49 additions & 0 deletions
49
turing-app/src/main/java/com/viglet/turing/sn/facet/TurSNFacetTypeContext.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,49 @@ | ||
/* | ||
* | ||
* Copyright (C) 2016-2024 the original author or authors. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.viglet.turing.sn.facet; | ||
|
||
import com.viglet.turing.commons.se.TurSEFilterQueryParameters; | ||
import com.viglet.turing.persistence.model.sn.TurSNSite; | ||
import com.viglet.turing.persistence.model.sn.field.TurSNSiteFieldExt; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* @author Alexandre Oliveira | ||
* @since 0.3.9 | ||
*/ | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
public class TurSNFacetTypeContext { | ||
private TurSNSiteFieldExt turSNSiteFacetFieldExt; | ||
private TurSNSite turSNSite; | ||
private TurSEFilterQueryParameters queryParameters; | ||
|
||
|
||
public TurSNFacetTypeContext(TurSNSite turSNSite, TurSEFilterQueryParameters queryParameters) { | ||
this.turSNSiteFacetFieldExt = null; | ||
this.turSNSite = turSNSite; | ||
this.queryParameters = queryParameters; | ||
} | ||
public boolean isSpecificField() { | ||
return turSNSiteFacetFieldExt != null; | ||
} | ||
} |
Oops, something went wrong.