|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dspace.content.packager.IMSCPManifest
org.dspace.content.packager.OCWIMSCPManifest
public class OCWIMSCPManifest
Models the MIT Open CourseWare (OCW) profile of IMSCP developed for CWSpace. Includes constants for all the relevant namespaces, as well as code to locate the "home page" to use as the primary content bitstream.
IMSCPManifest| Field Summary | |
|---|---|
static org.jdom.Namespace |
ADLCP_NS
|
static String |
ADLCP_NS_URI
ADLCP namespace. |
static org.jdom.Namespace |
CWSP_NS
|
static String |
CWSP_NS_URI
CWSpace namespace. |
static org.jdom.Namespace |
LOM_NS
|
static String |
LOM_NS_URI
Learning Object Metadata (LOM) namespace. |
static org.jdom.Namespace |
OCW_NS
|
static String |
OCW_NS_URI
Open CourseWare (OCW) namespace. |
| Fields inherited from class org.dspace.content.packager.IMSCPManifest |
|---|
imscp_ns, manifest, MANIFEST_FILE |
| Constructor Summary | |
|---|---|
OCWIMSCPManifest()
|
|
| Method Summary | |
|---|---|
void |
checkManifest()
Sanity-check the manifest. |
BitstreamFormat |
getManifestBitstreamFormat(Context context)
Return the special bitstream format used to identify this (sub)class of IMSCP manifest. |
Set |
getMetadataFiles()
Returns all of the local files of metadata called for in manifest. |
String |
getPrimaryBitstreamPath()
Return the local path of the top-level "resource" in the default IMS CP organization, which becomes the primary bitstream in the ingested Item. |
| Methods inherited from class org.dspace.content.packager.IMSCPManifest |
|---|
getBase, getContentFiles, getMetadata, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CWSP_NS_URI
public static final org.jdom.Namespace CWSP_NS
public static final String OCW_NS_URI
public static final org.jdom.Namespace OCW_NS
public static final String ADLCP_NS_URI
public static final org.jdom.Namespace ADLCP_NS
public static final String LOM_NS_URI
public static final org.jdom.Namespace LOM_NS
| Constructor Detail |
|---|
public OCWIMSCPManifest()
| Method Detail |
|---|
public void checkManifest()
throws MetadataValidationException
checkManifest in class IMSCPManifestMetadataValidationException
public Set getMetadataFiles()
throws MetadataValidationException
getMetadataFiles in class IMSCPManifestMetadataValidationException
public String getPrimaryBitstreamPath()
throws MetadataValidationException
NOTE: It is a fatal error for OCW IMSCP if no PBS is found.
First find the desired organization element, which is at xpath
/manifest/organizations/organization@identifier
matching /manifest/organizations@default. Its top
level item has a item@identifierref that matches the resource with attribute:
/resources/resource/@identifier
MetadataValidationException
public BitstreamFormat getManifestBitstreamFormat(Context context)
throws SQLException,
AuthorizeException,
IOException
getManifestBitstreamFormat in class IMSCPManifestSQLException
AuthorizeException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||