1 16 17 package org.apache.jetspeed.services.security.nosecurity; 18 19 import javax.servlet.ServletConfig ; 21 22 import org.apache.jetspeed.om.profile.Entry; 24 import org.apache.jetspeed.om.security.JetspeedUser; 25 import org.apache.jetspeed.portal.Portlet; 26 import org.apache.jetspeed.services.security.PortalAccessController; 27 import org.apache.jetspeed.services.security.PortalResource; 28 29 import org.apache.turbine.services.TurbineBaseService; 31 import org.apache.turbine.services.InitializationException; 32 33 41 public class NoSecurityAccessController extends TurbineBaseService 42 implements PortalAccessController 43 { 44 45 56 final public boolean checkPermission(JetspeedUser user, Portlet portlet, String action) 57 { 58 return checkPermission(user, portlet, action, null); 59 } 60 61 73 final public boolean checkPermission(JetspeedUser user, Portlet portlet, String action, String owner) 74 { 75 return true; 76 } 77 78 89 final public boolean checkPermission(JetspeedUser user, Entry entry, String action) 90 { 91 return checkPermission(user, entry, action, null); 92 } 93 94 95 107 final public boolean checkPermission(JetspeedUser user, Entry entry, String action, String owner) 108 { 109 return true; 110 } 111 112 113 124 final public boolean checkPermission(JetspeedUser user, PortalResource resource, String action) 125 { 126 return true; 127 } 128 129 130 131 134 135 142 public synchronized void init(ServletConfig conf) 143 throws InitializationException 144 { 145 if (getInit()) 146 { 147 return; 148 } 149 150 super.init(conf); 151 152 setInit(true); 153 } 154 155 } 156 157 | Popular Tags |