Class ResourceExtenderHistoryFilter
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.business.extender.history.ResourceExtenderHistoryFilter
-
- All Implemented Interfaces:
java.io.Serializable
public class ResourceExtenderHistoryFilter extends java.lang.Object implements java.io.SerializableResourceExtenderHistoryFilter.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intALLThe Constant ALL.
-
Constructor Summary
Constructors Constructor Description ResourceExtenderHistoryFilter()Instantiates a new resource extender history filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbuildSQLQuery(java.lang.String strSQL)Builds the sql query.booleancontainsAttributeName()Contains attribute name.booleancontainsDateCreation()Contains date creation.booleancontainsDateCreationBegin()Contains date creation.booleancontainsDateCreationEnd()Contains date creation.booleancontainsExtendableResourceType()Contains extendable resource type.booleancontainsExtenderType()Contains extender type.booleancontainsGroupByAttributeName()Contains group by attribute name.booleancontainsIdExtendableResource()Contains id extendable resource.booleancontainsIdHistory()Contains id history.booleancontainsIpAddress()Contains ip address.booleancontainsItemsPerPage()Contains items per page.booleancontainsPageIndex()Contains page index.booleancontainsUserGuid()Contains user guid.java.lang.StringgetDateCreation()Gets the date creation.java.lang.StringgetDateCreationBegin()Gets the date creation.java.lang.StringgetDateCreationEnd()Gets the date creation.java.lang.StringgetExtendableResourceType()Gets the extendable resource type.java.lang.StringgetExtenderType()Gets the extender type.java.lang.StringgetGroupByAttributeName()Gets the group by attribute name.java.lang.StringgetIdExtendableResource()Gets the id extendable resource.longgetIdHistory()Gets the id history.java.lang.StringgetIpAddress()Gets the ip address.intgetItemsPerPage()OperatorEnumgetOperatorDateCreation()intgetPageIndex()java.lang.StringgetSortedAttributeName()Gets the sorted attribute name.java.lang.StringgetSortedAttributeNameForSQLQuery()Gets the sorted attribute name for sql query.java.lang.StringgetUserGuid()Gets the user guid.booleanisAscSort()Checks if is asc sort.booleanisWideSearch()Check if the filter is applied to a wide search or not.voidsetAscSort(boolean bAscSort)Sets the asc sort.voidsetAscSort(javax.servlet.http.HttpServletRequest request)Sets the asc sort.voidsetDateCreation(java.lang.String strDateCreation)Sets the date creation.voidsetDateCreationBegin(java.lang.String strDateCreationBegin)Sets the date creation.voidsetDateCreationEnd(java.lang.String strDateCreationEnd)Sets the date creation.voidsetExtendableResourceType(java.lang.String strExtendableResourceType)Sets the extendable resource type.voidsetExtenderType(java.lang.String strExtenderType)Sets the extender type.voidsetFilterValues(fr.paris.lutece.util.sql.DAOUtil daoUtil)Sets the filter values.voidsetGroupByAttributeName(java.lang.String strGroupByAttributeName)Sets the group by attribute name.voidsetIdExtendableResource(java.lang.String strIdExtendableResource)Sets the id extendable resource.voidsetIdHistory(long lIdHistory)Sets the id history.voidsetIpAddress(java.lang.String strIpAddress)Sets the ip address.voidsetIsWideSearch(boolean bIsWideSearch)Set true if the filter is applied to a wide search.voidsetItemsPerPage(int nItemsPerPage)voidsetOperatorDateCreation(OperatorEnum operatorDateCreation)voidsetPageIndex(int nPageIndex)voidsetSortedAttributeName(java.lang.String strSortedAttributeName)Sets the sorted attribute name.voidsetSortedAttributeName(javax.servlet.http.HttpServletRequest request)Sets the sorted attribute name.voidsetUserGuid(java.lang.String strUserGuid)Sets the user guid.
-
-
-
Field Detail
-
ALL
public static final int ALL
The Constant ALL.- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdHistory
public long getIdHistory()
Gets the id history.- Returns:
- the lIdHistory
-
setIdHistory
public void setIdHistory(long lIdHistory)
Sets the id history.- Parameters:
lIdHistory- the lIdHistory to set
-
containsIdHistory
public boolean containsIdHistory()
Contains id history.- Returns:
- true, if successful
-
getExtenderType
public java.lang.String getExtenderType()
Gets the extender type.- Returns:
- the strExtenderType
-
setExtenderType
public void setExtenderType(java.lang.String strExtenderType)
Sets the extender type.- Parameters:
strExtenderType- the strExtenderType to set
-
containsExtenderType
public boolean containsExtenderType()
Contains extender type.- Returns:
- true, if successful
-
getIdExtendableResource
public java.lang.String getIdExtendableResource()
Gets the id extendable resource.- Returns:
- the strIdExtendableResource
-
setIdExtendableResource
public void setIdExtendableResource(java.lang.String strIdExtendableResource)
Sets the id extendable resource.- Parameters:
strIdExtendableResource- the strIdExtendableResource to set
-
containsIdExtendableResource
public boolean containsIdExtendableResource()
Contains id extendable resource.- Returns:
- true, if successful
-
getExtendableResourceType
public java.lang.String getExtendableResourceType()
Gets the extendable resource type.- Returns:
- the extendableResourceType
-
setExtendableResourceType
public void setExtendableResourceType(java.lang.String strExtendableResourceType)
Sets the extendable resource type.- Parameters:
strExtendableResourceType- the extendableResourceType to set
-
containsExtendableResourceType
public boolean containsExtendableResourceType()
Contains extendable resource type.- Returns:
- true, if successful
-
getUserGuid
public java.lang.String getUserGuid()
Gets the user guid.- Returns:
- the strUserGuid
-
setUserGuid
public void setUserGuid(java.lang.String strUserGuid)
Sets the user guid.- Parameters:
strUserGuid- the strUserGuid to set
-
containsUserGuid
public boolean containsUserGuid()
Contains user guid.- Returns:
- true, if successful
-
getIpAddress
public java.lang.String getIpAddress()
Gets the ip address.- Returns:
- the strIpAddress
-
setIpAddress
public void setIpAddress(java.lang.String strIpAddress)
Sets the ip address.- Parameters:
strIpAddress- the strIpAddress to set
-
containsIpAddress
public boolean containsIpAddress()
Contains ip address.- Returns:
- true, if successful
-
getDateCreation
public java.lang.String getDateCreation()
Gets the date creation.- Returns:
- the date creation
-
setDateCreation
public void setDateCreation(java.lang.String strDateCreation)
Sets the date creation.- Parameters:
strDateCreation- the new date creation
-
containsDateCreation
public boolean containsDateCreation()
Contains date creation.- Returns:
- true, if successful
-
getDateCreationBegin
public java.lang.String getDateCreationBegin()
Gets the date creation.- Returns:
- the date creation
-
setDateCreationBegin
public void setDateCreationBegin(java.lang.String strDateCreationBegin)
Sets the date creation.- Parameters:
strDateCreationBegin- the new date creation
-
containsDateCreationBegin
public boolean containsDateCreationBegin()
Contains date creation.- Returns:
- true, if successful
-
getDateCreationEnd
public java.lang.String getDateCreationEnd()
Gets the date creation.- Returns:
- the date creation
-
setDateCreationEnd
public void setDateCreationEnd(java.lang.String strDateCreationEnd)
Sets the date creation.- Parameters:
strDateCreationEnd- the new date creation
-
containsDateCreationEnd
public boolean containsDateCreationEnd()
Contains date creation.- Returns:
- true, if successful
-
setIsWideSearch
public void setIsWideSearch(boolean bIsWideSearch)
Set true if the filter is applied to a wide search.
In other words, the SQL query will use- SQL OR if it is applied to a wide search
- SQL AND if it is not applied to a wide search
- Parameters:
bIsWideSearch- true if it a wide search, false otherwise
-
isWideSearch
public boolean isWideSearch()
Check if the filter is applied to a wide search or not.
In other words, the SQL query will use- SQL OR if it is applied to a wide search
- SQL AND if it is not applied to a wide search
- Returns:
- true if it is applied to a wide search
-
getSortedAttributeName
public java.lang.String getSortedAttributeName()
Gets the sorted attribute name.- Returns:
- the sorted attribute name
-
getSortedAttributeNameForSQLQuery
public java.lang.String getSortedAttributeNameForSQLQuery()
Gets the sorted attribute name for sql query.- Returns:
- the sorted attribute name for sql query
-
setSortedAttributeName
public void setSortedAttributeName(java.lang.String strSortedAttributeName)
Sets the sorted attribute name.- Parameters:
strSortedAttributeName- the new sorted attribute name
-
setSortedAttributeName
public void setSortedAttributeName(javax.servlet.http.HttpServletRequest request)
Sets the sorted attribute name.- Parameters:
request- the request
-
containsAttributeName
public boolean containsAttributeName()
Contains attribute name.- Returns:
- true, if successful
-
isAscSort
public boolean isAscSort()
Checks if is asc sort.- Returns:
- true, if is asc sort
-
setAscSort
public void setAscSort(boolean bAscSort)
Sets the asc sort.- Parameters:
bAscSort- the new asc sort
-
setAscSort
public void setAscSort(javax.servlet.http.HttpServletRequest request)
Sets the asc sort.- Parameters:
request- the request
-
getOperatorDateCreation
public OperatorEnum getOperatorDateCreation()
- Returns:
- the operatorDateCreation
-
setOperatorDateCreation
public void setOperatorDateCreation(OperatorEnum operatorDateCreation)
- Parameters:
operatorDateCreation- the operatorDateCreation to set
-
getGroupByAttributeName
public java.lang.String getGroupByAttributeName()
Gets the group by attribute name.- Returns:
- the group by attribute name
-
setGroupByAttributeName
public void setGroupByAttributeName(java.lang.String strGroupByAttributeName)
Sets the group by attribute name.- Parameters:
strGroupByAttributeName- the new group by attribute name
-
containsGroupByAttributeName
public boolean containsGroupByAttributeName()
Contains group by attribute name.- Returns:
- true, if successful
-
getItemsPerPage
public int getItemsPerPage()
- Returns:
- the nItemsPerPage
-
setItemsPerPage
public void setItemsPerPage(int nItemsPerPage)
- Parameters:
nItemsPerPage- the nItemsPerPage to set
-
containsItemsPerPage
public boolean containsItemsPerPage()
Contains items per page.- Returns:
- true, if successful
-
getPageIndex
public int getPageIndex()
- Returns:
- the nPageIndex
-
setPageIndex
public void setPageIndex(int nPageIndex)
- Parameters:
nPageIndex- the nPageIndex to set
-
containsPageIndex
public boolean containsPageIndex()
Contains page index.- Returns:
- true, if successful
-
buildSQLQuery
public java.lang.String buildSQLQuery(java.lang.String strSQL)
Builds the sql query.- Parameters:
strSQL- the str sql- Returns:
- the string
-
setFilterValues
public void setFilterValues(fr.paris.lutece.util.sql.DAOUtil daoUtil)
Sets the filter values.- Parameters:
daoUtil- the new filter values
-
-