public class FrontendObjectControllerUtils extends Object
Provides utility functionality for use in the frontend object REST controller implementations.
| Constructor and Description | 
|---|
FrontendObjectControllerUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
assertValidObjectAmbiguouslId(String objectAmbiguousId,
                             FrontendObject frontendObject)
Checks that the REST object ID and the  
ActionRequest.parent frontendObject IDs match. | 
static void | 
assertValidType(String type,
               FrontendObject frontendObject)
Checks that the REST type and the frontendObject type match. 
 | 
static String | 
getActionComment(FrontendObject frontendObject)
Extracts an action comment string from the given  
FrontendObject instance. | 
public static void assertValidObjectAmbiguouslId(String objectAmbiguousId, FrontendObject frontendObject)
Checks that the REST object ID and the ActionRequest.parent frontendObject IDs match.
frontendObject - frontend object to validateobjectAmbiguousId - the REST object IDIllegalArgumentException - if there is a mismatchpublic static void assertValidType(String type, FrontendObject frontendObject)
Checks that the REST type and the frontendObject type match.
type - the REST typefrontendObject - the frontend objectIllegalArgumentException - if there is a mismatchpublic static String getActionComment(FrontendObject frontendObject)
Extracts an action comment string from the given FrontendObject instance.
frontendObject - the FrontendObject instanceCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.