Project

General

Profile

« Previous | Next » 

Revision 6235

Metacat does not implement CNRegister

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
31 31
import org.dataone.service.cn.CNAuthorization;
32 32
import org.dataone.service.cn.CNCore;
33 33
import org.dataone.service.cn.CNRead;
34
import org.dataone.service.cn.CNRegister;
35 34
import org.dataone.service.cn.CNReplication;
36 35
import org.dataone.service.exceptions.IdentifierNotUnique;
37 36
import org.dataone.service.exceptions.InsufficientResources;
......
76 75
 *
77 76
 */
78 77
public class CNodeService extends D1NodeService implements CNAuthorization,
79
    CNCore, CNRead, CNRegister, CNReplication {
78
    CNCore, CNRead, CNReplication {
80 79

  
81 80
	/* the instance of the CNodeService object */
82 81
  private static CNodeService instance = null;
......
216 215
	}
217 216

  
218 217
	/**
219
	 * Add capabilities to the node description
220
	 * 
221
	 * @param session - the Session object containing the credentials for the Subject
222
	 * @param nodeid - the node identifier for the given node be modified
223
	 * @param node - the node information to be added
224
	 * 
225
	 * @return true or false
226
	 * 
227
	 * @throws NotImplemented
228
	 * @throws NotAuthorized
229
	 * @throws ServiceFailure
230
	 * @throws InvalidRequest
231
	 * @throws NotFound
232
	 */
233
	@Override
234
	public boolean addNodeCapabilities(Session session, NodeReference nodeid, Node node)
235
	  throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest,
236
	  NotFound {
237

  
238
		throw new NotImplemented("4820", "addNodeCapabilities not implemented");
239
	}
240

  
241
	/**
242
	 * Register a Coordinating Node
243
	 * 
244
	 * @param session - the Session object containing the credentials for the Subject
245
	 * @param node - the node information for the given node be modified
246
	 * 
247
	 * @return nodeid - the identifier of the node to be registered
248
	 * 
249
	 * @throws NotImplemented
250
	 * @throws NotAuthorized
251
	 * @throws ServiceFailure
252
	 * @throws InvalidRequest
253
	 * @throws IdentifierNotUnique
254
	 */
255
	@Override
256
	public Identifier register(Session session, Node node) 
257
	  throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, 
258
	  IdentifierNotUnique {
259

  
260
		return null;
261
	}
262

  
263
	/**
264 218
	 * Test that the specified relationship between pidOfSubject and pidOfObject exists
265 219
	 * 
266 220
	 * @param session - the Session object containing the credentials for the Subject

Also available in: Unified diff