1 17 package org.alfresco.repo.security.permissions.impl; 18 19 import org.alfresco.repo.security.permissions.PermissionReference; 20 import org.alfresco.service.cmr.repository.NodeRef; 21 import org.alfresco.service.cmr.security.AccessStatus; 22 23 28 public final class SimplePermissionEntry extends AbstractPermissionEntry 29 { 30 31 34 private NodeRef nodeRef; 35 36 39 private PermissionReference permissionReference; 40 41 44 private String authority; 45 46 49 private AccessStatus accessStatus; 50 51 52 53 public SimplePermissionEntry(NodeRef nodeRef, PermissionReference permissionReference, String authority, AccessStatus accessStatus) 54 { 55 super(); 56 this.nodeRef = nodeRef; 57 this.permissionReference = permissionReference; 58 this.authority = authority; 59 this.accessStatus = accessStatus; 60 } 61 62 public PermissionReference getPermissionReference() 63 { 64 return permissionReference; 65 } 66 67 public String getAuthority() 68 { 69 return authority; 70 } 71 72 public NodeRef getNodeRef() 73 { 74 return nodeRef; 75 } 76 77 public boolean isDenied() 78 { 79 return accessStatus == AccessStatus.DENIED; 80 } 81 82 public boolean isAllowed() 83 { 84 return accessStatus == AccessStatus.ALLOWED; 85 } 86 87 public AccessStatus getAccessStatus() 88 { 89 return accessStatus; 90 } 91 92 } 93 | Popular Tags |