Class PermlinkUtilities
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.PermlinkUtilities
-
public class PermlinkUtilities extends java.lang.Object
Utility class to be used both on client and server side for permlink management.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BROWSE_ACTION
static java.lang.String
CODE_PARAMETER_KEY
static java.lang.String
DOWNLOAD_ATTACHMENT_ACTION
static java.lang.String
ENTITY_KIND_PARAMETER_KEY
The HTTP URL parameter used to specify the entity kind.static java.lang.String
FILE_NAME_KEY
static java.lang.String
METAPROJECT
static java.lang.String
NAME_PARAMETER_KEY
static java.lang.String
PERM_ID_PARAMETER_KEY
The HTTP URL parameter used to specify the entity identifier.static java.lang.String
PERMLINK_ACTION
static java.lang.String
PROJECT
static java.lang.String
SPACE_PARAMETER_KEY
static java.lang.String
SUBTAB_PARAMETER_KEY
The optional HTTP URL parameter used to specify the subtab that should be opened.static java.lang.String
TYPE_PARAMETER_KEY
static java.lang.String
VERSION_KEY
-
Constructor Summary
Constructors Constructor Description PermlinkUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createAttachmentPermlinkURL(java.lang.String baseIndexURL, java.lang.String fileName, java.lang.Integer version, AttachmentHolderKind entityKind, java.lang.String permId)
static java.lang.String
createPermlinkURL(java.lang.String baseIndexURL, EntityKind entityKind, java.lang.String permId)
static java.lang.String
createProjectAttachmentPermlinkURL(java.lang.String baseIndexURL, java.lang.String fileName, java.lang.Integer version, java.lang.String projectCode, java.lang.String space)
static java.lang.String
createProjectPermlinkURL(java.lang.String baseIndexURL, java.lang.String projectCode, java.lang.String spaceCode)
-
-
-
Field Detail
-
PERM_ID_PARAMETER_KEY
public static final java.lang.String PERM_ID_PARAMETER_KEY
The HTTP URL parameter used to specify the entity identifier.- See Also:
- Constant Field Values
-
ENTITY_KIND_PARAMETER_KEY
public static final java.lang.String ENTITY_KIND_PARAMETER_KEY
The HTTP URL parameter used to specify the entity kind.- See Also:
- Constant Field Values
-
SUBTAB_PARAMETER_KEY
public static final java.lang.String SUBTAB_PARAMETER_KEY
The optional HTTP URL parameter used to specify the subtab that should be opened.- See Also:
- Constant Field Values
-
DOWNLOAD_ATTACHMENT_ACTION
public static final java.lang.String DOWNLOAD_ATTACHMENT_ACTION
- See Also:
- Constant Field Values
-
FILE_NAME_KEY
public static final java.lang.String FILE_NAME_KEY
- See Also:
- Constant Field Values
-
VERSION_KEY
public static final java.lang.String VERSION_KEY
- See Also:
- Constant Field Values
-
PROJECT
public static final java.lang.String PROJECT
- See Also:
- Constant Field Values
-
CODE_PARAMETER_KEY
public static final java.lang.String CODE_PARAMETER_KEY
- See Also:
- Constant Field Values
-
SPACE_PARAMETER_KEY
public static final java.lang.String SPACE_PARAMETER_KEY
- See Also:
- Constant Field Values
-
TYPE_PARAMETER_KEY
public static final java.lang.String TYPE_PARAMETER_KEY
- See Also:
- Constant Field Values
-
PERMLINK_ACTION
public static final java.lang.String PERMLINK_ACTION
- See Also:
- Constant Field Values
-
METAPROJECT
public static final java.lang.String METAPROJECT
- See Also:
- Constant Field Values
-
NAME_PARAMETER_KEY
public static final java.lang.String NAME_PARAMETER_KEY
- See Also:
- Constant Field Values
-
BROWSE_ACTION
public static final java.lang.String BROWSE_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
createPermlinkURL
public static final java.lang.String createPermlinkURL(java.lang.String baseIndexURL, EntityKind entityKind, java.lang.String permId)
-
createAttachmentPermlinkURL
public static final java.lang.String createAttachmentPermlinkURL(java.lang.String baseIndexURL, java.lang.String fileName, java.lang.Integer version, AttachmentHolderKind entityKind, java.lang.String permId)
-
createProjectAttachmentPermlinkURL
public static final java.lang.String createProjectAttachmentPermlinkURL(java.lang.String baseIndexURL, java.lang.String fileName, java.lang.Integer version, java.lang.String projectCode, java.lang.String space)
-
createProjectPermlinkURL
public static final java.lang.String createProjectPermlinkURL(java.lang.String baseIndexURL, java.lang.String projectCode, java.lang.String spaceCode)
-
-