-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
O3-3002: Queue Module - REST endpoints can be accessed without authen…
…tication. (#71)
- Loading branch information
1 parent
e2a0d35
commit a6f91d0
Showing
6 changed files
with
373 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
api/src/main/java/org/openmrs/module/queue/utils/PrivilegeConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public License, | ||
* v. 2.0. If a copy of the MPL was not distributed with this file, You can | ||
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under | ||
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license. | ||
* | ||
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS | ||
* graphic logo is a trademark of OpenMRS Inc. | ||
*/ | ||
package org.openmrs.module.queue.utils; | ||
|
||
import org.openmrs.annotation.AddOnStartup; | ||
import org.openmrs.annotation.HasAddOnStartupPrivileges; | ||
|
||
/** | ||
* Contains all privilege names and their descriptions. Some privilege names may be marked with | ||
* AddOnStartup annotation. | ||
* | ||
* @see org.openmrs.annotation.AddOnStartup | ||
* @since 2.4.0 | ||
*/ | ||
@HasAddOnStartupPrivileges | ||
public class PrivilegeConstants { | ||
|
||
@AddOnStartup(description = "Able to get/view queues") | ||
public static final String GET_QUEUES = "Get Queues"; | ||
|
||
@AddOnStartup(description = "Able to get/view queue entries") | ||
public static final String GET_QUEUE_ENTRIES = "Get Queue Entries"; | ||
|
||
@AddOnStartup(description = "Able to get/view queue rooms") | ||
public static final String GET_QUEUE_ROOMS = "Get Queue Rooms"; | ||
|
||
@AddOnStartup(description = "Able to add/edit/retire queues") | ||
public static final String MANAGE_QUEUES = "Manage Queues"; | ||
|
||
@AddOnStartup(description = "Able to add/edit/retire queue entries") | ||
public static final String MANAGE_QUEUE_ENTRIES = "Manage Queue Entries"; | ||
|
||
@AddOnStartup(description = "Able to add/edit/retire queue rooms") | ||
public static final String MANAGE_QUEUE_ROOMS = "Manage Queue Rooms"; | ||
|
||
public static final String PURGE_QUEUES = "Purge Queues"; | ||
|
||
public static final String PURGE_QUEUE_ENTRIES = "Purge Queue Entries"; | ||
|
||
public static final String PURGE_QUEUE_ROOMS = "Purge Queue Rooms"; | ||
} |
Oops, something went wrong.