@Override public BusinessObjectFormatExternalInterface getBusinessObjectFormatExternalInterface( BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey) { // Validate and trim the business object format to external interface mapping key. businessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceKey(businessObjectFormatExternalInterfaceKey); // Retrieve and ensure that a business object format to external interface mapping with the specified key exists. BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = businessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey); // Create a business object format to external interface mapping object from the entity and return it. return businessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(businessObjectFormatExternalInterfaceEntity); } }
/** * Update the storage unit status. * * @param storageUnitEntity the storage unit entity * @param storageUnitStatus the new storage unit status * @param reason the reason for the update */ public void updateStorageUnitStatus(StorageUnitEntity storageUnitEntity, String storageUnitStatus, String reason) { // Retrieve and ensure the new storage unit status is valid. StorageUnitStatusEntity storageUnitStatusEntity = storageUnitStatusDaoHelper.getStorageUnitStatusEntity(storageUnitStatus); // Update the storage unit status. updateStorageUnitStatus(storageUnitEntity, storageUnitStatusEntity, reason); }
/** * Returns a list of primary and sub-partition values per specified business object data. * * @param businessObjectData the business object data * * @return the list of primary and sub-partition values */ public List<String> getPrimaryAndSubPartitionValues(BusinessObjectData businessObjectData) { return getPrimaryAndSubPartitionValues(getBusinessObjectDataKey(businessObjectData)); }
/** * Implementation of the update business object data status. */ protected void updateBusinessObjectDataStatusImpl(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus) { businessObjectDataDaoHelper .updateBusinessObjectDataStatus(businessObjectDataDaoHelper.getBusinessObjectDataEntity(businessObjectDataKey), businessObjectDataStatus); }
/** * Gets a job definition key using namespace and name of the the job definition extracted from the specified process definition key using the Regex * pattern. * * @param processDefinitionKey the process definition key * * @return the job definition key */ public JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey) { return getJobDefinitionKey(processDefinitionKey, getNamespaceAndJobNameRegexPattern()); }
@SuppressWarnings("PMD.CloseResource") // These are not SQL statements so they don't need to be closed. private Policy createUploaderPolicyNoKmsKey(String s3BucketName, String s3Key) { return new AwsPolicyBuilder().withS3(s3BucketName, s3Key, S3Actions.PutObject).build(); }
/** * Creates the business object data from the persisted entity. * * @param businessObjectDataEntity the newly persisted business object data entity. * * @return the business object data. */ public BusinessObjectData createBusinessObjectDataFromEntity(BusinessObjectDataEntity businessObjectDataEntity) { return createBusinessObjectDataFromEntity(businessObjectDataEntity, false, false); }
/** * Delegates implementation to {@link org.finra.herd.service.helper.BusinessObjectDataInvalidateUnregisteredHelper}. Keeps current transaction context. * * @param businessObjectDataInvalidateUnregisteredRequest {@link org.finra.herd.model.api.xml.BusinessObjectDataInvalidateUnregisteredRequest} * * @return {@link BusinessObjectDataInvalidateUnregisteredResponse} */ BusinessObjectDataInvalidateUnregisteredResponse invalidateUnregisteredBusinessObjectDataImpl( BusinessObjectDataInvalidateUnregisteredRequest businessObjectDataInvalidateUnregisteredRequest) { return businessObjectDataInvalidateUnregisteredHelper.invalidateUnregisteredBusinessObjectData(businessObjectDataInvalidateUnregisteredRequest); }
/** * Update and persist the business object definition change events * * @param businessObjectDefinitionEntity the business object definition entity */ private void saveBusinessObjectDefinitionChangeEvents(BusinessObjectDefinitionEntity businessObjectDefinitionEntity) { businessObjectDefinitionDaoHelper.saveBusinessObjectDefinitionChangeEvents(businessObjectDefinitionEntity); }
/** * Creates a new business object data from the request information. * * @param request the request * * @return the newly created and persisted business object data */ public BusinessObjectData createBusinessObjectData(BusinessObjectDataCreateRequest request) { // By default, fileSize value is required. return createBusinessObjectData(request, true); }
/** * Gets the DDL character value based on the specified configured character value. This method supports UTF-8 encoded strings and will "Hive" escape any * non-ASCII printable characters using '\(value)'. * * @param string the configured character value. * * @return the DDL character value. */ public String getDdlCharacterValue(String string) { return getDdlCharacterValue(string, false); }
/** * Gets business object data based on the key information. * * @param businessObjectDataKey the business object data key. * * @return the business object data. */ public BusinessObjectDataEntity getBusinessObjectDataEntity(BusinessObjectDataKey businessObjectDataKey) { // Retrieve the business object data entity regardless of its status. return getBusinessObjectDataEntityByKeyAndStatus(businessObjectDataKey, null); }
/** * Returns a list of primary and sub-partition values per specified business object data entity. * * @param businessObjectDataEntity the business object data entity * * @return the list of primary and sub-partition values */ public List<String> getPrimaryAndSubPartitionValues(BusinessObjectDataEntity businessObjectDataEntity) { return getPrimaryAndSubPartitionValues(getBusinessObjectDataKey(businessObjectDataEntity)); }
@Override public BusinessObjectFormatExternalInterface getBusinessObjectFormatExternalInterface( BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey) { // Validate and trim the business object format to external interface mapping key. businessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceKey(businessObjectFormatExternalInterfaceKey); // Retrieve and ensure that a business object format to external interface mapping with the specified key exists. BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = businessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey); // Create a business object format to external interface mapping object from the entity and return it. return businessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(businessObjectFormatExternalInterfaceEntity); } }
/** * Update the storage unit status. * * @param storageUnitEntity the storage unit entity * @param storageUnitStatus the new storage unit status * @param reason the reason for the update */ public void updateStorageUnitStatus(StorageUnitEntity storageUnitEntity, String storageUnitStatus, String reason) { // Retrieve and ensure the new storage unit status is valid. StorageUnitStatusEntity storageUnitStatusEntity = storageUnitStatusDaoHelper.getStorageUnitStatusEntity(storageUnitStatus); // Update the storage unit status. updateStorageUnitStatus(storageUnitEntity, storageUnitStatusEntity, reason); }
/** * Implementation of the update business object data status. */ protected void updateBusinessObjectDataStatusImpl(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus) { businessObjectDataDaoHelper .updateBusinessObjectDataStatus(businessObjectDataDaoHelper.getBusinessObjectDataEntity(businessObjectDataKey), businessObjectDataStatus); }
/** * Creates the business object data from the persisted entity. * * @param businessObjectDataEntity the newly persisted business object data entity. * * @return the business object data. */ public BusinessObjectData createBusinessObjectDataFromEntity(BusinessObjectDataEntity businessObjectDataEntity) { return createBusinessObjectDataFromEntity(businessObjectDataEntity, false, false); }
/** * Delegates implementation to {@link org.finra.herd.service.helper.BusinessObjectDataInvalidateUnregisteredHelper}. Keeps current transaction context. * * @param businessObjectDataInvalidateUnregisteredRequest {@link org.finra.herd.model.api.xml.BusinessObjectDataInvalidateUnregisteredRequest} * * @return {@link BusinessObjectDataInvalidateUnregisteredResponse} */ BusinessObjectDataInvalidateUnregisteredResponse invalidateUnregisteredBusinessObjectDataImpl( BusinessObjectDataInvalidateUnregisteredRequest businessObjectDataInvalidateUnregisteredRequest) { return businessObjectDataInvalidateUnregisteredHelper.invalidateUnregisteredBusinessObjectData(businessObjectDataInvalidateUnregisteredRequest); }
/** * Update and persist the business object definition change events * * @param businessObjectDefinitionEntity the business object definition entity */ private void saveBusinessObjectDefinitionChangeEvents(BusinessObjectDefinitionEntity businessObjectDefinitionEntity) { businessObjectDefinitionDaoHelper.saveBusinessObjectDefinitionChangeEvents(businessObjectDefinitionEntity); }
/** * Returns a list of primary and sub-partition values per specified business object data. * * @param businessObjectData the business object data * * @return the list of primary and sub-partition values */ public List<String> getPrimaryAndSubPartitionValues(BusinessObjectData businessObjectData) { return getPrimaryAndSubPartitionValues(getBusinessObjectDataKey(businessObjectData)); }