1 16 package org.apache.cocoon.components.source.helpers; 17 18 24 public class PrincipalSourcePermission extends AbstractSourcePermission { 25 26 public final static String PRINCIPAL_SELF = "SELF"; 27 public final static String PRINCIPAL_ALL = "ALL"; 28 public final static String PRINCIPAL_GUEST = "GUEST"; 29 30 private String principal; 31 32 40 public PrincipalSourcePermission(String principal, String privilege, 41 boolean inheritable, boolean negative) { 42 43 this.principal = principal; 44 setPrivilege(privilege); 45 setInheritable(inheritable); 46 setNegative(negative); 47 } 48 49 54 public void setPrincipal(String principal) { 55 this.principal = principal; 56 } 57 58 63 public String getPrincipal() { 64 return this.principal; 65 } 66 } 67 | Popular Tags |