public static class BaseRightsService.BasicRightsAssignment extends Object implements RightsAssignment
| Modifier and Type | Field and Description |
|---|---|
protected Copyright |
m_copyright |
protected boolean |
m_copyrightAlert |
protected String |
m_entityRef |
protected String |
m_id |
protected Map<String,CreativeCommonsLicense> |
m_licenses |
| Constructor and Description |
|---|
BasicRightsAssignment(String entityRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLicense(CreativeCommonsLicense license) |
int |
countLicenses() |
Copyright |
getCopyright() |
String |
getEntityRef() |
Collection<CreativeCommonsLicense> |
getLicenses() |
String |
getRightsId() |
boolean |
hasCopyright() |
boolean |
hasCopyrightAlert() |
boolean |
hasLicense() |
void |
setCopyright(Copyright copyright) |
void |
setLicenses(Collection<CreativeCommonsLicense> licenses) |
Element |
toXml(Document doc,
Stack<Object> stack) |
protected Map<String,CreativeCommonsLicense> m_licenses
protected Copyright m_copyright
protected String m_entityRef
protected String m_id
protected boolean m_copyrightAlert
public BasicRightsAssignment(String entityRef)
public void addLicense(CreativeCommonsLicense license)
addLicense in interface RightsAssignmentpublic int countLicenses()
countLicenses in interface RightsAssignmentpublic Copyright getCopyright()
getCopyright in interface RightsAssignmentpublic String getEntityRef()
getEntityRef in interface RightsAssignmentpublic Collection<CreativeCommonsLicense> getLicenses()
getLicenses in interface RightsAssignmentpublic String getRightsId()
getRightsId in interface RightsAssignmentpublic boolean hasCopyright()
hasCopyright in interface RightsAssignmentpublic boolean hasCopyrightAlert()
hasCopyrightAlert in interface RightsAssignmentpublic boolean hasLicense()
hasLicense in interface RightsAssignmentpublic void setCopyright(Copyright copyright)
setCopyright in interface RightsAssignmentpublic void setLicenses(Collection<CreativeCommonsLicense> licenses)
setLicenses in interface RightsAssignmentCopyright © 2003–2016 The Sakai Foundation. All rights reserved.