public class LicenseMetadataValue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ccShib |
protected ItemService |
itemService |
| Constructor and Description |
|---|
LicenseMetadataValue(String fieldName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemValue(Context context,
Item item,
String value)
Adds passed value to the set of values for the field in passed item.
|
String |
ccItemValue(Item item)
Returns first value that matches Creative Commons 'shibboleth',
or null if no matching values.
|
String |
keyedItemValue(Item item,
String key)
Returns the value that matches the value mapped to the passed key if any.
|
void |
removeItemValue(Context context,
Item item,
String value)
Removes the passed value from the set of values for the field in passed item.
|
protected final ItemService itemService
protected static final String ccShib
public LicenseMetadataValue(String fieldName)
public String ccItemValue(Item item)
item - - the item to readpublic String keyedItemValue(Item item, String key) throws AuthorizeException, IOException, SQLException
item - - the item to readkey - - the key for desired valueAuthorizeExceptionIOExceptionSQLExceptionpublic void removeItemValue(Context context, Item item, String value) throws AuthorizeException, IOException, SQLException
item - - the item to updatevalue - - the value to removeAuthorizeExceptionIOExceptionSQLExceptionpublic void addItemValue(Context context, Item item, String value) throws SQLException
item - - the item to updatevalue - - the value to add in this fieldSQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.