|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.core.Constants
public class Constants
Class with constants and matching strings, for DSpace types. These numbers must never be changed!!
| Field Summary | |
|---|---|
static String[] |
actionText
lets you look up action names from the action IDs |
static int[] |
actionTypeRelevance
Array of relevances of actions to objects - used by the UI to only display actions that are relevant to an object type To see if an action is relevant to an object, just OR the relevance type above with the value in actionTypeRelevance[] (To see if READ is relevant to community, just test actionTypeRelevance[READ] | RCOMMUNITY, 0 = irrelevant |
static int |
ADD
Action of adding something to a container. |
static int |
BITSTREAM
Type of bitstream objects |
static int |
BUNDLE
Type of bundle objects |
static int |
COLLECTION
Type of collection objects |
static int |
COLLECTION_ADMIN
collection admin -- metadata, logo, item metadata, submitters, withdraw items, etc. |
static int |
COMMUNITY
Type of community objects |
static String |
CONTENT_BUNDLE_NAME
Name of bundle for user-visible "content" (same as default for now). |
static int |
DEFAULT_BITSTREAM_READ
Default Read policies for Bitstreams submitted to container |
static String |
DEFAULT_BUNDLE_NAME
Default bundle name for the "original" item content; "derived" content such as thumbnails goes in other bundles. |
static String |
DEFAULT_ENCODING
|
static int |
DEFAULT_ITEM_READ
Default Read policies for Items submitted to container |
static int |
DELETE
Action of deleting something. |
static int |
EPERSON
Type of individual eperson objects |
static int |
GROUP
Type of eperson groups |
static int |
ITEM
Type of item objects |
static String |
LICENSE_BITSTREAM_NAME
Magic name of item license, as bitstream in LICENSE_BUNDLE_NAME |
static String |
LICENSE_BUNDLE_NAME
Magic name of bundle containing item license |
static String |
METADATA_BUNDLE_NAME
Bundle name for structured metadata bitstreams. |
static int |
NEWS_SIDE
Position of front page news item -- sidebar |
static int |
NEWS_TOP
Position of front page news item -- top box |
static int |
RBITSTREAM
constants for the relevance array generating dynamicallis is simple: just 1 < < TYPE |
static int |
RBUNDLE
|
static int |
RCOLLECTION
|
static int |
RCOMMUNITY
|
static int |
READ
Action of reading, viewing or downloading something |
static int |
REMOVE
Action of removing something from a container. |
static int |
RITEM
|
static int |
SITE
DSpace site type |
static String[] |
typeText
lets you look up type names from the type IDs |
static int |
WORKFLOW_ABORT
Action of performing a workflow |
static int |
WORKFLOW_STEP_1
Action of performing workflow step 1 |
static int |
WORKFLOW_STEP_2
Action of performing workflow step 2 |
static int |
WORKFLOW_STEP_3
Action of performing workflow step 3 |
static int |
WRITE
Action of modifying something |
| Constructor Summary | |
|---|---|
Constants()
|
|
| Method Summary | |
|---|---|
static int |
getActionID(String action)
If you know the action string, look up the corresponding type ID constant. |
static int |
getTypeID(String type)
If you know the type string, look up the corresponding type ID constant. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BITSTREAM
public static final int BUNDLE
public static final int ITEM
public static final int COLLECTION
public static final int COMMUNITY
public static final int SITE
public static final int GROUP
public static final int EPERSON
public static final String[] typeText
public static final String LICENSE_BITSTREAM_NAME
public static final String LICENSE_BUNDLE_NAME
public static final String DEFAULT_BUNDLE_NAME
public static final String CONTENT_BUNDLE_NAME
public static final String METADATA_BUNDLE_NAME
public static final int READ
public static final int WRITE
public static final int DELETE
REMOVE,
Constant Field Valuespublic static final int ADD
ADD permission on the
collection.
public static final int REMOVE
DELETE,
Constant Field Valuespublic static final int WORKFLOW_STEP_1
public static final int WORKFLOW_STEP_2
public static final int WORKFLOW_STEP_3
public static final int WORKFLOW_ABORT
public static final int DEFAULT_BITSTREAM_READ
public static final int DEFAULT_ITEM_READ
public static final int COLLECTION_ADMIN
public static final int NEWS_TOP
public static final int NEWS_SIDE
public static final String[] actionText
public static final int RBITSTREAM
public static final int RBUNDLE
public static final int RITEM
public static final int RCOLLECTION
public static final int RCOMMUNITY
public static final int[] actionTypeRelevance
public static final String DEFAULT_ENCODING
| Constructor Detail |
|---|
public Constants()
| Method Detail |
|---|
public static int getTypeID(String type)
type - String with the name of the type (must be exact match)
-1 if the type
string is unknownpublic static int getActionID(String action)
action - String with the name of the action (must be exact match)
-1 if the action
string is unknown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||