1 17 package org.alfresco.filesys.server.auth.acl; 18 19 import org.alfresco.config.ConfigElement; 20 21 24 public class UserAccessControlParser extends AccessControlParser 25 { 26 29 public UserAccessControlParser() 30 { 31 } 32 33 38 public String getType() 39 { 40 return "user"; 41 } 42 43 50 public AccessControl createAccessControl(ConfigElement params) throws ACLParseException 51 { 52 53 55 int access = parseAccessType(params); 56 57 59 String userName = params.getAttribute("name"); 60 if (userName == null || userName.length() == 0) 61 throw new ACLParseException("User name not specified"); 62 63 65 return new UserAccessControl(userName, getType(), access); 66 } 67 } 68 | Popular Tags |