Subversion Repositories XServices

Rev

Rev 83 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 87
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");
37
		return null;
38
		return null;
38
	}
39
	}
39
 
40
 
40
	public String storeBinary(AttachmentType binary) throws XServicesFault {
41
	public String storeBinary(AttachmentType binary) throws XServicesFault {
41
		// TODO Auto-generated method stub
42
		// TODO Auto-generated method stub
-
 
43
		System.err.println("storeBinary is not yet implemented");
42
		return null;
44
		return null;
43
	}
45
	}
44
 
46
 
45
	public String createCollection(CollectionType collection)
47
	public String createCollection(CollectionType collection)
46
			throws XServicesFault {
48
			throws XServicesFault {
47
		return collection.getUuid();
49
		return collection.getUuid();
48
	}
50
	}
49
	
51
	
50
	public void deliverCollection(CollectionType collection,
52
	public void deliverCollection(CollectionType collection,
51
			TargetNodeType targetnode, boolean isFiring) throws XServicesFault {
53
			TargetNodeType targetnode, boolean isFiring) throws XServicesFault {
52
		// TODO Auto-generated method stub
54
		// TODO Auto-generated method stub
53
		
-
 
-
 
55
		System.err.println("deliverCollection is not yet implemented");		
54
	}
56
	}
55
	
57
	
56
}
58
}