|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.browse.BrowserScope
public class BrowserScope
A class which represents the initial request to the browse system. When passed into the BrowseEngine, this will cause the creation of a BrowseInfo object
| Constructor Summary | |
|---|---|
BrowserScope(Context context)
Construct a new BrowserScope using the given Context |
|
| Method Summary | |
|---|---|
String |
getAuthorityValue()
|
DSpaceObject |
getBrowseContainer()
Obtain a DSpaceObject that represents the container object. |
BrowseIndex |
getBrowseIndex()
|
int |
getBrowseLevel()
|
Collection |
getCollection()
|
Community |
getCommunity()
|
Context |
getContext()
|
int |
getEtAl()
|
String |
getFilterValue()
Used for second-level item browses, to only display items that match the value |
String |
getFilterValueLang()
|
boolean |
getFilterValuePartial()
Should the filter value be treated as partial, or exact |
int |
getJumpToItem()
|
String |
getJumpToValue()
|
String |
getJumpToValueLang()
|
int |
getOffset()
|
String |
getOrder()
|
int |
getResultsPerPage()
|
int |
getSortBy()
|
SortOption |
getSortOption()
Obtain the sort option |
String |
getStartsWith()
|
boolean |
hasFilterValue()
|
boolean |
hasJumpToItem()
|
boolean |
hasJumpToValue()
|
boolean |
hasStartsWith()
|
boolean |
inCollection()
|
boolean |
inCommunity()
|
boolean |
isAscending()
|
boolean |
isSecondLevel()
|
boolean |
isTopLevel()
|
void |
setAuthorityValue(String value)
|
void |
setBrowseContainer(DSpaceObject dso)
Set the DSpaceObject that is the container for this browse. |
void |
setBrowseIndex(BrowseIndex browseIndex)
|
void |
setBrowseLevel(int level)
|
void |
setCollection(Collection collection)
|
void |
setCommunity(Community community)
|
void |
setContext(Context context)
|
void |
setEtAl(int etAl)
|
void |
setFilterValue(String value)
Used for second-level item browses, to only display items that match the value |
void |
setFilterValueLang(String lang)
|
void |
setFilterValuePartial(boolean filterValuePartial)
Should the filter value be treated as partial, or exact |
void |
setJumpToItem(int itemId)
|
void |
setJumpToValue(String value)
|
void |
setJumpToValueLang(String valueLang)
|
void |
setOffset(int offset)
|
void |
setOrder(String order)
|
void |
setResultsPerPage(int resultsPerPage)
|
void |
setSortBy(int sortBy)
|
void |
setStartsWith(String startsWith)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserScope(Context context)
context - the DSpace Context| Method Detail |
|---|
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 boolean isTopLevel()
public boolean isSecondLevel()
public BrowseIndex getBrowseIndex()
public void setBrowseIndex(BrowseIndex browseIndex)
throws BrowseException
browseIndex - The browseIndex to set.
BrowseExceptionpublic int getEtAl()
public void setEtAl(int etAl)
etAl - the author limitpublic Collection getCollection()
public void setCollection(Collection collection)
collection - The collection to set.public Community getCommunity()
public void setCommunity(Community community)
community - The community to set.public Context getContext()
public void setContext(Context context)
context - The context to set.public int getJumpToItem()
public void setJumpToItem(int itemId)
itemId - The focus to set.public String getJumpToValue()
public void setJumpToValue(String value)
value - the value to focus onpublic String getJumpToValueLang()
public void setJumpToValueLang(String valueLang)
valueLang - the language of the value to focus onpublic String getOrder()
public void setOrder(String order)
order - The order to set.public int getResultsPerPage()
public void setResultsPerPage(int resultsPerPage)
resultsPerPage - The resultsPerPage to set.public int getSortBy()
public void setSortBy(int sortBy)
throws BrowseException
sortBy - The sortBy to set.
BrowseExceptionpublic int getOffset()
public void setOffset(int offset)
offset - the offset to use for this scope
public SortOption getSortOption()
throws BrowseException
BrowseExceptionpublic String getStartsWith()
public void setStartsWith(String startsWith)
startsWith - The startsWith to set.public String getFilterValue()
public void setFilterValue(String value)
value - The value to set.public boolean getFilterValuePartial()
public void setFilterValuePartial(boolean filterValuePartial)
filterValuePartial - true if partial, false if exactpublic String getFilterValueLang()
public void setFilterValueLang(String lang)
lang - The language to set.public boolean inCommunity()
public boolean inCollection()
public boolean isAscending()
public boolean hasFilterValue()
public boolean hasJumpToItem()
public boolean hasJumpToValue()
public boolean hasStartsWith()
public String getAuthorityValue()
public void setAuthorityValue(String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||