Change symblink to moootols

Add editor issue.
This commit is contained in:
Paulo Gustavo Veiga
2012-04-02 14:11:28 -03:00
parent 9f0557b851
commit f52f01a6b1
24 changed files with 411 additions and 599 deletions

View File

@@ -23,25 +23,23 @@ import org.aopalliance.intercept.MethodInvocation;
import com.wisemapping.model.UserRole;
import com.wisemapping.model.User;
import com.wisemapping.model.MindMap;
import org.jetbrains.annotations.NotNull;
public class ViewBaseSecurityAdvise
extends BaseSecurityAdvice
implements MethodInterceptor
{
implements MethodInterceptor {
private UserRole grantedRole = UserRole.VIEWER;
public Object invoke(MethodInvocation methodInvocation) throws Throwable {
public Object invoke(@NotNull MethodInvocation methodInvocation) throws Throwable {
checkRole(methodInvocation);
return methodInvocation.proceed();
}
protected boolean isAllowed(User user, MindMap map)
{
return getMindmapService().isAllowedToView(user,map,grantedRole);
protected boolean isAllowed(User user, MindMap map) {
return getMindmapService().isAllowedToView(user, map, grantedRole);
}
protected boolean isAllowed(User user, int mapId)
{
return getMindmapService().isAllowedToView(user,mapId,grantedRole);
}
protected boolean isAllowed(User user, int mapId) {
return getMindmapService().isAllowedToView(user, mapId, grantedRole);
}
}