public class OpenmrsMetadataSaveHandler extends Object implements SaveHandler<OpenmrsMetadata>
OpenmrsMetadata
object is being saved. Trims out the leading and
trailing whitespace around the name and descriptionConstructor and Description |
---|
OpenmrsMetadataSaveHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(OpenmrsMetadata object,
User creator,
Date dateCreated,
String other)
This method is used by the implementing classes to set any required data that it needs to.
|
public void handle(OpenmrsMetadata object, User creator, Date dateCreated, String other)
SaveHandler
handle
in interface RequiredDataHandler<OpenmrsMetadata>
handle
in interface SaveHandler<OpenmrsMetadata>
object
- an OpenmrsObject that needs to have some required data setcreator
- the user who is saving this objectdateCreated
- the datetime this object is being savedother
- (optional) would be the second argument in the save method, if existsShould trim whitespace from name
Should trim whitespace from description
Copyright © 2024 OpenMRS Inc.. All rights reserved.