public class ItemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMBARGOED_ACCESS |
static String |
METADATA_ONLY_ACCESS |
static String |
OPEN_ACCESS |
static String |
RESTRICTED_ACCESS |
| Constructor and Description |
|---|
ItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.lyncode.xoai.dataprovider.xml.xoai.Element |
create(String name) |
static com.lyncode.xoai.dataprovider.xml.xoai.Element.Field |
createValue(String name,
String value) |
static String |
getAccessRightsValue(Context context,
List<ResourcePolicy> rps)
Method to return a default value text to identify access rights:
'open access','embargoed access','restricted access','metadata only access'
NOTE: embargoed access contains also embargo end date in the form "embargoed access|||yyyy-MM-dd"
|
static com.lyncode.xoai.dataprovider.xml.xoai.Element |
getElement(List<com.lyncode.xoai.dataprovider.xml.xoai.Element> list,
String name) |
static com.lyncode.xoai.dataprovider.xml.xoai.Metadata |
retrieveMetadata(Context context,
Item item) |
public static final String RESTRICTED_ACCESS
public static final String EMBARGOED_ACCESS
public static final String OPEN_ACCESS
public static final String METADATA_ONLY_ACCESS
public static com.lyncode.xoai.dataprovider.xml.xoai.Element getElement(List<com.lyncode.xoai.dataprovider.xml.xoai.Element> list, String name)
public static com.lyncode.xoai.dataprovider.xml.xoai.Element create(String name)
public static com.lyncode.xoai.dataprovider.xml.xoai.Element.Field createValue(String name, String value)
public static com.lyncode.xoai.dataprovider.xml.xoai.Metadata retrieveMetadata(Context context, Item item)
public static String getAccessRightsValue(Context context, List<ResourcePolicy> rps) throws SQLException
rps - SQLExceptionCopyright © 2022 LYRASIS. All rights reserved.