Project

General

Profile

« Previous | Next » 

Revision 6249

add shared operations for authorization

View differences:

src/edu/ucsb/nceas/metacat/restservice/ResourceHandler.java
242 242
    protected static final String RESOURCE_MONITOR = "monitor";
243 243
    protected static final String RESOURCE_BASE_URL = "d1";
244 244
    protected static final String RESOURCE_REPLICATE = "replicate";
245
    
246
    protected static final String RESOURCE_IS_AUTHORIZED = "isAuthorized";
247
    protected static final String RESOURCE_ACCESS_RULES = "accessRules";
245 248

  
246 249
    /*
247 250
     * API Functions used as URL parameters
......
1196 1199
     * Implements REST version of DataONE CRUD API --> get
1197 1200
     * @param guid ID of data object to be read
1198 1201
     */
1199
    private void getObject(String guid) {
1202
    protected void getObject(String guid) {
1200 1203
        OutputStream out = null;
1201 1204
        try {
1202 1205
            out = response.getOutputStream();

Also available in: Unified diff