Interface AssetLicenseInterface
public interface AssetLicenseInterface
The AssetLicenseInterface supports the management of the types of licenses (terms and conditions) associated with elements.
-
Method Summary
Modifier and TypeMethodDescriptionList<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElement>getLicensedElements(String userId, String licenseGUID, int startFrom, int pageSize) Return information about the elements linked to a license.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseElement>getLicenses(String userId, String elementGUID, int startFrom, int pageSize) Return information about the licenses linked to an element.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElementgetLicenseTypeByDocId(String userId, String documentIdentifier) Retrieve the license type by its assigned unique document identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement>getLicenseTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) Retrieve all the license type definitions for a specific governance domain.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElementgetLicenseTypeByGUID(String userId, String licenseGUID) Retrieve the license type by the unique identifier assigned by this service when it was created.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement>getLicenseTypesByTitle(String userId, String title, int startFrom, int pageSize) Retrieve all the license types for a particular title.licenseElement(String userId, String elementGUID, String licenseTypeGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.governance.LicenseProperties properties) Link an element to a license type and include details of the license in the relationship properties.voidunlicenseElement(String userId, String licenseGUID) Remove the license for an element.voidupdateLicense(String userId, String licenseGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.governance.LicenseProperties properties) Update the properties of a license.
-
Method Details
-
getLicenseTypeByGUID
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement getLicenseTypeByGUID(String userId, String licenseGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the license type by the unique identifier assigned by this service when it was created.- Parameters:
userId- calling userlicenseGUID- identifier of the governance definition to retrieve- Returns:
- properties of the license type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid or userId is null; guid is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getLicenseTypeByDocId
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement getLicenseTypeByDocId(String userId, String documentIdentifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the license type by its assigned unique document identifier.- Parameters:
userId- calling userdocumentIdentifier- identifier to search for- Returns:
- properties of the matching license type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- documentIdentifier or userId is null; documentIdentifier is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getLicenseTypesByTitle
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement> getLicenseTypesByTitle(String userId, String title, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve all the license types for a particular title. The title can include regEx wildcards.- Parameters:
userId- calling usertitle- identifier of licensestartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- list of matching roles (null if no matching elements)
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- title or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getLicenseTypeByDomainId
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseTypeElement> getLicenseTypeByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve all the license type definitions for a specific governance domain.- Parameters:
userId- calling userdomainIdentifier- identifier to search forstartFrom- where to start from in the list of definitionspageSize- max number of results to return in one call- Returns:
- properties of the matching license type definitions
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- domainIdentifier or userId is null; domainIdentifier is not recognizedorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
licenseElement
String licenseElement(String userId, String elementGUID, String licenseTypeGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.governance.LicenseProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Link an element to a license type and include details of the license in the relationship properties.- Parameters:
userId- calling userelementGUID- unique identifier of the element being licensedlicenseTypeGUID- unique identifier for the license typeproperties- the properties of the license- Returns:
- unique identifier of the new relationship
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateLicense
void updateLicense(String userId, String licenseGUID, boolean isMergeUpdate, org.odpi.openmetadata.frameworks.openmetadata.properties.governance.LicenseProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of a license.- Parameters:
userId- calling userlicenseGUID- unique identifier for the license relationshipisMergeUpdate- should the supplied properties overlay the existing properties or replace themproperties- the properties of the license- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
unlicenseElement
void unlicenseElement(String userId, String licenseGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the license for an element.- Parameters:
userId- calling userlicenseGUID- unique identifier for the license relationship- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the properties is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getLicensedElements
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.RelatedElement> getLicensedElements(String userId, String licenseGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return information about the elements linked to a license.- Parameters:
userId- calling userlicenseGUID- unique identifier for the license relationshipstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the subject area
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- qualifiedName or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
getLicenses
List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.LicenseElement> getLicenses(String userId, String elementGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return information about the licenses linked to an element.- Parameters:
userId- calling userelementGUID- unique identifier for the license relationshipstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- properties of the subject area
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- qualifiedName or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-