protected static class BasicRightsService.BasicStorage extends Object implements BaseRightsService.Storage
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Copyright> |
m_copyrights |
protected Map<String,CreativeCommonsLicense> |
m_licenses |
protected Map<String,RightsAssignment> |
m_rightsAssignments |
| Constructor and Description |
|---|
BasicStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Copyright |
getCopyright(String copyrightId) |
CreativeCommonsLicense |
getLicense(String licenseId) |
RightsAssignment |
getRightsAssignment(String entityRef) |
RightsPolicy |
getRightsPolicy(String context,
String userId) |
Copyright |
newCopyright(String rightsId) |
CreativeCommonsLicense |
newLicense(String rightsId) |
RightsAssignment |
newRightsAssignment(String entityRef) |
RightsPolicy |
newRightsPolicy(String context,
String userId) |
void |
open() |
void |
remove(Copyright copyright) |
void |
remove(CreativeCommonsLicense license) |
void |
remove(RightsAssignment rights) |
void |
remove(RightsPolicy policy) |
String |
save(Copyright copyright) |
String |
save(CreativeCommonsLicense license) |
String |
save(RightsAssignment rights) |
String |
save(RightsPolicy policy) |
protected Map<String,CreativeCommonsLicense> m_licenses
protected Map<String,RightsAssignment> m_rightsAssignments
public void close()
close in interface BaseRightsService.Storagepublic Copyright getCopyright(String copyrightId) throws IdUnusedException
getCopyright in interface BaseRightsService.StorageIdUnusedExceptionpublic CreativeCommonsLicense getLicense(String licenseId) throws IdUnusedException
getLicense in interface BaseRightsService.StorageIdUnusedExceptionpublic RightsAssignment getRightsAssignment(String entityRef) throws IdUnusedException
getRightsAssignment in interface BaseRightsService.StorageIdUnusedExceptionpublic RightsPolicy getRightsPolicy(String context, String userId) throws IdUnusedException
getRightsPolicy in interface BaseRightsService.StorageIdUnusedExceptionpublic Copyright newCopyright(String rightsId)
newCopyright in interface BaseRightsService.Storagepublic CreativeCommonsLicense newLicense(String rightsId)
newLicense in interface BaseRightsService.Storagepublic RightsAssignment newRightsAssignment(String entityRef)
newRightsAssignment in interface BaseRightsService.Storagepublic RightsPolicy newRightsPolicy(String context, String userId)
newRightsPolicy in interface BaseRightsService.Storagepublic void open()
open in interface BaseRightsService.Storagepublic void remove(Copyright copyright)
remove in interface BaseRightsService.Storagepublic void remove(CreativeCommonsLicense license)
remove in interface BaseRightsService.Storagepublic void remove(RightsAssignment rights)
remove in interface BaseRightsService.Storagepublic void remove(RightsPolicy policy)
remove in interface BaseRightsService.Storagepublic String save(Copyright copyright)
save in interface BaseRightsService.Storagepublic String save(CreativeCommonsLicense license)
save in interface BaseRightsService.Storagepublic String save(RightsAssignment rights)
save in interface BaseRightsService.Storagepublic String save(RightsPolicy policy)
save in interface BaseRightsService.StorageCopyright © 2003–2016 The Sakai Foundation. All rights reserved.