|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.masterkey.pazpar2.client.Pazpar2Settings
public class Pazpar2Settings
Manages Pazpar2Settings
Constructor Summary | |
---|---|
protected |
Pazpar2Settings(Pazpar2ClientConfiguration cfg)
|
Method Summary | |
---|---|
String |
encode()
|
static Pazpar2Settings |
fromSearchables(Records records,
Pazpar2ClientConfiguration cfg)
|
String |
getSetting(String targetId,
String key)
|
void |
loadSearchable(Record record)
Loads torus target setting record (enveloped, first layer). |
void |
loadSearchable(SearchableTypeLayer l)
Loads torus target setting record (layer). |
void |
loadSearchables(Records records)
Loads torus target setting records. |
protected void |
setPrefixedSetttings(String targetId,
String mapPrefix,
List<Object> elements)
setPrefixedSetttings: set a value of maps based on prefix |
void |
setRecordFilter(String recordFilter,
String recordFilterCriteria)
|
boolean |
setSetting(String targetId,
String key,
String value)
|
boolean |
setSetting(String targetId,
String key,
String value,
String defaultValue)
Sets the property 'key' of the given 'targetId' to 'value'. |
Document |
toXml(Element parent)
Encode settings to an XML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Pazpar2Settings(Pazpar2ClientConfiguration cfg)
Method Detail |
---|
public static Pazpar2Settings fromSearchables(Records records, Pazpar2ClientConfiguration cfg)
public void loadSearchables(Records records)
record
- target setting recordpublic void loadSearchable(Record record)
record
- target setting recordpublic void loadSearchable(SearchableTypeLayer l)
record
- target setting recordpublic boolean setSetting(String targetId, String key, String value)
public boolean setSetting(String targetId, String key, String value, String defaultValue)
targetId
- The target to define a setting forkey
- The name of the settingvalue
- The value of the settingdefaultValue
- Fall-back value if 'value' is nullpublic String getSetting(String targetId, String key)
protected void setPrefixedSetttings(String targetId, String mapPrefix, List<Object> elements)
public String encode() throws UnsupportedEncodingException
UnsupportedEncodingException
public Document toXml(Element parent) throws Error
Error
public void setRecordFilter(String recordFilter, String recordFilterCriteria)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |