public AclTableModel(final Permission permission) {
super();
final Object[][] aces;
if(permission instanceof ACLPermission) {
final ACLPermission aclPermission = (ACLPermission)permission;
aces = new Object[aclPermission.getACECount()][6];
for(int i = 0; i < aclPermission.getACECount(); i++) {
aces[i] = new Object[]{
aclPermission.getACETarget(i).toString(),
aclPermission.getACEWho(i),
aclPermission.getACEAccessType(i).toString(),
(aclPermission.getACEMode(i) & Permission.READ) == Permission.READ,
(aclPermission.getACEMode(i) & Permission.WRITE) == Permission.WRITE,
(aclPermission.getACEMode(i) & Permission.EXECUTE) == Permission.EXECUTE,
};
}
} else {
aces = new Object[0][6];
}