public interface RightsManagementInterface
| Modifier and Type | Method and Description |
|---|---|
String |
createLicenseType(String userId,
LicenseTypeProperties properties)
Create a description of the license type.
|
void |
deleteLicenseType(String userId,
String licenseGUID)
Delete the properties of the license type.
|
LicenseTypeElement |
getLicenseTypeByDocId(String userId,
String documentIdentifier)
Retrieve the license type by its assigned unique document identifier.
|
List<LicenseTypeElement> |
getLicenseTypeByDomainId(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Retrieve all of the license type definitions for a specific governance domain.
|
LicenseTypeElement |
getLicenseTypeByGUID(String userId,
String licenseGUID)
Retrieve the license type by the unique identifier assigned by this service when it was created.
|
List<LicenseTypeElement> |
getLicenseTypesByTitle(String userId,
String title,
int startFrom,
int pageSize)
Retrieve all of the license types for a particular title.
|
void |
licenseElement(String userId,
String elementGUID,
String licenseTypeGUID,
LicenseProperties properties)
Link an element to a license type and include details of the license in the relationship properties.
|
void |
unlicenseElement(String userId,
String elementGUID,
String licenseTypeGUID,
String licenseId)
Remove the license for an element.
|
void |
updateLicense(String userId,
String elementGUID,
String licenseTypeGUID,
boolean isMergeUpdate,
LicenseProperties properties)
Update the properties of a license.
|
void |
updateLicenseType(String userId,
String licenseGUID,
boolean isMergeUpdate,
LicenseTypeProperties properties)
Update the properties of the license type.
|
String createLicenseType(String userId, LicenseTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userproperties - license propertiesInvalidParameterException - documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid updateLicenseType(String userId, String licenseGUID, boolean isMergeUpdate, LicenseTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlicenseGUID - identifier of the governance definition to changeisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?properties - license propertiesInvalidParameterException - guid, documentIdentifier or userId is null; documentIdentifier is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid deleteLicenseType(String userId, String licenseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlicenseGUID - identifier of the governance definition to deleteInvalidParameterException - guid or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemLicenseTypeElement getLicenseTypeByGUID(String userId, String licenseGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userlicenseGUID - identifier of the governance definition to retrieveInvalidParameterException - guid or userId is null; guid is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemLicenseTypeElement getLicenseTypeByDocId(String userId, String documentIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userdocumentIdentifier - identifier to search forInvalidParameterException - documentIdentifier or userId is null; documentIdentifier is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<LicenseTypeElement> getLicenseTypesByTitle(String userId, String title, int startFrom, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException
userId - calling usertitle - identifier of rolestartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - title or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemList<LicenseTypeElement> getLicenseTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userdomainIdentifier - identifier to search forstartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - domainIdentifier or userId is null; domainIdentifier is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid licenseElement(String userId, String elementGUID, String licenseTypeGUID, LicenseProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userelementGUID - unique identifier of the element being licensedlicenseTypeGUID - unique identifier for the license typeproperties - the properties of the licenseInvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid updateLicense(String userId, String elementGUID, String licenseTypeGUID, boolean isMergeUpdate, LicenseProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userelementGUID - unique identifier of the element being licensedlicenseTypeGUID - unique identifier for the license typeisMergeUpdate - should the supplied properties overlay the existing properties or replace themproperties - the properties of the licenseInvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemvoid unlicenseElement(String userId, String elementGUID, String licenseTypeGUID, String licenseId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userelementGUID - unique identifier of the element being licensedlicenseTypeGUID - unique identifier for the license typelicenseId - optional unique identifier from the license authority - it is used to disambiguate the licenses for the element.InvalidParameterException - one of the properties is invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.