Project

General

Profile

1 26600 sandro.lab
package eu.dnetlib.enabling.is.registry.rmi;
2
3
import java.util.List;
4
5
import javax.jws.WebService;
6
7
import eu.dnetlib.common.rmi.BaseService;
8
import eu.dnetlib.enabling.is.registry.ISRegistryDocumentNotFoundException;
9
10
@WebService(targetNamespace = "http://services.dnetlib.eu/")
11
public interface ISRegistryService extends BaseService {
12
13
	boolean addOrUpdateResourceType(String resourceType, String resourceSchema) throws ISRegistryException;
14
15
	boolean addResourceType(String resourceType, String resourceSchema) throws ISRegistryException;
16
17
	boolean deleteProfile(String profId) throws ISRegistryException, ISRegistryDocumentNotFoundException;
18
19
	@Deprecated
20
	boolean deleteProfiles(List<String> arrayprofId) throws ISRegistryException;
21
22
	/**
23
	 * @param resourceType
24
	 * @param hierarchical
25
	 *            remove subscription topics
26
	 * @return
27
	 * @throws ISRegistryException
28
	 */
29
	boolean deleteResourceType(String resourceType, Boolean hierarchical) throws ISRegistryException;
30
31
	boolean executeXUpdate(String XQuery) throws ISRegistryException;
32
33
	String insertProfileForValidation(String resourceType, String resourceProfile) throws ISRegistryException;
34
35
	String invalidateProfile(String profId) throws ISRegistryException;
36
37
	boolean refreshProfile(String profId, String resourceType) throws ISRegistryException;
38
39
	/**
40
	 * register a XML Profile.
41
	 *
42
	 * @param resourceProfile
43
	 *            xml profile
44
	 * @return profile id
45
	 * @throws ISRegistryException
46
	 */
47
	String registerProfile(String resourceProfile) throws ISRegistryException;
48
49
	String registerSecureProfile(String resourceProfId, String secureProfId) throws ISRegistryException;
50
51
	boolean updateProfile(String profId, String resourceProfile, String resourceType) throws ISRegistryException;
52
53
	@Deprecated
54
	String updateProfileDHN(String resourceProfile) throws ISRegistryException;
55
56
	boolean addProfileNode(String profId, String xpath, String node) throws ISRegistryException;
57
58
	boolean updateProfileNode(String profId, String xpath, String node) throws ISRegistryException;
59
60
	boolean removeProfileNode(String profId, String nodeId) throws ISRegistryException;
61
62
	@Deprecated
63
	boolean updateRegionDescription(String profId, String resourceProfile) throws ISRegistryException;
64
65
	String validateProfile(String profId) throws ISRegistryException;
66
67
	@Deprecated
68
	List<String> validateProfiles(List<String> profIds) throws ISRegistryException;
69
70
	void addBlackBoardMessage(String profId, String messageId, String message) throws ISRegistryException;
71
72
	void replyBlackBoardMessage(String profId, String message) throws ISRegistryException;
73
74
	void deleteBlackBoardMessage(String profId, String messageId) throws ISRegistryException;
75
}