public abstract class BaseCitationService extends Object implements org.sakaiproject.citation.api.CitationService
| Modifier and Type | Class and Description |
|---|---|
class |
BaseCitationService.BasicCitation |
class |
BaseCitationService.BasicCitationCollection |
class |
BaseCitationService.BasicField |
protected class |
BaseCitationService.BasicSchema |
class |
BaseCitationService.CitationListCopyAction |
class |
BaseCitationService.CitationListCreateAction |
class |
BaseCitationService.CitationListDeleteAction |
class |
BaseCitationService.CitationListDuplicateAction |
class |
BaseCitationService.CitationLocalizer |
class |
BaseCitationService.CitationSizeLabeler |
class |
BaseCitationService.Counter |
protected static interface |
BaseCitationService.Storage |
class |
BaseCitationService.UrlWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attemptToMatchSchema |
protected static List<String> |
AUTHOR_AS_KEY |
static Map<String,String> |
GS_TAGS |
protected org.sakaiproject.citation.api.ConfigurationService |
m_configService
Dependency: CitationsConfigurationService.
|
protected org.sakaiproject.content.api.ContentHostingService |
m_contentHostingService
Dependency: ContentHostingService.
|
protected String |
m_defaultSchema |
protected org.sakaiproject.entity.api.EntityManager |
m_entityManager
Dependency: EntityManager.
|
protected org.sakaiproject.id.api.IdManager |
m_idManager
Depenedency: IdManager
|
protected static AtomicInteger |
m_nextSerialNumber |
protected OpenURLServiceImpl |
m_openURLService
Dependency: OpenURLServiceImpl
|
protected String |
m_relativeAccessPoint |
protected org.sakaiproject.content.api.ResourceTypeRegistry |
m_resourceTypeRegistry
Dependency: the ResourceTypeRegistry
|
protected static Map |
m_RISNoteFields
Which fields map onto the RIS Notes field?
|
protected static Set |
m_RISSpecialFields
Which fields need special processing for RIS export?
|
protected static Map |
m_RISType
Set up a mapping of our type to RIS 'TY - ' values
|
protected static Map |
m_RISTypeInverse |
protected org.sakaiproject.component.api.ServerConfigurationService |
m_serverConfigurationService
Dependency: ServerConfigurationService.
|
protected BaseCitationService.Storage |
m_storage
A Storage object for persistent storage.
|
static String |
PROP_TEMPORARY_CITATION_LIST |
protected static String |
PROPERTY_DEFAULTVALUE |
protected static String |
PROPERTY_DESCRIPTION |
protected static String |
PROPERTY_HAS_ABBREVIATION |
protected static String |
PROPERTY_HAS_CITATION |
protected static String |
PROPERTY_HAS_FIELD |
protected static String |
PROPERTY_HAS_NAMESPACE |
protected static String |
PROPERTY_HAS_ORDER |
protected static String |
PROPERTY_HAS_SCHEMA |
protected static String |
PROPERTY_LABEL |
protected static String |
PROPERTY_MAXCARDINALITY |
protected static String |
PROPERTY_MINCARDINALITY |
protected static String |
PROPERTY_NAMESPACE |
protected static String |
PROPERTY_REQUIRED |
protected static String |
PROPERTY_VALUETYPE |
static org.sakaiproject.util.ResourceLoader |
rb |
protected static String |
RIS_DELIM |
static String |
SCHEMA_PREFIX |
protected static List<String> |
TITLE_AS_KEY |
protected static List<String> |
YEAR_AS_KEY |
| Constructor and Description |
|---|
BaseCitationService() |
| Modifier and Type | Method and Description |
|---|---|
org.sakaiproject.citation.api.Citation |
addCitation(HttpServletRequest request) |
org.sakaiproject.citation.api.Citation |
addCitation(String mediatype) |
org.sakaiproject.citation.api.CitationCollection |
addCollection() |
boolean |
allowAddCitationList(String contentCollectionId)
Checks permissions to add a CitationList.
|
boolean |
allowRemoveCitationList(String contentResourceId) |
boolean |
allowReviseCitationList(String contentResourceId)
Checks permission to revise a CitationList, including permissions
to add, remove or revise citations within the CitationList.
|
String |
archive(String siteId,
Document doc,
Stack stack,
String archivePath,
List attachments) |
org.sakaiproject.citation.api.CitationCollection |
copyAll(String collectionId) |
void |
destroy()
Returns to uninitialized state.
|
static String |
escapeFieldName(String original) |
protected String |
getAccessPoint(boolean relative)
Access the partial URL that forms the root of calendar URLs.
|
org.sakaiproject.citation.api.CitationCollection |
getCollection(String collectionId) |
org.sakaiproject.citation.api.Schema |
getDefaultSchema() |
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() |
Set |
getMultivalued() |
Set |
getMultivalued(String type) |
org.sakaiproject.content.api.ResourceTypeRegistry |
getResourceTypeRegistry() |
org.sakaiproject.citation.api.Schema |
getSchema(String name) |
List |
getSchemas() |
protected Set |
getSynonyms(String mediatype) |
org.sakaiproject.citation.api.Citation |
getTemporaryCitation() |
org.sakaiproject.citation.api.Citation |
getTemporaryCitation(org.osid.repository.Asset asset) |
org.sakaiproject.citation.api.CitationCollection |
getTemporaryCollection() |
Set |
getValidPropertyNames() |
void |
init() |
protected void |
initializeSchemas() |
boolean |
isAttemptToMatchSchema() |
boolean |
isMultivalued(String schemaId,
String fieldId) |
List |
listSchemas()
Access a list of all schemas that have been defined (other than the
"unknown" type).
|
String |
merge(String siteId,
Element root,
String archivePath,
String fromSiteId,
Map attachmentNames,
Map userIdTrans,
Set userListAllowImport) |
abstract BaseCitationService.Storage |
newStorage()
Construct a Storage object.
|
protected Integer |
nextSerialNumber() |
boolean |
parseEntityReference(String reference,
org.sakaiproject.entity.api.Reference ref) |
protected void |
registerResourceType() |
void |
removeCollection(org.sakaiproject.citation.api.CitationCollection edit) |
void |
save(org.sakaiproject.citation.api.Citation citation) |
void |
save(org.sakaiproject.citation.api.CitationCollection collection) |
void |
setAttemptToMatchSchema(boolean attemptToMatchSchema) |
void |
setConfigurationService(org.sakaiproject.citation.api.ConfigurationService service)
Dependency: ConfigurationService.
|
void |
setContentHostingService(org.sakaiproject.content.api.ContentHostingService service)
Dependency: ContentHostingService.
|
void |
setEntityManager(org.sakaiproject.entity.api.EntityManager service)
Dependency: EntityManager.
|
void |
setIdManager(org.sakaiproject.id.api.IdManager idManager) |
void |
setOpenURLService(OpenURLServiceImpl openURLServiceImpl) |
void |
setResourceTypeRegistry(org.sakaiproject.content.api.ResourceTypeRegistry registry)
Dependency: inject the ResourceTypeRegistry
|
void |
setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService service)
Dependency: ServerConfigurationService.
|
boolean |
willArchiveMerge() |
protected boolean attemptToMatchSchema
public static org.sakaiproject.util.ResourceLoader rb
protected static final String PROPERTY_DEFAULTVALUE
protected static final String PROPERTY_DESCRIPTION
protected static final String PROPERTY_HAS_ABBREVIATION
protected static final String PROPERTY_HAS_CITATION
protected static final String PROPERTY_HAS_FIELD
protected static final String PROPERTY_HAS_NAMESPACE
protected static final String PROPERTY_HAS_ORDER
protected static final String PROPERTY_HAS_SCHEMA
protected static final String PROPERTY_LABEL
protected static final String PROPERTY_MAXCARDINALITY
protected static final String PROPERTY_MINCARDINALITY
protected static final String PROPERTY_NAMESPACE
protected static final String PROPERTY_REQUIRED
protected static final String PROPERTY_VALUETYPE
public static final String SCHEMA_PREFIX
protected static AtomicInteger m_nextSerialNumber
protected static final String RIS_DELIM
protected static final Map m_RISType
protected static final Map m_RISTypeInverse
protected static final Map m_RISNoteFields
protected static final Set m_RISSpecialFields
protected org.sakaiproject.citation.api.ConfigurationService m_configService
protected org.sakaiproject.component.api.ServerConfigurationService m_serverConfigurationService
protected org.sakaiproject.content.api.ContentHostingService m_contentHostingService
protected org.sakaiproject.entity.api.EntityManager m_entityManager
protected org.sakaiproject.id.api.IdManager m_idManager
protected OpenURLServiceImpl m_openURLService
protected String m_defaultSchema
protected BaseCitationService.Storage m_storage
protected String m_relativeAccessPoint
protected org.sakaiproject.content.api.ResourceTypeRegistry m_resourceTypeRegistry
public static final String PROP_TEMPORARY_CITATION_LIST
public void setResourceTypeRegistry(org.sakaiproject.content.api.ResourceTypeRegistry registry)
registry - public void setOpenURLService(OpenURLServiceImpl openURLServiceImpl)
public org.sakaiproject.content.api.ResourceTypeRegistry getResourceTypeRegistry()
public boolean allowAddCitationList(String contentCollectionId)
allowAddCitationList in interface org.sakaiproject.citation.api.CitationServicecontentCollectionId - public boolean allowReviseCitationList(String contentResourceId)
allowReviseCitationList in interface org.sakaiproject.citation.api.CitationServicecontentResourceId - public boolean allowRemoveCitationList(String contentResourceId)
allowRemoveCitationList in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.citation.api.Citation addCitation(String mediatype)
addCitation in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.citation.api.CitationCollection addCollection()
addCollection in interface org.sakaiproject.citation.api.CitationServicepublic String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
archive in interface org.sakaiproject.entity.api.EntityProducerpublic org.sakaiproject.citation.api.CitationCollection copyAll(String collectionId)
copyAll in interface org.sakaiproject.citation.api.CitationServicepublic void destroy()
protected String getAccessPoint(boolean relative)
relative - if true, form within the access path only (i.e. starting with
/content)public org.sakaiproject.citation.api.CitationCollection getCollection(String collectionId) throws org.sakaiproject.exception.IdUnusedException
getCollection in interface org.sakaiproject.citation.api.CitationServiceorg.sakaiproject.exception.IdUnusedExceptionpublic org.sakaiproject.citation.api.Schema getDefaultSchema()
getDefaultSchema in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.entity.api.Entity getEntity(org.sakaiproject.entity.api.Reference ref)
getEntity 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 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 String getEntityUrl(org.sakaiproject.entity.api.Reference ref)
getEntityUrl in interface org.sakaiproject.entity.api.EntityProducerpublic org.sakaiproject.entity.api.HttpAccess getHttpAccess()
getHttpAccess in interface org.sakaiproject.entity.api.EntityProducerpublic String getLabel()
getLabel in interface org.sakaiproject.entity.api.EntityProducerpublic Set getMultivalued()
public org.sakaiproject.citation.api.Schema getSchema(String name)
getSchema in interface org.sakaiproject.citation.api.CitationServicepublic List getSchemas()
getSchemas in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.citation.api.Citation getTemporaryCitation()
getTemporaryCitation in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.citation.api.Citation getTemporaryCitation(org.osid.repository.Asset asset)
getTemporaryCitation in interface org.sakaiproject.citation.api.CitationServicepublic org.sakaiproject.citation.api.CitationCollection getTemporaryCollection()
getTemporaryCollection in interface org.sakaiproject.citation.api.CitationServicepublic Set getValidPropertyNames()
getValidPropertyNames in interface org.sakaiproject.citation.api.CitationServicepublic void init()
protected void registerResourceType()
protected void initializeSchemas()
public boolean isMultivalued(String schemaId, String fieldId)
isMultivalued in interface org.sakaiproject.citation.api.CitationServiceschemaId - fieldId - public List listSchemas()
listSchemas in interface org.sakaiproject.citation.api.CitationServicepublic String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
merge in interface org.sakaiproject.entity.api.EntityProducerpublic abstract BaseCitationService.Storage newStorage()
protected Integer nextSerialNumber()
public boolean parseEntityReference(String reference, org.sakaiproject.entity.api.Reference ref)
parseEntityReference in interface org.sakaiproject.entity.api.EntityProducerpublic void removeCollection(org.sakaiproject.citation.api.CitationCollection edit)
removeCollection in interface org.sakaiproject.citation.api.CitationServicepublic void save(org.sakaiproject.citation.api.Citation citation)
save in interface org.sakaiproject.citation.api.CitationServicepublic void setIdManager(org.sakaiproject.id.api.IdManager idManager)
public void save(org.sakaiproject.citation.api.CitationCollection collection)
save in interface org.sakaiproject.citation.api.CitationServicepublic void setConfigurationService(org.sakaiproject.citation.api.ConfigurationService service)
service - The ConfigurationService.public void setContentHostingService(org.sakaiproject.content.api.ContentHostingService service)
service - The ContentHostingService.public void setEntityManager(org.sakaiproject.entity.api.EntityManager service)
service - The EntityManager.public void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService service)
service - The ServerConfigurationService.public boolean willArchiveMerge()
willArchiveMerge in interface org.sakaiproject.entity.api.EntityProducerpublic boolean isAttemptToMatchSchema()
public void setAttemptToMatchSchema(boolean attemptToMatchSchema)
attemptToMatchSchema - the attemptToMatchSchema to setpublic org.sakaiproject.citation.api.Citation addCitation(HttpServletRequest request)
addCitation in interface org.sakaiproject.citation.api.CitationServiceCopyright © 2003-2015 The Sakai Foundation. All Rights Reserved.