Package com.jalios.jcms.application
Class ApplicationFetcher
- java.lang.Object
-
- com.jalios.jcms.application.ApplicationFetcher
-
public class ApplicationFetcher extends java.lang.Object
A fetcher which query applications- Since:
- jcms-10.0.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApplicationFetcher.Mode
Type mode to filter application resultApplicationFetcher.Mode.ALL
All applicationsApplicationFetcher.Mode.MY_DEPARTMENT
Only applications of my department (Available if department have been setup)ApplicationFetcher.Mode.INSTALLED
Installed applications by given userApplicationFetcher.Mode.SUGGESTIONS
Suggested applications for given userstatic class
ApplicationFetcher.SortMode
Sort mode that can be used to sort your applicationsApplicationFetcher.SortMode.POPULARITY
Popularity based on number of installationsApplicationFetcher.SortMode.TITLE
Title of the applicationApplicationFetcher.SortMode.PDATE
Publish date of the application
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
cids
protected Member
member
protected ApplicationFetcher.Mode
mode
protected PagerParams
pager
protected ApplicationFetcher.SortMode
sortMode
protected java.lang.String
text
-
Constructor Summary
Constructors Constructor Description ApplicationFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationFetcher
cids(java.lang.String[] cids)
java.util.Collection<Application>
getApplications()
java.lang.String[]
getCids()
Member
getMember()
ApplicationFetcher.Mode
getMode()
ApplicationFetcher.SortMode
getSortMode()
java.lang.String
getText()
ApplicationFetcher
member(Member member)
ApplicationFetcher
mode(ApplicationFetcher.Mode mode)
ApplicationFetcher
sortMode(ApplicationFetcher.SortMode sortMode)
ApplicationFetcher
text(java.lang.String text)
-
-
-
Field Detail
-
mode
protected ApplicationFetcher.Mode mode
-
sortMode
protected ApplicationFetcher.SortMode sortMode
-
member
protected Member member
-
pager
protected PagerParams pager
-
cids
protected java.lang.String[] cids
-
text
protected java.lang.String text
-
-
Method Detail
-
getApplications
public java.util.Collection<Application> getApplications()
- Returns:
- the
Application
collection based on given filters
-
getMode
public ApplicationFetcher.Mode getMode()
- Returns:
- the filter
ApplicationFetcher.Mode
-
mode
public ApplicationFetcher mode(ApplicationFetcher.Mode mode)
- Parameters:
mode
- theApplicationFetcher.Mode
- Returns:
- current object
-
getSortMode
public ApplicationFetcher.SortMode getSortMode()
- Returns:
- the
ApplicationFetcher.SortMode
-
sortMode
public ApplicationFetcher sortMode(ApplicationFetcher.SortMode sortMode)
- Parameters:
sortMode
- theApplicationFetcher.SortMode
- Returns:
- current object
-
getMember
public Member getMember()
-
member
public ApplicationFetcher member(Member member)
-
getCids
public java.lang.String[] getCids()
-
cids
public ApplicationFetcher cids(java.lang.String[] cids)
-
getText
public java.lang.String getText()
-
text
public ApplicationFetcher text(java.lang.String text)
-
-