001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package coldfusion.server;
020
021import java.util.Date;
022import java.util.Map;
023
024public interface LicenseService extends Service {
025
026        public abstract void setLicenseKey(String arg0);
027
028        public abstract String getLicenseKey();
029
030        public abstract boolean isEntKey(String arg0);
031
032        public abstract boolean isValidKey(String arg0);
033
034        public abstract boolean isValidOldKey(String arg0);
035
036        public abstract boolean isUpgradeKey(String arg0);
037
038        public abstract Map getRequiredKeyInfo(String arg0);
039
040        public abstract void init() throws Exception;
041
042        public abstract boolean isValid();
043
044        public abstract int getMajorVersion();
045
046        public abstract Date getInstallDate();
047
048        public abstract Date getExpirationDate();
049
050        public abstract int getEvalDays();
051
052        public abstract long getEvalDaysLeft();
053
054        public abstract boolean isExpired();
055
056        public abstract String getEdition();
057
058        public abstract boolean isEnterprise();
059
060        public abstract boolean isStandard();
061
062        public abstract boolean isDeveloper();
063
064        public abstract boolean isUpgrade();
065
066        public abstract boolean isReportPack();
067
068        public abstract boolean isEducational();
069
070        public abstract boolean isDevNet();
071
072        public abstract boolean isVolume();
073
074        public abstract Map getProperties();
075
076        public abstract String getOSPlatform();
077
078        public abstract String getAppServerPlatform();
079
080        public abstract String getVendor();
081
082        public abstract int getServerType();
083
084        public abstract long getVerityLimit();
085
086        public abstract boolean allowJSP();
087
088        public abstract boolean allowCFImport();
089
090        public abstract boolean allowSandboxSecurity();
091
092        public abstract int getCPUNumber();
093
094        public abstract boolean isSingleIP();
095
096        public abstract boolean allowAdvMgmt();
097
098        public abstract boolean isValidIP(String arg0);
099
100        public abstract String getAllowedIp();
101
102        public abstract boolean allowFastMail();
103
104        public abstract boolean allowEventService();
105
106        public abstract boolean allowOracleOEM();
107
108        public abstract boolean allowSybaseOEM();
109
110        public abstract boolean allowInformixOEM();
111
112        public abstract boolean allowDB2OEM();
113
114        public abstract boolean isJadoZoomLoaded();
115
116        public abstract void registerWithWatchService();
117
118        public abstract void setEnableWatch(boolean arg0);
119
120}