Project

General

Profile

« Previous | Next » 

Revision 6268

cleaning up the handlers -- removing superclass methods.

View differences:

MNResourceHandler.java
211 211
                        status = true;
212 212
                    }
213 213
                    
214
                    // post to register system metadata
215
                    if (httpVerb == POST) {
216
                    	registerSystemMetadata(objectId);
217
                    	status = true;
218
                    }
219

  
220 214
                } else if (resource.equals(RESOURCE_OBJECTS)) {
221 215
                    System.out.println("Using resource 'object'");
222 216

  
......
661 655
     * Implements REST version of DataONE CRUD API --> get
662 656
     * @param guid ID of data object to be read
663 657
     */
664
    @Override
665 658
    protected void getObject(String guid) {
666 659
        OutputStream out = null;
667 660
        try {
......
856 849
     * Implements REST version of DataONE CRUD API --> getSystemMetadata
857 850
     * @param guid ID of data object to be read
858 851
     */
859
    @Override
860 852
    protected void getSystemMetadataObject(String guid) {
861 853
        OutputStream out = null;
862 854
        try {
......
981 973
     * @param guid - ID of data object to be inserted or updated.  If action is update, the pid
982 974
     *               is the existing pid.  If insert, the pid is the new one
983 975
     */
984
    @Override
985 976
    protected void putObject(String pid, String action) {
986 977
        System.out.println("putObject with pid " + pid);
987 978
        logMetacat.debug("Entering putObject: " + pid + "/" + action);
......
1199 1190
        out.close();
1200 1191
    }
1201 1192
    
1193
    
1194
    
1195
    
1202 1196
    /**
1203 1197
     * set the access perms on a document
1204 1198
     * @throws Exception
1205 1199
     */
1206
    @Override
1207 1200
    protected void setaccess() throws Exception
1208 1201
    {
1209 1202
        try

Also available in: Unified diff