ArcLink 访问模块
Arclink 访问模块是一个虚拟模块,用于定义访问规则,本身不需要配置。
对于编目中被标记为受限的每个台网、台站和流,可以定义电子邮件集来访问数据。这些信息存储在数据库中。
为受限台网定义用户列表(如9U),只需在etc/key/arclink-access/
创建一个文件profile_9u
:
access.users = pedro, joao
复杂情况:
access.users = pedro, joao
access.streams = BH*
然后etc/key
中的每个台站绑定文件将链接至该属性,只需添加:
arclink-access:9u
至台站 key 文件(文件名station_[Network Code]_[Station Code]
)。
使用 dump_db 命令可转储访问,只需添加with-access
选项:
% dump_db --routing --with-access routing.xml
结果文件将包含访问入口列表,例如:
<?xml version="1.0" encoding="utf-8"?>
<ns0:routing xmlns:ns0="http://geofon.gfz-potsdam.de/ns/Routing/1.0/">
<ns0:route locationCode="" networkCode="GE"
publicID="Route#20120830110313.459068.338"
stationCode="" streamCode="">
<ns0:arclink address="localhost:18001" end="" priority="1"
start="1980-01-01T00:00:00.0000Z" />
<ns0:seedlink address="localhost:18000" priority="1" />
</ns0:route>
<ns0:access end="" locationCode="" networkCode="GE"
start="1980-01-01T00:00:00.0000Z" stationCode=""
streamCode="" user="pedro" />
<ns0:access end="" locationCode="" networkCode="GE"
start="1980-01-01T00:00:00.0000Z" stationCode=""
streamCode="" user="joao" />
</ns0:routing>