ClassName¶
-
public final class
ClassName
¶ The
ClassName
util provides several methods which should help for example with getting class name or package from string representation of class. There is also methods related with creating names for repository, service interface and implementation of this service interface.
Methods¶
getEntityClassName¶
getEntityTypeSuffix¶
getEnumPackage¶
getHistoryClassName¶
getInterfaceName¶
getPackage¶
getRepositoryName¶
getServiceClassName¶
-
public static String
getServiceClassName
(String className)¶ Retrieves fully qualified class name of the
org.motechproject.mds.service.MotechDataService
service implementation.Parameters: - className – entity class name
Returns: fully qualified MDS service implementation name
getServiceName¶
getSimpleName¶
getTrashClassName¶
isHistoryClassName¶
isTrashClassName¶
restId¶
restLookupUrl¶
-
public static String
restLookupUrl
(String entityName, String entityModule, String entityNamespace, String lookupMethodName)¶ Builds URL endpoint, to access lookups via REST, based on the entity name, module, namespace and lookup method name.
Parameters: - entityName – name of the entity
- entityModule – name of the module
- entityNamespace – namespace
- lookupMethodName – name of the lookup method
Returns: URL endpoint for REST lookup
restUrl¶
-
public static String
restUrl
(String entityName, String entityModule, String entityNamespace)¶ Builds URL endpoint to access REST operations, based on the entity name, module name and namespace.
Parameters: - entityName – name of the entity
- entityModule – name of the module
- entityNamespace – namespace
Returns: URL endpoint for REST