|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.packager.RoleDisseminator
public class RoleDisseminator
Plugin to export all Group and EPerson objects in XML, perhaps for reloading.
| Field Summary | |
|---|---|
static String |
CAN_LOGIN
|
static String |
DSPACE_ROLES
|
static org.jdom.Namespace |
DSROLES_NS
DSpace Roles XML Namespace in JDOM form. |
static String |
EMAIL
|
static String |
EPERSON
|
static String |
EPERSONS
|
static String |
FIRST_NAME
|
static String |
GROUP
|
static String |
GROUP_TYPE_ADMIN
|
static String |
GROUP_TYPE_SUBMIT
|
static String |
GROUP_TYPE_WORKFLOW_STEP_1
|
static String |
GROUP_TYPE_WORKFLOW_STEP_2
|
static String |
GROUP_TYPE_WORKFLOW_STEP_3
|
static String |
GROUPS
|
static String |
ID
|
static String |
LANGUAGE
|
static String |
LAST_NAME
|
static String |
MEMBER
|
static String |
MEMBER_GROUP
|
static String |
MEMBER_GROUPS
|
static String |
MEMBERS
|
static String |
NAME
|
static String |
NETID
|
static String |
PASSWORD_DIGEST
|
static String |
PASSWORD_HASH
|
static String |
PASSWORD_SALT
|
static String |
REQUIRE_CERTIFICATE
|
static String |
SELF_REGISTERED
|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
RoleDisseminator()
|
|
| Method Summary | |
|---|---|
void |
disseminate(Context context,
DSpaceObject object,
PackageParameters params,
File pkgFile)
Export the object (Item, Collection, or Community) as a "package" on the indicated OutputStream. |
List<File> |
disseminateAll(Context context,
DSpaceObject dso,
PackageParameters params,
File pkgFile)
Recursively export one or more DSpace Objects as a series of packages. |
String |
getMIMEType(PackageParameters params)
Identifies the MIME-type of this package, e.g. |
String |
getParameterHelp()
Returns a user help string which should describe the additional valid command-line options that this packager implementation will accept when using the -o or
--option flags with the Packager script. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.jdom.Namespace DSROLES_NS
public static final String DSPACE_ROLES
public static final String ID
public static final String GROUPS
public static final String GROUP
public static final String NAME
public static final String TYPE
public static final String MEMBERS
public static final String MEMBER
public static final String MEMBER_GROUPS
public static final String MEMBER_GROUP
public static final String EPERSONS
public static final String EPERSON
public static final String EMAIL
public static final String NETID
public static final String FIRST_NAME
public static final String LAST_NAME
public static final String LANGUAGE
public static final String PASSWORD_HASH
public static final String PASSWORD_DIGEST
public static final String PASSWORD_SALT
public static final String CAN_LOGIN
public static final String REQUIRE_CERTIFICATE
public static final String SELF_REGISTERED
public static final String GROUP_TYPE_ADMIN
public static final String GROUP_TYPE_SUBMIT
public static final String GROUP_TYPE_WORKFLOW_STEP_1
public static final String GROUP_TYPE_WORKFLOW_STEP_2
public static final String GROUP_TYPE_WORKFLOW_STEP_3
| Constructor Detail |
|---|
public RoleDisseminator()
| Method Detail |
|---|
public void disseminate(Context context,
DSpaceObject object,
PackageParameters params,
File pkgFile)
throws PackageException,
CrosswalkException,
AuthorizeException,
SQLException,
IOException
PackageDisseminator
Use the params parameter list to adjust the way the
package is made, e.g. including a "metadataOnly"
parameter might make the package a bare manifest in XML
instead of a Zip file including manifest and contents.
Throws an exception of the chosen object is not acceptable or there is a failure creating the package.
disseminate in interface PackageDisseminatorcontext - DSpace context.object - DSpace object (item, collection, etc)params - Properties-style list of options specific to this packagerpkgFile - File where export package should be written
PackageValidationException - if package cannot be created or there is
a fatal error in creating it.
PackageException
CrosswalkException
AuthorizeException
SQLException
IOException
public List<File> disseminateAll(Context context,
DSpaceObject dso,
PackageParameters params,
File pkgFile)
throws PackageException,
CrosswalkException,
AuthorizeException,
SQLException,
IOException
PackageDisseminatorPackage is any serialized representation of the item, at the discretion of the implementing class. It does not have to include content bitstreams.
Use the params parameter list to adjust the way the
package is made, e.g. including a "metadataOnly"
parameter might make the package a bare manifest in XML
instead of a Zip file including manifest and contents.
Throws an exception of the initial object is not acceptable or there is a failure creating the packages.
A packager may choose not to implement disseminateAll,
or simply forward the call to disseminate if it is unable to
support recursive dissemination.
disseminateAll in interface PackageDisseminatorcontext - DSpace context.dso - initial DSpace objectparams - Properties-style list of options specific to this packagerpkgFile - File where initial package should be written. All other
packages will be written to the same directory as this File.
PackageValidationException - if package cannot be created or there is
a fatal error in creating it.
PackageException
CrosswalkException
AuthorizeException
SQLException
IOExceptionpublic String getMIMEType(PackageParameters params)
PackageDisseminator"application/zip".
Required when sending the package via HTTP, to
provide the Content-Type header.
getMIMEType in interface PackageDisseminatorpublic String getParameterHelp()
-o or
--option flags with the Packager script.
getParameterHelp in interface PackageDisseminator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||