1 package de.webman.acl; 2 3 import com.teamkonzept.lib.ConfigurationListener; 4 import com.teamkonzept.lib.TKException; 5 import com.teamkonzept.lib.TKVector; 6 import de.webman.acl.db.ObjectDBData; 7 8 15 public interface ObjectFactory 16 extends ConfigurationListener 17 { 18 19 21 23 26 String PROPERTY_GROUP_NAME = "Access Control Definition"; 27 28 31 String PROPERTY_CACHE_LOADED_OBJECTS = "cacheLoadedObjects"; 32 33 36 String PROPERTY_DEFER_ASSOCIATION_LOADING = "deferAssociationLoading"; 37 38 41 String PROPERTY_PRE_LOAD_OBJECTS = "preLoadObjects"; 42 43 46 String PROPERTY_VALID_LOGINS = "validLogins"; 47 48 51 String DEFAULT_CACHE_LOADED_OBJECTS = "true"; 52 53 56 String DEFAULT_DEFER_ASSOCIATION_LOADING = "true"; 57 58 61 String DEFAULT_PRE_LOAD_OBJECTS = "false"; 62 63 66 String DEFAULT_VALID_LOGINS = "[\\w-]{6,8}"; 67 68 69 71 78 WMObject getObject (Integer id) 79 throws TKException; 80 81 87 TKVector getObjects () 88 throws TKException; 89 90 97 TKVector getObjects (TKVector ids) 98 throws TKException; 99 100 106 TKVector getObjectIDs () 107 throws TKException; 108 109 116 TKVector getObjectIDs (ObjectDBData data) 117 throws TKException; 118 119 126 TKVector getObjectAssociations (WMObject object) 127 throws TKException; 128 129 136 WMObject createObject (ObjectDBData data) 137 throws TKException; 138 139 145 void modifyObject (WMObject object) 146 throws TKException; 147 148 154 void deleteObject (WMObject object) 155 throws TKException; 156 157 } 158 | Popular Tags |