OpacApi.CancelResult, OpacApi.MultiStepResult, OpacApi.OpacErrorException, OpacApi.ProlongAllResult, OpacApi.ProlongResult, OpacApi.ReservationResult
cookieStore, data, db, defaulttypes, https_url, languageCode, languageCodes, library, lor_reservations, opac_url, pwEncoded, resultcount, reusehtml, searchSet
http_client, httpLoggingEnabled, initialised, KEY_SEARCH_QUERY_AUDIENCE, KEY_SEARCH_QUERY_AUTHOR, KEY_SEARCH_QUERY_AVAILABLE, KEY_SEARCH_QUERY_BARCODE, KEY_SEARCH_QUERY_BRANCH, KEY_SEARCH_QUERY_CATEGORY, KEY_SEARCH_QUERY_DIGITAL, KEY_SEARCH_QUERY_FREE, KEY_SEARCH_QUERY_HOME_BRANCH, KEY_SEARCH_QUERY_ISBN, KEY_SEARCH_QUERY_KEYWORDA, KEY_SEARCH_QUERY_KEYWORDB, KEY_SEARCH_QUERY_LOCATION, KEY_SEARCH_QUERY_ORDER, KEY_SEARCH_QUERY_PUBLISHER, KEY_SEARCH_QUERY_SYSTEM, KEY_SEARCH_QUERY_TITLE, KEY_SEARCH_QUERY_YEAR, KEY_SEARCH_QUERY_YEAR_RANGE_END, KEY_SEARCH_QUERY_YEAR_RANGE_START, stringProvider, supportedLanguages
SUPPORT_FLAG_ACCOUNT_PROLONG_ALL, SUPPORT_FLAG_CHANGE_ACCOUNT, SUPPORT_FLAG_ENDLESS_SCROLLING, SUPPORT_FLAG_QUICKLINKS, SUPPORT_FLAG_WARN_PROLONG_FEES, SUPPORT_FLAG_WARN_RESERVATION_FEES
Constructor and Description |
---|
PicaOld() |
Modifier and Type | Method and Description |
---|---|
AccountData |
account(Account account)
Load account view (borrowed and reserved items, see
AccountData )
This function is always called from a background thread, you can use blocking network
operations in it. |
OpacApi.CancelResult |
cancel(java.lang.String media,
Account account,
int useraction,
java.lang.String selection)
Cancel a media reservation/order identified by the given String (see AccountData
documentation) (see
AccountData )
This function is always called from a background thread, you can use blocking network
operations in it. |
void |
checkAccountData(Account account)
Check the validity of given account data.
|
OpacApi.ProlongResult |
prolong(java.lang.String media,
Account account,
int useraction,
java.lang.String Selection)
Extend the lending period of the item identified by the given String (see
AccountData )
This function is always called from a background thread, you can use blocking network
operations in it. |
OpacApi.ProlongAllResult |
prolongAll(Account account,
int useraction,
java.lang.String selection)
Extend the lending period of all lent items.
|
OpacApi.ReservationResult |
reservation_result(java.util.List<org.apache.http.NameValuePair> params,
boolean multi) |
OpacApi.ReservationResult |
reservation(DetailledItem item,
Account account,
int useraction,
java.lang.String selection)
Perform a reservation on the item last fetched with
getResultById or
getResult for Account acc . |
addParameters, filterResults, getDefaultEncoding, getLang, getMediaTypeInSingleResult, getResult, getResultById, getShareUrl, getSupportedLanguages, getSupportFlags, init, parse_result, parse_search, parseSearchFields, search, searchGetPage, setLanguage, updateSearchSetValue, volumeSearch
buildHttpGetParams, cleanUrl, convertStreamToString, convertStreamToString, downloadCover, getQueryParams, getQueryParamsFirst, getSearchFields, httpGet, httpGet, httpGet, httpGet, httpPost, httpPost, httpPost, httpPost, logHttpError, searchQueryListToMap, setHttpLoggingEnabled, setStringProvider, shouldUseMeaningDetector, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSearchFields, setStringProvider, start
public OpacApi.ReservationResult reservation(DetailledItem item, Account account, int useraction, java.lang.String selection) throws java.io.IOException
OpacApi
getResultById
or
getResult
for Account acc
. (if applicable)
This function is always called from a background thread, you can use blocking network
operations in it.item
- The item to place a reservation for.account
- Account to be useduseraction
- Identifier for the selection made by the user in selection
, if
a selection was made (see OpacApi.MultiStepResult.getActionIdentifier()
)
or 0, if no selection was required. If your last method call returned
CONFIRMATION_NEEDED
, this is set to
ACTION_CONFIRMATION
if the user positively confirmed the action.selection
- When the method is called for the first time or if useraction is
ACTION_CONFIRMATION
, this parameter is null. If you return
SELECTION
in your OpacApi.MultiStepResult.getStatus()
, this
method will be called again with the user's selection present in
selection.ReservationResult
object which has to have the status set.java.io.IOException
public OpacApi.ReservationResult reservation_result(java.util.List<org.apache.http.NameValuePair> params, boolean multi) throws java.io.IOException
java.io.IOException
public OpacApi.ProlongResult prolong(java.lang.String media, Account account, int useraction, java.lang.String Selection) throws java.io.IOException
OpacApi
AccountData
)
This function is always called from a background thread, you can use blocking network
operations in it.media
- Media identificationaccount
- Account to be useduseraction
- Identifier for the selection made by the user in selection
, if
a selection was made (see OpacApi.MultiStepResult.getActionIdentifier()
) or
0, if no selection was required. If your last method call returned
CONFIRMATION_NEEDED
, this is set to
ACTION_CONFIRMATION
if the user positively confirmed the action.Selection
- When the method is called for the first time or if useraction is
ACTION_CONFIRMATION
, this parameter is null. If you return
SELECTION
in your OpacApi.MultiStepResult.getStatus()
, this
method will be called again with the user's selection present in
selection.ProlongResult
object which has to have the status set.java.io.IOException
public OpacApi.ProlongAllResult prolongAll(Account account, int useraction, java.lang.String selection) throws java.io.IOException
OpacApi
OpacApi.getSupportFlags()
implementation's return value contains the OpacApi.SUPPORT_FLAG_ACCOUNT_PROLONG_ALL
flag. If you don't support the feature, just implement a
stub method, like return false;
This function is always called from a background thread, you can use blocking network
operations in it.ProlongAllResult
object which has to have the status set.java.io.IOException
OpacApi.prolong(String, Account, int, String)
,
AccountData
public OpacApi.CancelResult cancel(java.lang.String media, Account account, int useraction, java.lang.String selection) throws java.io.IOException, OpacApi.OpacErrorException
OpacApi
AccountData
)
This function is always called from a background thread, you can use blocking network
operations in it.media
- Media identificationaccount
- Account to be useduseraction
- Identifier for the selection made by the user in selection
, if
a selection was made (see OpacApi.MultiStepResult.getActionIdentifier()
) or 0,
if no selection was required. If your last method call returned
CONFIRMATION_NEEDED
, this is set to
ACTION_CONFIRMATION
if the user positively confirmed the action.selection
- When the method is called for the first time or if useraction is
ACTION_CONFIRMATION
, this parameter is null. If you return
SELECTION
in your OpacApi.MultiStepResult.getStatus()
, this
method will be called again with the user's selection present in
selection.CancelResult
object which has to have the status set.java.io.IOException
OpacApi.OpacErrorException
public AccountData account(Account account) throws java.io.IOException, org.json.JSONException, OpacApi.OpacErrorException
OpacApi
AccountData
)
This function is always called from a background thread, you can use blocking network
operations in it.account
- The account to displayjava.io.IOException
org.json.JSONException
OpacApi.OpacErrorException
AccountData
public void checkAccountData(Account account) throws java.io.IOException, org.json.JSONException, OpacApi.OpacErrorException
OpacApi
OpacApi.account(Account)
function because just checking the login can be much faster than retrieving all the account
data.
This function is always called from a background thread, you can use blocking network
operations in it.account
- The account to checkOpacApi.OpacErrorException
- when the login data is invalid or there's another error message
from the OPAC systemjava.io.IOException
org.json.JSONException