Class EntryFilter
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.EntryFilter
class EntryFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intValue for boolean filters to represent Boolean.FALSEstatic final intValue for boolean filters to represent Boolean.TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanCheck if the filter contains the id entry typebooleanCheck if this filter contains a field idbooleanbooleanbooleanCheck if this filter contains a resource idbooleanbooleanbooleanCheck if the filter contains the resource typeintintintintGet the id entry typeintintintintGet the id of the resource in the filterintintGet the resource type of the filtervoidsetEntryParentNull(int idEntryParentNull) set 1 if the id of parent entry must be nullvoidsetFieldDependNull(int idFieldDependNull) set 1 if the id of field depend must be nullvoidsetIdEntryParent(int idEntryParent) set the id of parent entryvoidsetIdEntryType(int nIdEntryType) set the id of entry typevoidsetIdFieldDepend(int idField) Set the id of field depend in the filtervoidsetIdIsComment(int idComment) set 1 if the entry must be a comment,0 if the entry must not be a commentvoidsetIdIsGroup(int idIsGroup) set 1 if the entry must be a group,0 if the entry must not be a groupvoidsetIdResource(int nIdResource) Set the id of resource in the filtervoidsetIsIndexed(int nIsIndexed) voidsetIsOnlyDisplayInBack(int isOnlyDisplayInBack) voidsetResourceType(String strResourceType) Set the result type of the filter
-
Field Details
-
FILTER_FALSE
public static final int FILTER_FALSEValue for boolean filters to represent Boolean.FALSE- See Also:
-
FILTER_TRUE
public static final int FILTER_TRUEValue for boolean filters to represent Boolean.TRUE- See Also:
-
-
Constructor Details
-
EntryFilter
public EntryFilter()
-
-
Method Details
-
getIdResource
public int getIdResource()Get the id of the resource in the filter- Returns:
- The id of resource insert in the filter
-
setIdResource
public void setIdResource(int nIdResource) Set the id of resource in the filter- Parameters:
nIdResource- The id of resource to insert in the filter
-
containsIdResource
public boolean containsIdResource()Check if this filter contains a resource id- Returns:
- true if the filter contain an id of resource
-
getIdFieldDepend
public int getIdFieldDepend()- Returns:
- the id of field insert in the filter
-
setIdFieldDepend
public void setIdFieldDepend(int idField) Set the id of field depend in the filter- Parameters:
idField- the id of field depend to insert in the filter
-
containsIdField
public boolean containsIdField()Check if this filter contains a field id- Returns:
- true if the filter contain an id of field depend
-
getIdEntryParent
public int getIdEntryParent()- Returns:
- the id of parent entry insert in the filter
-
setIdEntryParent
public void setIdEntryParent(int idEntryParent) set the id of parent entry- Parameters:
idEntryParent- the id of parent entry to insert in the filter
-
containsIdEntryParent
public boolean containsIdEntryParent()- Returns:
- true if the filter contain an parent id
-
getEntryParentNull
public int getEntryParentNull()- Returns:
- 1 if the id of parent entry must be null
-
setEntryParentNull
public void setEntryParentNull(int idEntryParentNull) set 1 if the id of parent entry must be null- Parameters:
idEntryParentNull- 1 if the id of parent entry must be null
-
containsEntryParentNull
public boolean containsEntryParentNull()- Returns:
- true if the parent entry must be null
-
getFieldDependNull
public int getFieldDependNull()- Returns:
- 1 if the id of field depend must be null
-
setFieldDependNull
public void setFieldDependNull(int idFieldDependNull) set 1 if the id of field depend must be null- Parameters:
idFieldDependNull- 1 if the id of field depend must be null
-
containsFieldDependNull
public boolean containsFieldDependNull()- Returns:
- true if the id of field depend must be null
-
getIdIsGroup
public int getIdIsGroup()- Returns:
- 1 if the entry is a group,0 if the entry is not a group
-
setIdIsGroup
public void setIdIsGroup(int idIsGroup) set 1 if the entry must be a group,0 if the entry must not be a group- Parameters:
idIsGroup- 1 if the entry must be a group,0 if the entry must not be a group
-
containsIdIsGroup
public boolean containsIdIsGroup()- Returns:
- true if the entry must be a group or must not be a group
-
getIdIsComment
public int getIdIsComment()- Returns:
- 1 if the entry must be a comment,0 if the entry must not be a comment
-
setIdIsComment
public void setIdIsComment(int idComment) set 1 if the entry must be a comment,0 if the entry must not be a comment- Parameters:
idComment- 1 if the entry must be a comment,0 if the entry must not be a comment
-
containsIdIsComment
public boolean containsIdIsComment()- Returns:
- true if the entry must be a comment or must not be a comment
-
getIdEntryType
public int getIdEntryType()Get the id entry type- Returns:
- the id of entry type insert in the filter
-
setIdEntryType
public void setIdEntryType(int nIdEntryType) set the id of entry type- Parameters:
nIdEntryType- the id of entry type to insert in the filter
-
containsIdEntryType
public boolean containsIdEntryType()Check if the filter contains the id entry type- Returns:
- true if the filter contains an id entry type
-
getResourceType
Get the resource type of the filter- Returns:
- The resource type of the filter
-
setResourceType
Set the result type of the filter- Parameters:
strResourceType- The resource type of the filter
-
containsResourceType
public boolean containsResourceType()Check if the filter contains the resource type- Returns:
- True if the filter contains the resource type, false otherwise
-
getIsOnlyDisplayInBack
public int getIsOnlyDisplayInBack()- Returns:
- 1 if the entry must only display in back a comment,0 if the entry must not only display in back
-
setIsOnlyDisplayInBack
public void setIsOnlyDisplayInBack(int isOnlyDisplayInBack) - Parameters:
isOnlyDisplayInBack-
-
containsIsOnlyDisplayInBack
public boolean containsIsOnlyDisplayInBack()- Returns:
- true if the entry must be only display in back or must not be only display in back
-
getIsIndexed
public int getIsIndexed() -
setIsIndexed
public void setIsIndexed(int nIsIndexed) -
containsIsIndexed
public boolean containsIsIndexed()
-