@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class CustomDdlRestController
extends HerdBaseController
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_DDLS_URI_PREFIX |
| Constructor and Description |
|---|
CustomDdlRestController() |
| Modifier and Type | Method and Description |
|---|---|
CustomDdl |
createCustomDdl(CustomDdlCreateRequest request)
Creates a new custom DDL.
|
CustomDdl |
deleteCustomDdl(String namespace,
String businessObjectDefinitionName,
String businessObjectFormatUsage,
String businessObjectFormatFileType,
Integer businessObjectFormatVersion,
String customDdlName)
Deletes an existing custom DDL.
|
CustomDdl |
getCustomDdl(String namespace,
String businessObjectDefinitionName,
String businessObjectFormatUsage,
String businessObjectFormatFileType,
Integer businessObjectFormatVersion,
String customDdlName)
Gets an existing custom DDL.
|
CustomDdlKeys |
getCustomDdls(String namespace,
String businessObjectDefinitionName,
String businessObjectFormatUsage,
String businessObjectFormatFileType,
Integer businessObjectFormatVersion)
Gets a list of keys for all existing custom DDLs for a specific business object format.
|
CustomDdl |
updateCustomDdl(String namespace,
String businessObjectDefinitionName,
String businessObjectFormatUsage,
String businessObjectFormatFileType,
Integer businessObjectFormatVersion,
String customDdlName,
CustomDdlUpdateRequest request)
Updates an existing custom DDL.
|
addPagingHttpHeaders, validateNoDuplicateQueryStringParamspublic static final String CUSTOM_DDLS_URI_PREFIX
@RequestMapping(value="/customDdls",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_CUSTOM_DDLS_POST")
public CustomDdl createCustomDdl(@RequestBody
CustomDdlCreateRequest request)
Requires WRITE permission on namespace
request - the information needed to create a custom DDL@RequestMapping(value="/customDdls/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}",
method=GET)
@Secured(value="FN_CUSTOM_DDLS_GET")
public CustomDdl getCustomDdl(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="businessObjectDefinitionName")
String businessObjectDefinitionName,
@PathVariable(value="businessObjectFormatUsage")
String businessObjectFormatUsage,
@PathVariable(value="businessObjectFormatFileType")
String businessObjectFormatFileType,
@PathVariable(value="businessObjectFormatVersion")
Integer businessObjectFormatVersion,
@PathVariable(value="customDdlName")
String customDdlName)
Requires READ permission on namespace
namespace - the namespacebusinessObjectDefinitionName - the business object definition namebusinessObjectFormatUsage - the business object format usagebusinessObjectFormatFileType - the business object format file typebusinessObjectFormatVersion - the business object format versioncustomDdlName - the custom DDL name@RequestMapping(value="/customDdls/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}",
method=PUT,
consumes={"application/xml","application/json"})
@Secured(value="FN_CUSTOM_DDLS_PUT")
public CustomDdl updateCustomDdl(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="businessObjectDefinitionName")
String businessObjectDefinitionName,
@PathVariable(value="businessObjectFormatUsage")
String businessObjectFormatUsage,
@PathVariable(value="businessObjectFormatFileType")
String businessObjectFormatFileType,
@PathVariable(value="businessObjectFormatVersion")
Integer businessObjectFormatVersion,
@PathVariable(value="customDdlName")
String customDdlName,
@RequestBody
CustomDdlUpdateRequest request)
Requires WRITE permission on namespace
namespace - the namespacebusinessObjectDefinitionName - the business object definition namebusinessObjectFormatUsage - the business object format usagebusinessObjectFormatFileType - the business object format file typebusinessObjectFormatVersion - the business object format versioncustomDdlName - the custom DDL namerequest - the request information needed to update the custom DDL@RequestMapping(value="/customDdls/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}/businessObjectFormatVersions/{businessObjectFormatVersion}/customDdlNames/{customDdlName}",
method=DELETE)
@Secured(value="FN_CUSTOM_DDLS_DELETE")
public CustomDdl deleteCustomDdl(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="businessObjectDefinitionName")
String businessObjectDefinitionName,
@PathVariable(value="businessObjectFormatUsage")
String businessObjectFormatUsage,
@PathVariable(value="businessObjectFormatFileType")
String businessObjectFormatFileType,
@PathVariable(value="businessObjectFormatVersion")
Integer businessObjectFormatVersion,
@PathVariable(value="customDdlName")
String customDdlName)
Requires WRITE permission on namespace
namespace - the namespacebusinessObjectDefinitionName - the business object definition namebusinessObjectFormatUsage - the business object format usagebusinessObjectFormatFileType - the business object format file typebusinessObjectFormatVersion - the business object format versioncustomDdlName - the custom DDL name@RequestMapping(value="/customDdls/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}/businessObjectFormatVersions/{businessObjectFormatVersion}",
method=GET)
@Secured(value="FN_CUSTOM_DDLS_ALL_GET")
public CustomDdlKeys getCustomDdls(@PathVariable(value="namespace")
String namespace,
@PathVariable(value="businessObjectDefinitionName")
String businessObjectDefinitionName,
@PathVariable(value="businessObjectFormatUsage")
String businessObjectFormatUsage,
@PathVariable(value="businessObjectFormatFileType")
String businessObjectFormatFileType,
@PathVariable(value="businessObjectFormatVersion")
Integer businessObjectFormatVersion)
Requires READ permission on namespace
namespace - the namespacebusinessObjectDefinitionName - the business object definition namebusinessObjectFormatUsage - the business object format usagebusinessObjectFormatFileType - the business object format file typebusinessObjectFormatVersion - the business object format versionCopyright © 2021. All rights reserved.