📄 systemdatabase.java
字号:
/*
* SSL-Explorer
*
* Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package com.sslexplorer.security;
import java.util.Calendar;
import java.util.List;
import java.util.Map;
import com.sslexplorer.boot.HostService;
import com.sslexplorer.core.Database;
import com.sslexplorer.extensions.ApplicationShortcut;
import com.sslexplorer.navigation.Favorite;
import com.sslexplorer.replacementproxy.Replacement;
import com.sslexplorer.tunnels.Tunnel;
import com.sslexplorer.vfs.NetworkPlace;
import com.sslexplorer.webforwards.WebForward;
/**
* The <i>System Configuration> {@link com.sslexplorer.core.Database} implementation
* is responsible for storing an retrieving SSL-Explorer's basic resources and
* configuration.
*
* @author Brett Smith <a href="mailto: brett@3sp.com"><brett@3sp.com></a>
* @version $Revision: 1.68 $
*/
public interface SystemDatabase extends Database {
public Tunnel createTunnel(String name, String description, int type, boolean autoStart, String transport, String username,
int sourcePort, HostService destination, boolean allowExternalHosts, int parentResourcePermission)
throws Exception;
public void updateTunnel(int id, String name, String description, int type, boolean autoStart, String transport,
String username, int sourcePort, HostService destination, boolean allowExternalHosts,
int parentResourcePermission) throws Exception;
public int createApplicationShortcut(String application, String name, String description, int parentResourcePermission, Map settings)
throws Exception;
public List getShortcuts(String application) throws Exception;
public ApplicationShortcut getShortcut(int shortcutId) throws Exception;
public ApplicationShortcut deleteShortcut(int shortcutId) throws Exception;
public void addFavorite(int type, int favoriteKey, String username) throws Exception;
public void removeFavorite(int type, int favoriteKey, String username) throws Exception;
public boolean verifyIPAddress(String ipadrress) throws Exception;
public void removeIpRestriction(int id) throws Exception;
public void addIpRestriction(String ipaddress, boolean authorized) throws Exception;
public IpRestriction[] getIpRestrictions() throws Exception;
public List getFavorites(int type, User username) throws Exception;
public List getTunnels() throws Exception;
public Tunnel removeTunnel(int id) throws Exception;
public Tunnel getTunnel(int id) throws Exception;
public List getWebForwards(int type) throws Exception;
public WebForward getReverseProxyWebForward(User user, String pathInContext) throws Exception;
public WebForward getWebForward(int id) throws Exception;
public boolean reverseProxyPathExists(String path) throws Exception;
public boolean reverseProxyPathExists(String path, int webforward_id) throws Exception;
public WebForward createWebForward(WebForward webForward) throws Exception;
public void updateWebForward(WebForward webForward) throws Exception;
public WebForward deleteWebForward(int resourceId) throws Exception;
public List getNetworkPlaces() throws Exception;
public NetworkPlace getNetworkPlace(int resource_id) throws Exception;
public NetworkPlace deleteNetworkPlace(int resourceId) throws Exception;
public NetworkPlace createNetworkPlace(String scheme, String shortName, String description, String uri, boolean readOnly,
boolean allowResursive, boolean noDelete, boolean showHidden, int parentResourcePermission) throws Exception;
public void updateNetworkPlace(int resourceId, String scheme, String resourceName, String resourceDescription, String uri, boolean readOnly,
boolean allowResursive, boolean noDelete, boolean showHidden, int parentResourcePermission) throws Exception;
public NetworkPlace getNetworkPlace(String name) throws Exception;
public List getReplacementsForContent(String username, int replaceType, String mimeType, String site) throws Exception;
public List getReplacements() throws Exception;
public void updateReplacement(Replacement replacement) throws Exception;
public void deleteReplacement(int sequence) throws Exception;
public Replacement getReplacement(int sequence) throws Exception;
public Replacement createReplacement(Replacement replacement) throws Exception;
public void updateApplicationShortcut(int id, String name, String description, int parentResourcePermission, Map settings)
throws Exception;
public void removeApplicationShortcuts(String applicationId) throws Exception;
public Favorite getFavorite(int type, User user, int favoriteKey) throws Exception;
public List getAuthenticationSchemeSequences() throws Exception;
public AuthenticationSchemeSequence getAuthenticationSchemeSequence(int id) throws Exception;
public AuthenticationSchemeSequence createAuthenticationSchemeSequence(String name, String description, String[] modules, Calendar dateCreated, Calendar dateAmended, boolean enabled) throws Exception;
public void updateAuthenticationSchemeSequence(AuthenticationSchemeSequence sequence) throws Exception;
public void deleteAuthenticationSchemeSequence(int id) throws Exception;
public Tunnel getTunnel(String name) throws Exception;
public ApplicationShortcut getShortcutByName(String name) throws Exception;
public List getWebForwards() throws Exception;
public WebForward getWebForward(String name) throws Exception;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -