public abstract class BaseCitationService extends Object implements 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 ConfigurationService |
m_configService
Dependency: CitationsConfigurationService.
|
protected ContentHostingService |
m_contentHostingService
Dependency: ContentHostingService.
|
protected String |
m_defaultSchema |
protected EntityManager |
m_entityManager
Dependency: EntityManager.
|
protected IdManager |
m_idManager
Depenedency: IdManager
|
protected static AtomicInteger |
m_nextSerialNumber |
protected OpenURLServiceImpl |
m_openURLService
Dependency: OpenURLServiceImpl
|
protected String |
m_relativeAccessPoint |
protected 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 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 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 |
APPLICATION_ID, CITATION_LIST_ID, DEFAULT_PAGE_SIZE, HELPER_ID, PROP_ALTERNATE_REFERENCE, PROP_INTRODUCTION, REF_TYPE_EXPORT_RIS_ALL, REF_TYPE_EXPORT_RIS_SEL, REF_TYPE_VIEW_LIST, REFERENCE_ROOT, RIS_FORMAT, SERVICE_NAME, UNKNOWN_TYPE| Constructor and Description |
|---|
BaseCitationService() |
protected boolean attemptToMatchSchema
public static 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 ConfigurationService m_configService
protected ServerConfigurationService m_serverConfigurationService
protected ContentHostingService m_contentHostingService
protected EntityManager m_entityManager
protected IdManager m_idManager
protected OpenURLServiceImpl m_openURLService
protected String m_defaultSchema
protected BaseCitationService.Storage m_storage
protected String m_relativeAccessPoint
protected ResourceTypeRegistry m_resourceTypeRegistry
public static final String PROP_TEMPORARY_CITATION_LIST
public void setResourceTypeRegistry(ResourceTypeRegistry registry)
registry - public void setOpenURLService(OpenURLServiceImpl openURLServiceImpl)
public ResourceTypeRegistry getResourceTypeRegistry()
public boolean allowAddCitationList(String contentCollectionId)
allowAddCitationList in interface CitationServicecontentCollectionId - public boolean allowReviseCitationList(String contentResourceId)
allowReviseCitationList in interface CitationServicecontentResourceId - public boolean allowRemoveCitationList(String contentResourceId)
allowRemoveCitationList in interface CitationServicepublic Citation addCitation(String mediatype)
addCitation in interface CitationServicepublic CitationCollection addCollection()
addCollection in interface CitationServicepublic String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
archive in interface EntityProducerpublic CitationCollection copyAll(String collectionId)
copyAll in interface CitationServicepublic void destroy()
protected String getAccessPoint(boolean relative)
relative - if true, form within the access path only (i.e. starting with
/content)public CitationCollection getCollection(String collectionId) throws IdUnusedException
getCollection in interface CitationServiceIdUnusedExceptionpublic Schema getDefaultSchema()
getDefaultSchema in interface CitationServicepublic Entity getEntity(Reference ref)
getEntity in interface EntityProducerpublic Collection getEntityAuthzGroups(Reference ref, String userId)
getEntityAuthzGroups in interface EntityProducerpublic String getEntityDescription(Reference ref)
getEntityDescription in interface EntityProducerpublic ResourceProperties getEntityResourceProperties(Reference ref)
getEntityResourceProperties in interface EntityProducerpublic String getEntityUrl(Reference ref)
getEntityUrl in interface EntityProducerpublic HttpAccess getHttpAccess()
getHttpAccess in interface EntityProducerpublic String getLabel()
getLabel in interface EntityProducerpublic Set getMultivalued()
public Schema getSchema(String name)
getSchema in interface CitationServicepublic List getSchemas()
getSchemas in interface CitationServicepublic Citation getTemporaryCitation()
getTemporaryCitation in interface CitationServicepublic Citation getTemporaryCitation(org.osid.repository.Asset asset)
getTemporaryCitation in interface CitationServicepublic CitationCollection getTemporaryCollection()
getTemporaryCollection in interface CitationServicepublic Set getValidPropertyNames()
getValidPropertyNames in interface CitationServicepublic void init()
protected void registerResourceType()
protected void initializeSchemas()
public boolean isMultivalued(String schemaId, String fieldId)
isMultivalued in interface CitationServiceschemaId - fieldId - public List listSchemas()
listSchemas in interface CitationServicepublic String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
merge in interface EntityProducerpublic abstract BaseCitationService.Storage newStorage()
protected Integer nextSerialNumber()
public boolean parseEntityReference(String reference, Reference ref)
parseEntityReference in interface EntityProducerpublic void removeCollection(CitationCollection edit)
removeCollection in interface CitationServicepublic void save(Citation citation)
save in interface CitationServicepublic void save(CitationCollectionOrder citationCollectionOrder)
public void setIdManager(IdManager idManager)
public void save(CitationCollection collection)
save in interface CitationServicepublic void saveSection(CitationCollectionOrder citationCollectionOrder)
saveSection in interface CitationServicepublic void saveSubsection(CitationCollectionOrder citationCollectionOrder)
saveSubsection in interface CitationServicepublic void save(List<CitationCollectionOrder> citationCollectionOrders, String citationCollectionId)
save in interface CitationServicepublic void updateSection(CitationCollectionOrder citationCollectionOrder)
updateSection in interface CitationServicepublic CitationCollectionOrder getNestedCollection(String citationCollectionId)
getNestedCollection in interface CitationServicepublic CitationCollection getUnnestedCitationCollection(String citationCollectionId)
getUnnestedCitationCollection in interface CitationServicepublic void removeLocation(String collectionId, int locationId)
removeLocation in interface CitationServicepublic void setConfigurationService(ConfigurationService service)
service - The ConfigurationService.public void setContentHostingService(ContentHostingService service)
service - The ContentHostingService.public void setEntityManager(EntityManager service)
service - The EntityManager.public void setServerConfigurationService(ServerConfigurationService service)
service - The ServerConfigurationService.public boolean willArchiveMerge()
willArchiveMerge in interface EntityProducerpublic boolean isAttemptToMatchSchema()
public void setAttemptToMatchSchema(boolean attemptToMatchSchema)
attemptToMatchSchema - the attemptToMatchSchema to setpublic Citation addCitation(HttpServletRequest request)
addCitation in interface CitationServiceCopyright © 2003–2016 The Sakai Foundation. All rights reserved.