|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.browse.BrowseInfo
public class BrowseInfo
The results of a Browse, including all the contextual information about the query, as well as the results and associated information to create pagable navigation.
| Constructor Summary | |
|---|---|
BrowseInfo(List results,
int overallPosition,
int total,
int offset)
Constructor |
|
| Method Summary | |
|---|---|
String |
getAuthority()
|
DSpaceObject |
getBrowseContainer()
Obtain a DSpaceObject that represents the container object. |
BrowseIndex |
getBrowseIndex()
|
BrowseItem[] |
getBrowseItemResults()
Return the results of the Browse as a BrowseItem array |
int |
getBrowseLevel()
|
int |
getEtAl()
|
int |
getFinish()
Get an integer representing the number within the total set of results which marks the poisition of the last result in the current sub-set |
String |
getFocus()
|
int |
getFocusItem()
|
Item[] |
getItemResults()
Deprecated. |
Item[] |
getItemResults(Context context)
Return the results of the Browse as an Item array. |
int |
getNextOffset()
|
int |
getOffset()
Return the position of the requested item or value in the set of results. |
int |
getOverallPosition()
Return the position of the results in index being browsed. |
int |
getPrevOffset()
|
int |
getResultCount()
Return the number of results. |
List |
getResults()
The results of the Browse. |
int |
getResultsPerPage()
|
SortOption |
getSortOption()
|
int |
getStart()
Get an integer representing the number within the total set of results which marks the position of the first result in the current sub-set |
String[][] |
getStringResults()
Return the results of the Browse as an array of String array. |
int |
getTotal()
Return the total number of items in the index. |
String |
getValue()
|
boolean |
hasAuthority()
Is there an authority key associated with this browse |
boolean |
hasFocus()
Does this browse have a focus? |
boolean |
hasItemFocus()
Does this browse have an item focus (as opposed to one of: no focus, a value focus) |
boolean |
hasNextPage()
Are there further results for the browse that haven't been returned yet? |
boolean |
hasPrevPage()
Are there results prior to these that haven't been returned here? |
boolean |
hasResults()
Are there results for this browse, or was the result set empty? |
boolean |
hasValue()
Is there a value associated with this browse |
boolean |
inCollection()
are we browsing within a Collection container |
boolean |
inCommunity()
are we browsing within a Community container? |
boolean |
isAscending()
|
boolean |
isFirst()
True if there are no previous results from the browse. |
boolean |
isLast()
True if these are the last results from the browse. |
boolean |
isSecondLevel()
Is this a second level (1) browse? Examples of this are a single value browse (e.g. |
boolean |
isStartsWith()
|
boolean |
isTopLevel()
is this a top level (0) browse? Examples of this are a full item browse or a single browse. |
void |
setAscending(boolean ascending)
|
void |
setAuthority(String authority)
|
void |
setBrowseContainer(DSpaceObject dso)
Set the DSpaceObject that is the container for this browse. |
void |
setBrowseIndex(BrowseIndex browseIndex)
|
void |
setBrowseLevel(int level)
|
void |
setEtAl(int etAl)
set the number of metadata fields at which to truncate with "et al" |
void |
setFocus(String focus)
|
void |
setFocusItem(int focusItem)
|
void |
setNextOffset(int offset)
|
void |
setPrevOffset(int prevOffset)
|
void |
setResultsPerPage(int resultsPerPage)
|
void |
setSortOption(SortOption sortOption)
|
void |
setStartsWith(boolean startsWith)
|
void |
setValue(String value)
|
String |
toString()
Utility method for obtaining a string representation of the browse. |
boolean |
wasCached()
True if this browse was cached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BrowseInfo(List results,
int overallPosition,
int total,
int offset)
results - A List of Browse resultsoverallPosition - The position of the first returned item in the overall indextotal - The total number of items in the indexoffset - The position of the requested item in the set of results| Method Detail |
|---|
public int getEtAl()
public void setEtAl(int etAl)
etAl - public int getFocusItem()
public void setFocusItem(int focusItem)
focusItem - The focusItem to set.public boolean hasItemFocus()
public int getResultsPerPage()
public void setResultsPerPage(int resultsPerPage)
resultsPerPage - The resultsPerPage to set.public boolean hasValue()
public boolean hasAuthority()
public boolean hasResults()
public void setFocus(String focus)
focus - the value to focus the browse aroundpublic String getFocus()
public void setBrowseContainer(DSpaceObject dso)
throws BrowseException
dso - the container object; a Community or Collection
BrowseExceptionpublic DSpaceObject getBrowseContainer()
public void setBrowseLevel(int level)
level - the browse levelpublic int getBrowseLevel()
public void setNextOffset(int offset)
id - the database id of the item at the top of the next pagepublic int getNextOffset()
public boolean isAscending()
public void setAscending(boolean ascending)
ascending - The ascending to set.public BrowseIndex getBrowseIndex()
public void setBrowseIndex(BrowseIndex browseIndex)
browseIndex - The browseIndex to set.public int getPrevOffset()
public void setPrevOffset(int prevOffset)
prevItem - The prevItem to set.public SortOption getSortOption()
public void setSortOption(SortOption sortOption)
sortOption - The sortOption to set.public boolean isStartsWith()
public void setStartsWith(boolean startsWith)
startsWith - The startsWith to set.public String getValue()
public void setValue(String value)
value - The value to set.public String getAuthority()
public void setAuthority(String authority)
value - The authority key to set.public boolean isTopLevel()
public boolean isSecondLevel()
public List getResults()
Item(for the
other browses).
public String[][] getStringResults()
public Item[] getItemResults()
public Item[] getItemResults(Context context)
throws BrowseException
BrowseExceptionpublic BrowseItem[] getBrowseItemResults()
public int getResultCount()
public int getOverallPosition()
public int getTotal()
public int getOffset()
public boolean isFirst()
public boolean isLast()
public boolean wasCached()
public boolean inCommunity()
public boolean inCollection()
public boolean hasNextPage()
public boolean hasPrevPage()
public boolean hasFocus()
public int getStart()
public int getFinish()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||