Project

General

Profile

« Previous | Next » 

Revision 9036

Added by Jing Tao over 9 years ago

Looking for sid for the method describe.

View differences:

CNodeService.java
194 194
	@Override
195 195
	public DescribeResponse describe(Identifier pid) throws InvalidToken,
196 196
			NotAuthorized, NotImplemented, ServiceFailure, NotFound {
197
	    String serviceFailure = "4931";
198
        String notFound = "4933";
199
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The system metadata for given PID "+pid.getValue()+" couldn't be identified if it exists",  notFound, 
200
                "No system metadata could be found for given PID: "+pid.getValue());
197 201
		return impl.describe(null, pid);
198 202
	}
199 203

  
......
202 206
	public DescribeResponse describe(Session session, Identifier pid)
203 207
			throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure,
204 208
			NotFound {
209
	    String serviceFailure = "4931";
210
        String notFound = "4933";
211
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The system metadata for given PID "+pid.getValue()+" couldn't be identified if it exists",  notFound, 
212
                "No system metadata could be found for given PID: "+pid.getValue());
205 213
		return impl.describe(session, pid);
206 214
	}
207 215

  
......
210 218
			ServiceFailure, NotAuthorized, NotFound, NotImplemented {
211 219
        String serviceFailure = "1030";
212 220
        String notFound = "1020";
213
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, notFound);
221
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The object specified by "+pid.getValue()+" couldn't be identified if it exists",  notFound, 
222
                "The object specified by "+pid.getValue()+" does not exist at this node");
214 223
		return impl.get(null, pid);
215 224
	}
216 225

  
......
220 229
			ServiceFailure, NotAuthorized, NotFound, NotImplemented {
221 230
	    String serviceFailure = "1030";
222 231
        String notFound = "1020";
223
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, notFound);
232
        impl.checkV1SystemMetaPidExist(pid, serviceFailure, "The object specified by "+pid.getValue()+" couldn't be identified if it exists",  notFound, 
233
                "The object specified by "+pid.getValue()+" does not exist at this node");
224 234
		return impl.get(session, pid);
225 235
	}
226 236

  

Also available in: Unified diff