Package com.gooddata.auditevent
Class AuditEventPageRequest
- java.lang.Object
-
- com.gooddata.collections.PageRequest
-
- com.gooddata.auditevent.AuditEventPageRequest
-
- All Implemented Interfaces:
com.gooddata.collections.Page
public final class AuditEventPageRequest extends com.gooddata.collections.PageRequestClass to encapsulate time filtering and paging parameters
-
-
Constructor Summary
Constructors Constructor Description AuditEventPageRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object o)static AuditEventPageRequestcopy(AuditEventPageRequest source)Copy constructorbooleanequals(Object o)org.joda.time.DateTimegetFrom()org.joda.time.DateTimegetTo()StringgetType()inthashCode()voidsetFrom(org.joda.time.DateTime from)Specify lower bound of intervalvoidsetTo(org.joda.time.DateTime to)Specify upper bound of intervalvoidsetType(String type)Specify event type for filtering purposesStringtoString()org.springframework.web.util.UriComponentsBuilderupdateWithPageParams(org.springframework.web.util.UriComponentsBuilder builder)AuditEventPageRequestwithIncrementedLimit()Copy this request parameters and increment request parameter limit.
-
-
-
Method Detail
-
getFrom
public org.joda.time.DateTime getFrom()
-
setFrom
public void setFrom(org.joda.time.DateTime from)
Specify lower bound of interval
-
getTo
public org.joda.time.DateTime getTo()
-
setTo
public void setTo(org.joda.time.DateTime to)
Specify upper bound of interval
-
getType
public String getType()
-
setType
public void setType(String type)
Specify event type for filtering purposes- Parameters:
type- event type
-
copy
public static AuditEventPageRequest copy(AuditEventPageRequest source)
Copy constructor- Parameters:
source- source object (not null) to create copy of- Returns:
- new instance, which fields has same value as fields of
source
-
withIncrementedLimit
public AuditEventPageRequest withIncrementedLimit()
Copy this request parameters and increment request parameter limit. If Limit is negative, than sanitized limit is taken and incremented.- Returns:
- new instance with incremented limit
-
updateWithPageParams
public org.springframework.web.util.UriComponentsBuilder updateWithPageParams(org.springframework.web.util.UriComponentsBuilder builder)
- Specified by:
updateWithPageParamsin interfacecom.gooddata.collections.Page- Overrides:
updateWithPageParamsin classcom.gooddata.collections.PageRequest
-
canEqual
protected boolean canEqual(Object o)
- Overrides:
canEqualin classcom.gooddata.collections.PageRequest
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.gooddata.collections.PageRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.gooddata.collections.PageRequest
-
toString
public String toString()
- Overrides:
toStringin classcom.gooddata.collections.PageRequest
-
-