public class BaseCitationService.BasicCitation extends Object implements Citation
| Modifier and Type | Field and Description |
|---|---|
protected Map |
m_citationProperties |
protected String |
m_citationUrl |
protected String |
m_fullTextUrl |
protected String |
m_id |
protected String |
m_imageUrl |
protected boolean |
m_isAdded |
protected int |
m_position |
protected String |
m_preferredUrl |
protected Schema |
m_schema |
protected String |
m_searchSourceUrl |
protected Integer |
m_serialNumber |
protected boolean |
m_temporary |
protected Map |
m_urls |
protected static String |
OPENURL_BOOK_FORMAT |
protected static String |
OPENURL_CONTEXT_FORMAT |
protected static String |
OPENURL_JOURNAL_FORMAT |
protected static String |
OPENURL_VERSION |
ADD_PREFIX_TEXT, OMIT_PREFIX_TEXT| Modifier | Constructor and Description |
|---|---|
protected |
BasicCitation()
Constructs a temporary citation.
|
protected |
BasicCitation(org.osid.repository.Asset asset)
Constructs a temporary citation based on an asset.
|
|
BasicCitation(BaseCitationService.BasicCitation other) |
|
BasicCitation(String mediatype)
Construct a citation not marked as temporary of a particular type.
|
|
BasicCitation(String citationId,
Schema schema) |
|
BasicCitation(String citationId,
String mediatype)
Construct a citation not marked as temporary of a particular type
with a particular id.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addCustomUrl(String label,
String url) |
String |
addCustomUrl(String label,
String url,
String prefixRequest) |
boolean |
addPrefixToUrl(String id)
Add prefix text to this URL?
|
void |
addPropertyValue(String name,
Object value) |
void |
copy(Citation citation) |
void |
exportRis(StringBuilder buffer) |
void |
exportRisField(String rislabel,
List propvalues,
StringBuilder buffer,
String prefix) |
void |
exportRisField(String rislabel,
Object val,
StringBuilder buffer) |
void |
exportRisField(String rislabel,
Object val,
StringBuilder buffer,
String prefix) |
void |
exportRisField(String rislabel,
String value,
StringBuilder buffer) |
void |
exportRisField(String rislabel,
String value,
StringBuilder buffer,
String prefix) |
String |
getAbstract() |
Map |
getCitationProperties() |
Object |
getCitationProperty(String name) |
Object |
getCitationProperty(String name,
boolean needSingleValue) |
String |
getCreator() |
String |
getCustomUrl(String id)
Fetch a custom (direct) URL by ID.
|
List |
getCustomUrlIds() |
String |
getCustomUrlLabel(String id) |
String |
getDisplayName() |
String |
getFirstAuthor() |
String |
getId() |
String |
getOpenurl() |
String |
getOpenurlParameters() |
int |
getPosition()
This only makes sense, and will only be set, in the context of a collection.
|
String |
getPreferredUrlId() |
String |
getPrimaryUrl()
Get the primary URL for this resource
Normally, this is an OpenURL created from citation properties, but if
either the Repository OSID or the user has designated a preferred URL,
we'll use it instead.
|
Schema |
getSchema() |
String |
getSource() |
String |
getSubjectString() |
String |
getUnprefixedCustomUrl(String id)
Fetch a custom (direct) URL by ID.
|
String |
getUrlPrefix()
Fetch the configured URL prefix string.
|
String |
getYear() |
boolean |
hasCitationProperty(String fieldId) |
boolean |
hasCustomUrls() |
boolean |
hasPreferredUrl() |
boolean |
hasPropertyValue(String fieldId) |
void |
importFromRis(InputStream ris) |
boolean |
importFromRisList(List risImportList) |
boolean |
isAdded() |
protected boolean |
isCurrentlyMultivalued(String fieldId)
Checks if the field is currently multivalued.
|
boolean |
isMultivalued(String fieldId) |
protected boolean |
isSchemaLimited(String fieldId) |
protected boolean |
isSchemaMultivalued(String fieldId)
Should the field be limited to a single value.
|
boolean |
isTemporary() |
List |
listCitationProperties() |
protected void |
matchSchema() |
void |
setAdded(boolean added) |
void |
setCitationProperty(String name,
Object value) |
protected void |
setDefaults() |
void |
setDisplayName(String name) |
void |
setPosition(int position)
This only makes sense, and will only be set, in the context of a collection.
|
void |
setPreferredUrl(String urlid) |
void |
setSchema(Schema schema) |
protected void |
setType(String mediatype) |
String |
toString() |
void |
updateCitationProperty(String name,
List values) |
void |
updateCustomUrl(String urlid,
String label,
String url,
String prefixRequest) |
protected static final String OPENURL_VERSION
protected static final String OPENURL_CONTEXT_FORMAT
protected static final String OPENURL_JOURNAL_FORMAT
protected static final String OPENURL_BOOK_FORMAT
protected Map m_citationProperties
protected Map m_urls
protected String m_citationUrl
protected String m_fullTextUrl
protected String m_id
protected String m_imageUrl
protected int m_position
protected Schema m_schema
protected String m_searchSourceUrl
protected Integer m_serialNumber
protected boolean m_temporary
protected boolean m_isAdded
protected String m_preferredUrl
protected BasicCitation()
protected BasicCitation(org.osid.repository.Asset asset)
asset - public BasicCitation(BaseCitationService.BasicCitation other)
other - public BasicCitation(String mediatype)
mediatype - protected void matchSchema()
public String addCustomUrl(String label, String url)
addCustomUrl in interface Citationpublic String addCustomUrl(String label, String url, String prefixRequest)
addCustomUrl in interface Citationpublic void updateCustomUrl(String urlid, String label, String url, String prefixRequest)
updateCustomUrl in interface Citationpublic void addPropertyValue(String name, Object value)
addPropertyValue in interface Citationpublic void copy(Citation citation)
citation - public void exportRisField(String rislabel, String value, StringBuilder buffer, String prefix)
public void exportRisField(String rislabel, String value, StringBuilder buffer)
public void exportRisField(String rislabel, List propvalues, StringBuilder buffer, String prefix)
public void exportRisField(String rislabel, Object val, StringBuilder buffer, String prefix)
public void exportRisField(String rislabel, Object val, StringBuilder buffer)
public void exportRis(StringBuilder buffer) throws IOException
exportRis in interface CitationIOExceptionpublic Map getCitationProperties()
getCitationProperties in interface Citationpublic Object getCitationProperty(String name)
getCitationProperty in interface Citationpublic Object getCitationProperty(String name, boolean needSingleValue)
getCitationProperty in interface Citationpublic String getCreator()
getCreator in interface Citationpublic String getCustomUrl(String id) throws IdUnusedException
getCustomUrl in interface CitationIdUnusedExceptionCitation.getCustomUrl(java.lang.String)public String getUnprefixedCustomUrl(String id) throws IdUnusedException
getUnprefixedCustomUrl in interface CitationIdUnusedExceptionCitation.getUnprefixedCustomUrl(java.lang.String)public String getUrlPrefix()
getUrlPrefix in interface CitationCitation.getUnprefixedCustomUrl(java.lang.String)public boolean addPrefixToUrl(String id) throws IdUnusedException
addPrefixToUrl in interface CitationIdUnusedExceptionpublic List getCustomUrlIds()
getCustomUrlIds in interface Citationpublic String getCustomUrlLabel(String id) throws IdUnusedException
getCustomUrlLabel in interface CitationIdUnusedExceptionpublic String getDisplayName()
getDisplayName in interface Citationpublic String getPrimaryUrl()
getPrimaryUrl in interface Citationpublic String getFirstAuthor()
getFirstAuthor in interface Citationpublic String getOpenurl()
getOpenurl in interface Citationpublic String getOpenurlParameters()
getOpenurlParameters in interface Citationpublic int getPosition()
getPosition in interface Citationpublic String getAbstract()
public String getSubjectString()
public boolean hasCustomUrls()
hasCustomUrls in interface Citationpublic boolean hasPropertyValue(String fieldId)
hasPropertyValue in interface Citationpublic void importFromRis(InputStream ris) throws IOException
importFromRis in interface CitationIOExceptionpublic boolean importFromRisList(List risImportList)
importFromRisList in interface Citationpublic boolean isMultivalued(String fieldId)
isMultivalued in interface Citationprotected boolean isCurrentlyMultivalued(String fieldId)
fieldId - Field name.true if the field is multivalued.protected boolean isSchemaMultivalued(String fieldId)
fieldId - public boolean isTemporary()
protected boolean isSchemaLimited(String fieldId)
public List listCitationProperties()
listCitationProperties in interface Citationpublic void setCitationProperty(String name, Object value)
setCitationProperty in interface Citationpublic boolean hasCitationProperty(String fieldId)
hasCitationProperty in interface Citationprotected void setDefaults()
public void setDisplayName(String name)
setDisplayName in interface Citationpublic void setPosition(int position)
setPosition in interface Citationprotected void setType(String mediatype)
public void updateCitationProperty(String name, List values)
updateCitationProperty in interface Citationpublic String getPreferredUrlId()
getPreferredUrlId in interface Citationpublic boolean hasPreferredUrl()
hasPreferredUrl in interface Citationpublic void setPreferredUrl(String urlid)
setPreferredUrl in interface CitationCopyright © 2003–2016 The Sakai Foundation. All rights reserved.