3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
.lsid
;
12 import com
.ibm
.lsid
.ExpiringResponse
;
15 import com
.ibm
.lsid
.server
.LSIDServerException
;
16 import com
.ibm
.lsid
.server
.LSIDService
;
18 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
19 import eu
.etaxonomy
.cdm
.model
.common
.LSIDAuthority
;
21 * LSIDAuthorityService interface which was altered from com.ibm.lsid.server.LSIDAuthorityService,
22 * replacing the LSIDRequestContext with a simple LSID. My thinking behind this is that provided the
23 * LSIDAuthorityService has no responsibility for security, then there is no need to pass that
24 * information to it (in an LSIDRequestContext). This allows better separation of concerns in that methods
25 * requiring authentication and authorization can be secured transparently within CATE without the need for
26 * the LSIDAuthorityService to know anything about it. I could be wrong, of course.
28 * @author Ben Szekely (<a href="mailto:bhszekel@us.ibm.com">bhszekel@us.ibm.com</a>)
31 * @see com.ibm.lsid.server.LSIDAuthorityService
32 * @see com.ibm.lsid.server.LSIDRequestContext
34 public interface LSIDAuthorityService
extends LSIDService
{
36 * Get a WSDL document which describes the this authority
37 * @return ExpiringResponse contains a Source object containing the WSDL document
38 * @throws LSIDServerException
40 * @see javax.xml.transform.Source
42 public ExpiringResponse
getAuthorityWSDL() throws LSIDServerException
;
45 * Get the WSDL document that describes the methods that can be called on the given LSID
46 * @param LSID the LSID to query
47 * @return ExpiringResponse contains a Source object containing the WSDL document
49 * @see javax.xml.transform.Source
51 public ExpiringResponse
getAvailableServices(LSID lsid
) throws LSIDServerException
;
54 * Add a known foreign authority to the metadata of an lsid
56 * @param authorityName
57 * @throws LSIDServerException
59 public void notifyForeignAuthority(LSID lsid
, LSIDAuthority authorityName
) throws LSIDServerException
;
63 * Remove a foreign authority registration from a specific lsid
65 * @param authorityName
66 * @throws LSIDServerException
68 public void revokeNotificationForeignAuthority(LSID lsid
, LSIDAuthority authorityName
) throws LSIDServerException
;