| Constructor and Description |
|---|
Root() |
| Modifier and Type | Method and Description |
|---|---|
List<Acl> |
getAcl() |
abstract DirContent |
getDirContent(String fullPath) |
String |
getName() |
static String |
getPathPart(String fullPath)
Return the part of a full path without the prefix indicating the root
|
AclAccess |
getRequestUserHighestAccessLevel(javax.servlet.http.HttpServletRequest request) |
List<RoleAccess> |
getRoleAccessList()
Geeft een List van roles met bijbehorende hoogste access level om te
gebruiken met HttpServletRequest om het hoogste access level van een
ingelogde gebruiker te bepalen als volgt:
AclAccess highestAccess = AclAccess.NONE;
if(request.getUserPrincipal() !
|
static Root |
getRootForPath(String fullPath) |
static Root |
getRootForPath(String fullPath,
javax.servlet.http.HttpServletRequest request,
AclAccess minimumAccessLevel) |
static String |
getRootPart(String fullPath) |
boolean |
isRequestUserAuthorizedFor(javax.servlet.http.HttpServletRequest request,
AclAccess minimumAccessLevel) |
void |
setAcl(List<Acl> acl) |
void |
setName(String name) |
public static final String SEPARATOR
public String getName()
public void setName(String name)
public List<RoleAccess> getRoleAccessList()
AclAccess highestAccess = AclAccess.NONE;
if(request.getUserPrincipal() != null) {
for(RoleAccess ra: root.getRoleAccessList()) {
if("*".equals(ra.getRole() || request.isUserInRole(ra.getRole()) {
highestAccess = ra.getAccess();
break;
}
}
}
public boolean isRequestUserAuthorizedFor(javax.servlet.http.HttpServletRequest request,
AclAccess minimumAccessLevel)
public AclAccess getRequestUserHighestAccessLevel(javax.servlet.http.HttpServletRequest request)
public abstract DirContent getDirContent(String fullPath) throws Exception
Exceptionpublic static String getPathPart(String fullPath)
fullPath - full path request parameterpublic static Root getRootForPath(String fullPath) throws B3PCatalogException
B3PCatalogExceptionpublic static Root getRootForPath(String fullPath, javax.servlet.http.HttpServletRequest request, AclAccess minimumAccessLevel) throws B3PCatalogException
B3PCatalogExceptionCopyright © 2015. All rights reserved.