Class FollowFilter
java.lang.Object
fr.paris.lutece.plugins.extend.modules.follow.business.FollowFilter
- All Implemented Interfaces:
Serializable
Follower filter
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSQLQuery(String strSQL) Builds the sql query.booleanContains Id ExtendableResource.booleanContains Id ExtendableResource.booleanContains IdFollow.GET ExtendableResourceTypeGet Id ExtendableResourceintGet Id followbooleanCheck if the filter is applied to a wide search or not.voidsetExtendableResourceType(String strExtendableResourceType) SET the extendable resource typevoidsetFilterValues(fr.paris.lutece.util.sql.DAOUtil daoUtil) Sets the filter values.voidsetIdExtendableResource(String strIdExtendableResource) Set Id ExtendableResourcevoidsetIdFollow(int nIdFollow) Set the Id followvoidsetIsWideSearch(boolean bIsWideSearch) Set true if the filter is applied to a wide search.
-
Field Details
-
ALL
public static final int ALLThe Constant ALL.- See Also:
-
-
Constructor Details
-
FollowFilter
public FollowFilter()CONSTRUCTOR INIT
-
-
Method Details
-
getIdExtendableResource
Get Id ExtendableResource- Returns:
- Id ExtendableResource
-
setIdExtendableResource
Set Id ExtendableResource- Parameters:
strIdExtendableResource- the Id ExtendableResource
-
getExtendableResourceType
GET ExtendableResourceType- Returns:
- Extendable Resource Type
-
setExtendableResourceType
SET the extendable resource type- Parameters:
strExtendableResourceType- the resource type
-
getIdFollow
public int getIdFollow()Get Id follow- Returns:
- Id follow
-
setIdFollow
public void setIdFollow(int nIdFollow) Set the Id follow- Parameters:
nIdFollow- Id follow
-
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
-
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
-
containsIdFollow
public boolean containsIdFollow()Contains IdFollow.- Returns:
- true, if successful
-
containsIdExtendableResource
public boolean containsIdExtendableResource()Contains Id ExtendableResource.- Returns:
- true, if successful
-
containsExtendableResourceType
public boolean containsExtendableResourceType()Contains Id ExtendableResource.- Returns:
- true, if successful
-
buildSQLQuery
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
-