public final class Utilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkServerVersion(java.lang.String expected)
Checks if server side version equals or is greater than a given version
number (pattern: 0.0.0).
|
static java.lang.String |
getCategories(java.lang.String provider)
Returns the categories of a given provider.
|
static java.util.List<java.lang.String> |
getCategoryProviders()
Returns available category providers.
|
static java.util.Vector<java.lang.String> |
getObjects(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns all available PDR objects within given range.
|
static java.util.List<IDRange> |
getOccupiedObjectIDRanges(PDRType type,
int instance,
int project,
int lowerBound,
int upperBound)
Returns occupied ID ranges in given boundaries.
|
static java.lang.String |
getServerVersion()
Returns server side's version information.
|
static void |
removeCategories(java.lang.String provider)
Deletes categories of given provider on server-side.
|
static void |
setCategories(java.lang.String categories,
java.lang.String provider)
Stores categories of given provider on server-side.
|
public static java.lang.String getServerVersion() throws PDRAlliesClientException
PDRAlliesClientException
- An error occured during processing the request.public static boolean checkServerVersion(java.lang.String expected) throws PDRAlliesClientException
expected
- Expected version number.PDRAlliesClientException
- Fehlerfall.public static java.lang.String getCategories(java.lang.String provider) throws PDRAlliesClientException
provider
- Name of the provider.PDRAlliesClientException
- An error occured during processing the request.public static java.util.List<java.lang.String> getCategoryProviders() throws PDRAlliesClientException
PDRAlliesClientException
- An error occured during processing the request.public static java.util.List<IDRange> getOccupiedObjectIDRanges(PDRType type, int instance, int project, int lowerBound, int upperBound) throws PDRAlliesClientException
type
- Object type.instance
- Instance ID.project
- Project ID.lowerBound
- Lower bound of specified range.upperBound
- Upper bound of specified range.PDRAlliesClientException
- An error occured during processing the request.public static void removeCategories(java.lang.String provider) throws PDRAlliesClientException
provider
- Provider name.PDRAlliesClientException
- An error occured during processing the request.public static void setCategories(java.lang.String categories, java.lang.String provider) throws PDRAlliesClientException
categories
- Categories.provider
- Provider name.PDRAlliesClientException
- An error occured during processing the request.public static java.util.Vector<java.lang.String> getObjects(PDRType type, int instance, int project, int lowerBound, int upperBound) throws PDRAlliesClientException
type
- Object type.instance
- Instance ID.project
- Project ID.lowerBound
- Lower bound of specified range.upperBound
- Upper bound of specified range.PDRAlliesClientException
- An error occured during processing the request.