1 17 package org.alfresco.filesys.server.auth.acl; 18 19 import org.alfresco.config.ConfigElement; 20 21 24 public class DomainAccessControlParser extends AccessControlParser 25 { 26 27 30 public DomainAccessControlParser() 31 { 32 } 33 34 39 public String getType() 40 { 41 return "domain"; 42 } 43 44 51 public AccessControl createAccessControl(ConfigElement params) throws ACLParseException 52 { 53 54 56 int access = parseAccessType(params); 57 58 60 String domainName = params.getAttribute("name"); 61 if (domainName == null || domainName.length() == 0) 62 throw new ACLParseException("Domain name not specified"); 63 64 66 return new DomainAccessControl(domainName, getType(), access); 67 } 68 } 69 | Popular Tags |