1 19 20 package com.sslexplorer.properties; 21 22 import java.util.List ; 23 24 import com.sslexplorer.boot.PropertyDefinition; 25 import com.sslexplorer.core.Database; 26 import com.sslexplorer.properties.attributes.AbstractAttributeKey; 27 import com.sslexplorer.properties.attributes.AttributeDefinition; 28 29 107 108 public interface PropertyDatabase extends Database { 109 110 123 public List <PropertyProfile> getPropertyProfiles(String username, boolean includeGlobal, int realm) throws Exception ; 124 125 140 public String retrieveGenericProperty(String key1, String key2, String key3, String key4, String key5) throws Exception ; 141 142 150 public PropertyProfile getPropertyProfile(int id) throws Exception ; 151 152 167 public void storeGenericProperty(String key1, String key2, String key3, String key4, String key5, String value) throws Exception ; 168 169 180 public PropertyProfile createPropertyProfile(String username, String shortName, String description, int baseOn, int realm) 181 throws Exception ; 182 183 191 public void updatePropertyProfile(int id, String shortName, String description) throws Exception ; 192 193 200 public PropertyProfile deletePropertyProfile(int id) throws Exception ; 201 202 215 public PropertyProfile getPropertyProfile(String username, String name, int realm) throws Exception ; 216 217 218 227 public void storeAttributeValue(AbstractAttributeKey key, String value) throws Exception ; 228 229 235 public void createAttributeDefinition(AttributeDefinition definition) throws Exception ; 236 237 243 public void updateAttributeDefinition(AttributeDefinition definition) throws Exception ; 244 245 252 public void deleteAttributeDefinition(String propertyClassName, String definitionName) throws Exception ; 253 254 262 public String retrieveAttributeValue(AbstractAttributeKey attrKey) throws Exception ; 263 264 } | Popular Tags |