public class BaseEntityProducer extends Object implements org.sakaiproject.entity.api.EntityProducer
| Modifier and Type | Field and Description |
|---|---|
protected org.sakaiproject.entity.api.EntityManager |
entityManager |
protected String |
label |
protected String |
referenceRoot |
protected String |
serviceName |
| Constructor and Description |
|---|
BaseEntityProducer() |
| Modifier and Type | Method and Description |
|---|---|
String |
archive(String siteId,
Document doc,
Stack stack,
String archivePath,
List attachments) |
org.sakaiproject.entity.api.Entity |
getEntity(org.sakaiproject.entity.api.Reference ref) |
Collection |
getEntityAuthzGroups(org.sakaiproject.entity.api.Reference ref,
String userId) |
String |
getEntityDescription(org.sakaiproject.entity.api.Reference ref) |
org.sakaiproject.entity.api.ResourceProperties |
getEntityResourceProperties(org.sakaiproject.entity.api.Reference ref) |
String |
getEntityUrl(org.sakaiproject.entity.api.Reference ref) |
org.sakaiproject.entity.api.HttpAccess |
getHttpAccess() |
String |
getLabel() |
String |
getReferenceRoot() |
String |
getServiceName()
Although not required, the service name is frequently used.
|
void |
init()
Register this class as an EntityProducer.
|
String |
merge(String siteId,
Element root,
String archivePath,
String fromSiteId,
Map attachmentNames,
Map userIdTrans,
Set userListAllowImport) |
boolean |
parseEntityReference(String reference,
org.sakaiproject.entity.api.Reference ref) |
void |
setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager) |
void |
setLabel(String label) |
void |
setReferenceRoot(String referenceRoot) |
void |
setServiceName(String serviceName) |
boolean |
willArchiveMerge() |
protected String label
protected String referenceRoot
protected String serviceName
protected org.sakaiproject.entity.api.EntityManager entityManager
public void setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager)
public void init()
public void setLabel(String label)
public String getReferenceRoot()
public void setReferenceRoot(String referenceRoot)
public String getServiceName()
public void setServiceName(String serviceName)
public String getLabel()
getLabel in interface org.sakaiproject.entity.api.EntityProducerpublic boolean willArchiveMerge()
willArchiveMerge in interface org.sakaiproject.entity.api.EntityProducerpublic String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
archive in interface org.sakaiproject.entity.api.EntityProducerpublic String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
merge in interface org.sakaiproject.entity.api.EntityProducerpublic boolean parseEntityReference(String reference, org.sakaiproject.entity.api.Reference ref)
parseEntityReference in interface org.sakaiproject.entity.api.EntityProducerpublic String getEntityDescription(org.sakaiproject.entity.api.Reference ref)
getEntityDescription in interface org.sakaiproject.entity.api.EntityProducerpublic org.sakaiproject.entity.api.ResourceProperties getEntityResourceProperties(org.sakaiproject.entity.api.Reference ref)
getEntityResourceProperties in interface org.sakaiproject.entity.api.EntityProducerpublic org.sakaiproject.entity.api.Entity getEntity(org.sakaiproject.entity.api.Reference ref)
getEntity in interface org.sakaiproject.entity.api.EntityProducerpublic String getEntityUrl(org.sakaiproject.entity.api.Reference ref)
getEntityUrl in interface org.sakaiproject.entity.api.EntityProducerpublic Collection getEntityAuthzGroups(org.sakaiproject.entity.api.Reference ref, String userId)
getEntityAuthzGroups in interface org.sakaiproject.entity.api.EntityProducerpublic org.sakaiproject.entity.api.HttpAccess getHttpAccess()
getHttpAccess in interface org.sakaiproject.entity.api.EntityProducerCopyright © 2003-2014 Sakai Project. All Rights Reserved.