Skip to content

Commit

Permalink
TRUNK-5367 Create URL global property (#2657)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaz authored and dkayiwa committed Apr 23, 2018
1 parent 0e49413 commit aee5246
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/src/main/java/org/openmrs/util/OpenmrsConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,8 @@ public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {

props
.add(new GlobalProperty(GP_DRUG_ORDER_DRUG_OTHER, "", "Specifies the uuid of the concept which represents drug other non coded"));
props.add(new GlobalProperty(GP_LOGIN_URL, LOGIN_URL,
"Responsible for defining the Authentication URL "));
props.addAll(ModuleFactory.getGlobalProperties());

return props;
Expand Down Expand Up @@ -1234,6 +1236,21 @@ public static final Collection<String> CONCEPT_PROPOSAL_STATES() {
public static final String LOG_LEVEL_ERROR = "error";

public static final String LOG_LEVEL_FATAL = "fatal";

/**
* Default url responsible for authentication if a user is not logged in.
*
* @see #GP_LOGIN_URL
*/
public static final String LOGIN_URL = "login.htm";

/**
* Global property name that defines the default url
* responsible for authentication if user is not logged in.
*
* @see #LOGIN_URL
*/
public static final String GP_LOGIN_URL = "login.url";

/**
* These enumerations should be used in ObsService and PersonService getters to help determine
Expand Down

0 comments on commit aee5246

Please sign in to comment.