public class ConceptUsageExtension extends Extension
This class models an extension point that is used to show how a certain type of metadata in OpenMRS uses an existing Concept. This is initially intended for pages that view a concept, where an extension could be something like Forms or Programs that use a concept, and the conceptUsage member variable is the list of all such things (Forms or Programs for this example) that are currently using the concept in OpenMRS.
While this class is geared towards openmrs jsp extension points (hence the mediatype and requried privilege), it's hopeful that it can also be used programmatically to generate reports and other things in the background.
Extension.MEDIA_TYPE
extensionIdSeparator
Constructor and Description |
---|
ConceptUsageExtension() |
ConceptUsageExtension(String header,
List<Link> conceptUsage) |
ConceptUsageExtension(String header,
List<Link> conceptUsage,
String requiredPrivilege) |
Modifier and Type | Method and Description |
---|---|
List<Link> |
getConceptUsage() |
String |
getHeader() |
Extension.MEDIA_TYPE |
getMediaType()
Sets the content type of this extension.
|
String |
getRequiredPrivilege()
Returns the required privilege in order to see this section.
|
void |
setConceptUsage(List<Link> conceptUsage) |
void |
setHeader(String header) |
void |
setMediaType(Extension.MEDIA_TYPE mediaType) |
void |
setRequiredPrivilege(String requiredPrivilege) |
getExtensionId, getModuleId, getOrder, getOverrideContent, getParameterMap, getPointId, initialize, setModuleId, setParameterMap, setPointId, toExtensionId, toString
public Extension.MEDIA_TYPE getMediaType()
Extension
getMediaType
in class Extension
public void setMediaType(Extension.MEDIA_TYPE mediaType)
public String getHeader()
public void setHeader(String header)
public String getRequiredPrivilege()
public void setRequiredPrivilege(String requiredPrivilege)
Copyright © 2015 OpenMRS Inc.. All rights reserved.