public class WeblinkUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_ELEMENT |
static String |
REQ_PARAM_ARCHIVE
The Constant REQ_PARAM_ARCHIVE.
|
static String |
REQ_PARAM_CURRENTREVISION
The Constant REQ_PARAM_CURRENTREVISION.
|
static String |
REQ_PARAM_ELEMENT
The Constant REQ_PARAM_ELEMENT.
|
static String |
REQ_PARAM_EXTERN
The Constant REQ_PARAM_EXTERN.
|
static String |
REQ_PARAM_FIELD
The Constant REQ_PARAM_FIELD.
|
static String |
REQ_PARAM_FILENAME
The Constant REQ_PARAM_FILENAME.
|
static String |
REQ_PARAM_ID
The Constant REQ_PARAM_ID.
|
static String |
REQ_PARAM_LINK |
static String |
REQ_PARAM_MANDANT
The Constant REQ_PARAM_MANDANT.
|
static String |
REQ_PARAM_RELEASED
The Constant REQ_PARAM_RELEASED.
|
static String |
REQ_PARAM_SECURE
The Constant REQ_PARAM_SECURE.
|
static String |
REQ_PARAM_TIMEOUT
The Constant REQ_PARAM_TIMEOUT.
|
static String |
REQ_PARAM_ZIP_LINK |
Constructor and Description |
---|
WeblinkUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
bookmark(List<String> pathSegments,
Map<String,String> queryParameter)
Creates the Bookmark for the given pathSegments and queryParameters.
|
static String |
hash(String url)
Generates Hash.
|
static String |
secureBookmark(List<String> pathSegments,
Map<String,String> queryParameter)
Generates a secure Bookmark.
|
static String |
secureURL(List<String> pathSegments,
Map<String,String> queryParameter)
Generates a secure URL.
|
static String |
secureWeblink(String archive,
String field,
String id,
int element,
String filename,
boolean published)
Generates Secure weblink.
|
static String |
secureWeblink(String archive,
String field,
String id,
int element,
String filename,
boolean published,
boolean currentRevision,
String mandant,
boolean extern,
Long timeout)
Generates Secure weblink.
|
static String |
url(List<String> pathSegments,
Map<String,String> queryParameter)
Creates the URL for the given pathSegments and queryParameters.
|
static boolean |
validate(String url,
String hash,
long timestamp)
Validates the given URL.
|
static String |
weblink(String archive,
String field,
String id,
int element,
String filename,
boolean published)
generates a Weblink with the given paramters.
|
public static final String REQ_PARAM_LINK
public static final String REQ_PARAM_ZIP_LINK
public static final String REQ_PARAM_ARCHIVE
public static final String REQ_PARAM_FIELD
public static final String REQ_PARAM_ID
public static final String REQ_PARAM_ELEMENT
public static final String REQ_PARAM_FILENAME
public static final String REQ_PARAM_RELEASED
public static final String REQ_PARAM_SECURE
public static final String REQ_PARAM_MANDANT
public static final String REQ_PARAM_CURRENTREVISION
public static final String REQ_PARAM_TIMEOUT
public static final String REQ_PARAM_EXTERN
public static final int ALL_ELEMENT
public static boolean validate(String url, String hash, long timestamp)
url
- the url for validationhash
- the hash for validationtimestamp
- the timestamp for validationpublic static String weblink(String archive, String field, String id, int element, String filename, boolean published)
archive
- the archivefield
- the fieldid
- the idelement
- the elementfilename
- the filenamepublished
- the publishedpublic static String secureWeblink(String archive, String field, String id, int element, String filename, boolean published) throws LinkCreationException
archive
- the archivefield
- the fieldid
- the idelement
- the elementfilename
- the filenamepublished
- the publishedLinkCreationException
- the link creation exceptionpublic static String secureWeblink(String archive, String field, String id, int element, String filename, boolean published, boolean currentRevision, String mandant, boolean extern, Long timeout) throws LinkCreationException
archive
- the archive/DDCfield
- the DDC fieldid
- the searched id of DDC fieldelement
- the element of the documentfilename
- the filenamepublished
- true if only released version should be providedcurrentRevision
- set to true for current revisionmandant
- the mandantextern
- link for external usertimeout
- the expiration time in milliseconds.LinkCreationException
- the link creation exceptionpublic static String secureURL(List<String> pathSegments, Map<String,String> queryParameter) throws LinkCreationException
pathSegments
- the path segmentsqueryParameter
- the query parameterLinkCreationException
- if link creation failedpublic static String url(List<String> pathSegments, Map<String,String> queryParameter)
pathSegments
- the path segmentsqueryParameter
- the query parameterpublic static String secureBookmark(List<String> pathSegments, Map<String,String> queryParameter) throws LinkCreationException
pathSegments
- the path segmentsqueryParameter
- the query parameterLinkCreationException
- if link creation failedpublic static String bookmark(List<String> pathSegments, Map<String,String> queryParameter)
pathSegments
- the path segmentsqueryParameter
- the query parameterpublic static String hash(String url) throws LinkCreationException
url
- the url to generate hash.LinkCreationException
- the link creation exceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.