1 16 17 package org.apache.jetspeed.services.security; 18 19 import java.util.List ; 20 21 import org.apache.jetspeed.om.security.JetspeedUser; 22 import org.apache.jetspeed.portal.Portlet; 23 import org.apache.jetspeed.services.rundata.JetspeedRunData; 24 import org.apache.turbine.om.security.User; 25 import org.apache.turbine.services.Service; 26 27 36 37 38 public interface JetspeedSecurityService extends Service 39 { 40 41 public String SERVICE_NAME = "JetspeedSecurity"; 42 43 51 61 public JetspeedUser getUserInstance(); 62 63 64 72 89 public String convertUserName(String username); 90 91 108 public String convertPassword(String password); 109 110 137 public boolean checkDisableAccount(String username); 138 139 152 public boolean isDisableAccountCheckEnabled(); 153 154 167 public void resetDisableAccountCheck(String username); 168 169 170 176 177 194 195 public JetspeedUser getUser(String username) 196 throws JetspeedSecurityException; 197 198 199 211 public boolean checkPermission(JetspeedRunData runData, String action, Portlet portlet); 212 213 225 227 235 public boolean areActionsDisabledForAnon(); 236 237 245 public boolean areActionsDisabledForAllUsers(); 246 247 248 255 public String getAnonymousUserName(); 256 257 262 public List getAdminRoles(); 263 264 269 public boolean hasAdminRole(User user); 270 271 } 272 273 | Popular Tags |