1 23 24 package org.apache.slide.common; 25 26 import java.util.Enumeration ; 27 import java.util.List ; 28 import org.apache.slide.authenticate.CredentialsToken; 29 import org.apache.slide.store.ResourceId; 30 import org.apache.slide.structure.ActionNode; 31 import org.apache.slide.structure.ObjectNode; 32 import org.apache.slide.structure.SubjectNode; 33 34 58 public interface SlideToken { 59 60 61 62 63 65 66 71 public CredentialsToken getCredentialsToken(); 72 73 74 77 public void setCredentialsToken(CredentialsToken credentialsToken); 78 79 80 85 public CacheInfoToken getCacheInfoToken() ; 86 87 88 91 public void setCacheInfoToken(CacheInfoToken cacheInfoToken) ; 92 93 94 99 public boolean isEnforceLockTokens() ; 100 101 102 107 public void setEnforceLockTokens(boolean enforceLockTokens) ; 108 109 110 117 public boolean isForceStoreEnlistment() ; 118 119 129 public void setForceStoreEnlistment(boolean forceStoreEnlistment) ; 130 131 132 137 public void addLockToken(String lockId) ; 138 139 140 145 public void removeLockToken(String lockId) ; 146 147 148 151 public void clearLockTokens() ; 152 153 156 public List showLockTokens(); 157 158 164 public boolean checkLockToken(String lockToken) ; 165 166 167 173 public void addParameter(String parameterName, Object parameterValue) ; 174 175 176 181 public void removeParameter(String parameterName) ; 182 183 184 187 public void clearParameters() ; 188 189 190 193 public Enumeration getParameterNames() ; 194 195 200 public Object getParameter(String name); 201 202 205 public void cachePermission(ObjectNode object, ActionNode action, boolean permission); 206 207 213 public Boolean checkPermissionCache(ObjectNode object, ActionNode action); 214 215 216 222 public boolean isForceSecurity(); 223 224 public void setForceSecurity(boolean forceSecurity); 225 226 229 public void cacheLock(ObjectNode object, ActionNode action, boolean lock); 230 231 237 public Boolean checkLockCache(ObjectNode object, ActionNode action); 238 239 242 public void cacheResolve(Uri uri, ResourceId resourceId); 243 244 247 public void cacheMatchPrincipal(SubjectNode checkSubject, SubjectNode matchSubject, boolean match); 248 249 253 public Boolean checkMatchPrincipalCache(SubjectNode checkSubject, SubjectNode matchSubject); 254 255 259 public ResourceId checkResolveCache(Uri uri); 260 261 267 public boolean isForceLock(); 268 269 public void setForceLock(boolean forceLock); 270 271 274 public boolean isExternalTransaction(); 275 276 279 public void setExternalTx(); 280 } 281 282 | Popular Tags |