|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.requestbean.RequestAwareRequestBean
org.torweg.pulse.component.core.site.content.filter.FilterContentRequestBean
public class FilterContentRequestBean
the request bean for the FilterContentDisplayer.
| Constructor Summary | |
|---|---|
FilterContentRequestBean()
|
|
| Method Summary | |
|---|---|
void |
buildRulePropertyMap(ServiceRequest req)
builds the mapping for the selected FilterRuleProperty elements
and their corresponding FilterRules. |
Period.Scroll |
getCalendarSheetScrollDirection()
returns the Period.Scroll. |
Duration |
getDuration()
returns the duration for the reference date filtering or null. |
java.lang.Long |
getDurationOffset()
returns the offset to be used for the reference Duration
filtering. |
int |
getMaxResults()
returns the maximum results for result pagination. |
int |
getOffset()
returns the offset. |
java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> |
getRulePropertyMap()
returns an unmodifiable view of the rule-id to property-ids mappings. |
boolean |
isDurationGiven()
returns whether a duration for the optional reference date filtering exists. |
void |
setCalendarSheetScrollDirection(java.lang.String stringValue)
sets the Period.Scroll. |
void |
setDurationEnd(java.lang.String ts)
sets the end of the duration for the optional reference date filtering ( Content.getReferenceDuration()). |
void |
setDurationOffset(java.lang.String stringValue)
sets the offset to be used for the reference Duration filtering. |
void |
setDurationStart(java.lang.String ts)
sets the start of the duration for the optional reference date filtering ( Content.getReferenceDuration()). |
void |
setMaxResults(java.lang.String max)
sets the maximum results for one page during result pagination. |
void |
setOffset(java.lang.String off)
sets the offset for result pagination. |
| Methods inherited from class org.torweg.pulse.util.requestbean.RequestAwareRequestBean |
|---|
addEvent, getServiceRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterContentRequestBean()
| Method Detail |
|---|
public final java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> getRulePropertyMap()
@RequestBean.ServiceRequest public final void buildRulePropertyMap(ServiceRequest req)
FilterRuleProperty elements
and their corresponding FilterRules.
Each activated FilterRuleProperty of the ContentFilter is
transmitted in the following way: prop_ FilterRule.id
={FilterRuleProperty.id}}. For example, if the properties with the ids
12, 9 of rule 1 and property 27 of rule
4 are selected the query string would be prop_1=12&prop_1=9&prop_4=27.
req - the current requestpublic final int getOffset()
@RequestBean.Parameter(value="offset") public final void setOffset(java.lang.String off)
off - the offset to setpublic final int getMaxResults()
@RequestBean.Parameter(value="maxResults") public final void setMaxResults(java.lang.String max)
max - the max results to set@RequestBean.Parameter(value="durationStart") public final void setDurationStart(java.lang.String ts)
Content.getReferenceDuration()).
ts - the start time in milliseconds since the epoch@RequestBean.Parameter(value="durationEnd") public final void setDurationEnd(java.lang.String ts)
Content.getReferenceDuration()).
ts - the start time in milliseconds since the epochpublic final java.lang.Long getDurationOffset()
Duration
filtering.
null@RequestBean.Parameter(value="durationOffset") public final void setDurationOffset(java.lang.String stringValue)
Duration filtering.
stringValue - the offset as stringpublic final boolean isDurationGiven()
true, if and only if a filter exists.public final Duration getDuration()
null.
If both start and end are set, a corresponding Duration is
returned. If the start is set but the end is not set, a Duration
of one day beginning at start is returned.
In all other cases this method returns null.
null, if
undefinedpublic final Period.Scroll getCalendarSheetScrollDirection()
Period.Scroll.
Period.Scroll@RequestBean.Parameter(value="scrollDirection") public final void setCalendarSheetScrollDirection(java.lang.String stringValue)
Period.Scroll.
stringValue - the scroll direction as string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||