Subversion Repositories XServices

Rev

Rev 87 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87 Rev 114
1
/*
1
/*
2
 *   Copyright 2011 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2011 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
package net.brutex.xservices.ws.impl;
16
package net.brutex.xservices.ws.impl;
17
 
17
 
18
import javax.jws.WebService;
18
import javax.jws.WebService;
19
 
19
 
20
import net.brutex.xservices.types.TargetNodeType;
20
import net.brutex.xservices.types.TargetNodeType;
21
import net.brutex.xservices.types.ant.AttachmentType;
21
import net.brutex.xservices.types.ant.AttachmentType;
22
import net.brutex.xservices.types.ant.CollectionType;
22
import net.brutex.xservices.types.ant.CollectionType;
23
import net.brutex.xservices.util.BrutexNamespaces;
23
import net.brutex.xservices.util.BrutexNamespaces;
24
import net.brutex.xservices.ws.StorageService;
24
import net.brutex.xservices.ws.StorageService;
25
import net.brutex.xservices.ws.XServicesFault;
25
import net.brutex.xservices.ws.XServicesFault;
26
 
26
 
27
/**
27
/**
28
 * @author Brian Rosenberger
28
 * @author Brian Rosenberger
29
 * @since 0.5.0
29
 * @since 0.5.0
30
 * 
30
 * 
31
 */
31
 */
32
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.StorageService", serviceName = StorageService.SERVICE_NAME)
32
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.StorageService", serviceName = StorageService.SERVICE_NAME)
33
public class StorageServiceImpl implements StorageService {
33
public class StorageServiceImpl implements StorageService {
34
 
34
 
35
	public String storeText(String text) throws XServicesFault {
35
	public String storeText(String text) throws XServicesFault {
36
		// TODO Auto-generated method stub
36
		// TODO Auto-generated method stub
37
		System.err.println("storeText is not yet implemented");
-
 
38
		return null;
37
		return null;
39
	}
38
	}
40
 
39
 
41
	public String storeBinary(AttachmentType binary) throws XServicesFault {
40
	public String storeBinary(AttachmentType binary) throws XServicesFault {
42
		// TODO Auto-generated method stub
41
		// TODO Auto-generated method stub
43
		System.err.println("storeBinary is not yet implemented");
-
 
44
		return null;
42
		return null;
45
	}
43
	}
46
 
44
 
47
	public String createCollection(CollectionType collection)
45
	public String createCollection(CollectionType collection)
48
			throws XServicesFault {
46
			throws XServicesFault {
49
		return collection.getUuid();
47
		return collection.getUuid();
50
	}
48
	}
51
	
49
	
52
	public void deliverCollection(CollectionType collection,
50
	public void deliverCollection(CollectionType collection,
53
			TargetNodeType targetnode, boolean isFiring) throws XServicesFault {
51
			TargetNodeType targetnode, boolean isFiring) throws XServicesFault {
54
		// TODO Auto-generated method stub
52
		// TODO Auto-generated method stub
55
		System.err.println("deliverCollection is not yet implemented");		
-
 
-
 
53
		
56
	}
54
	}
57
	
55
	
58
}
56
}