1 4 package org.objectweb.speedo.pobjects.cap; 5 6 7 10 public class JDORoleHasAction { 11 12 private int roleId; 13 14 private int actionId; 15 16 17 private JDORole role; 18 19 20 private JDOAction action; 21 22 23 private boolean isDisplayedInMenu; 24 25 26 private int displayOrder; 27 28 35 public JDORoleHasAction( 36 JDORole role, 37 JDOAction action, 38 boolean isDisplayedInMenu, 39 int displayOrder) 40 { 41 this.roleId = role.getId(); 42 this.actionId = action.getId(); 43 this.role = role; 44 this.action = action; 45 this.isDisplayedInMenu = isDisplayedInMenu; 46 this.displayOrder = displayOrder; 47 } 48 49 50 public int getActionId() { 51 return actionId; 52 } 53 public void setActionId(int actionId) { 54 this.actionId = actionId; 55 } 56 public int getRoleId() { 57 return roleId; 58 } 59 public void setRoleId(int roleId) { 60 this.roleId = roleId; 61 } 62 66 public JDORole getRole() 67 { 68 return role; 69 } 70 71 75 public void setRole(JDORole role) 76 { 77 this.role = role; 78 } 79 80 84 public JDOAction getAction() 85 { 86 return action; 87 } 88 89 93 public void setAction(JDOAction action) 94 { 95 this.action = action; 96 } 97 98 102 public int getDisplayOrder() 103 { 104 return displayOrder; 105 } 106 107 111 public void setDisplayOrder(int displayOrder) 112 { 113 this.displayOrder = displayOrder; 114 } 115 116 120 public boolean isDisplayedInMenu() 121 { 122 return isDisplayedInMenu; 123 } 124 125 129 public void setDisplayedInMenu(boolean isDisplayedInMenu) 130 { 131 this.isDisplayedInMenu = isDisplayedInMenu; 132 } 133 134 } | Popular Tags |