fr.paris.lutece.plugins.stock.business
Class CategoryFilter

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.business.CategoryFilter
All Implemented Interfaces:
ISortableFilter

public class CategoryFilter
extends java.lang.Object
implements ISortableFilter

CategoryFilter


Constructor Summary
CategoryFilter()
           
 
Method Summary
 java.lang.Integer getIdCategory()
          Get the category id filtered
 java.lang.String getName()
          return the category name filtered
 java.lang.String getOrder()
          Get the column ordered
 java.lang.Integer getParentCategory()
          Get the parent filtered
 java.lang.Boolean getProductNull()
          Return true if the filter is set to product null
 java.lang.Boolean getStatus()
          Get the status filtered
 boolean hasFilter()
          Return true if there is filters
 boolean isOrderAsc()
          Return true if the order is set to ascending
 void setIdCategory(java.lang.Integer idCategory)
          Set the category id to filter
 void setName(java.lang.String name)
          Set the category name to filter
 void setOrder(java.lang.String strOrder)
          Set the column ordered
 void setOrderAsc(boolean bOrderAsc)
          Set the order to ascending or descending
 void setParentCategory(java.lang.Integer parentCategory)
          Set the parent to filter
 void setProductNull(java.lang.Boolean productNull)
          Set if the filter is set to product null
 void setStatus(java.lang.Boolean status)
          Set the status filtered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryFilter

public CategoryFilter()
Method Detail

getProductNull

public java.lang.Boolean getProductNull()
Return true if the filter is set to product null

Returns:
boolean

setProductNull

public void setProductNull(java.lang.Boolean productNull)
Set if the filter is set to product null

Parameters:
productNull - the boolean

isOrderAsc

public boolean isOrderAsc()
Return true if the order is set to ascending

Specified by:
isOrderAsc in interface ISortableFilter
Returns:
the boolean

setOrderAsc

public void setOrderAsc(boolean bOrderAsc)
Set the order to ascending or descending

Specified by:
setOrderAsc in interface ISortableFilter
Parameters:
bOrderAsc - the order (true if ascending)

getOrder

public java.lang.String getOrder()
Get the column ordered

Specified by:
getOrder in interface ISortableFilter
Returns:
true if ascending

setOrder

public void setOrder(java.lang.String strOrder)
Set the column ordered

Specified by:
setOrder in interface ISortableFilter
Parameters:
strOrder - the column name

getIdCategory

public java.lang.Integer getIdCategory()
Get the category id filtered

Returns:
the category id

setIdCategory

public void setIdCategory(java.lang.Integer idCategory)
Set the category id to filter

Parameters:
idCategory - the category id

getStatus

public java.lang.Boolean getStatus()
Get the status filtered

Returns:
true if the status must be active

setStatus

public void setStatus(java.lang.Boolean status)
Set the status filtered

Parameters:
status - the status

getName

public java.lang.String getName()
return the category name filtered

Returns:
the category name

setName

public void setName(java.lang.String name)
Set the category name to filter

Parameters:
name - the category name

getParentCategory

public java.lang.Integer getParentCategory()
Get the parent filtered

Returns:
the parent

setParentCategory

public void setParentCategory(java.lang.Integer parentCategory)
Set the parent to filter

Parameters:
parentCategory - the parent

hasFilter

public boolean hasFilter()
Return true if there is filters

Returns:
true if there is filters


Copyright © 2011 Mairie de Paris. All Rights Reserved.