src/Entity/Idempiere/AdRole.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\AdRoleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=AdRoleRepository::class)
  9. * @ORM\Table(name="AD_Role")
  10. */
  11. class AdRole
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="integer")
  16. */
  17. private $ad_role_id;
  18. /**
  19. * @ORM\Column(type="string", length=100)
  20. */
  21. private $name;
  22. /**
  23. * @ORM\Column(type="string", length=1)
  24. */
  25. private $ismasterrole;
  26. /**
  27. * @ORM\Column(type="string", length=1)
  28. */
  29. private $isactive;
  30. /**
  31. * @ORM\Column(type="string", length=1)
  32. */
  33. private $isaccessallorgs;
  34. /**
  35. * @ORM\Column(type="string", length=1)
  36. */
  37. private $isuseuserorgaccess;
  38. /**
  39. * @ORM\Column(type="string", length=1)
  40. */
  41. private $iscanexport;
  42. /**
  43. * @ORM\Column(type="string", length=1)
  44. */
  45. private $ischangelog;
  46. /**
  47. * @ORM\Column(type="string", length=1)
  48. */
  49. private $isshowacct;
  50. /**
  51. * @ORM\Column(type="string", length=1)
  52. */
  53. private $allow_info_account;
  54. /**
  55. * @ORM\Column(type="integer", nullable=true)
  56. */
  57. private $c_currency_id;
  58. /**
  59. * @ORM\Column(type="string", length=1)
  60. */
  61. private $iscanapproveowndoc;
  62. /**
  63. * @ORM\OneToMany(targetEntity=AdRoleIncluded::class, mappedBy="ad_role")
  64. */
  65. private $adRoleIncludeds;
  66. /**
  67. * @ORM\OneToMany(targetEntity=AdUserRoles::class, mappedBy="ad_role")
  68. */
  69. private $ad_user_roles;
  70. /**
  71. * @ORM\OneToMany(targetEntity=AdRoleOrgaccess::class, mappedBy="ad_role")
  72. */
  73. private $ad_role_orgaccesses;
  74. public function __construct()
  75. {
  76. $this->adRoleIncludeds = new ArrayCollection();
  77. $this->ad_user_roles = new ArrayCollection();
  78. $this->ad_role_orgaccesses = new ArrayCollection();
  79. }
  80. public function getId(): ?int
  81. {
  82. return $this->getAdRoleId();
  83. }
  84. public function getAdRoleId(): ?int
  85. {
  86. return $this->ad_role_id;
  87. }
  88. public function setAdRoleId(int $ad_role_id): self
  89. {
  90. $this->ad_role_id = $ad_role_id;
  91. return $this;
  92. }
  93. public function getName(): ?string
  94. {
  95. return $this->name;
  96. }
  97. public function setName(string $name): self
  98. {
  99. $this->name = $name;
  100. return $this;
  101. }
  102. public function getIsmasterrole(): ?string
  103. {
  104. return $this->ismasterrole;
  105. }
  106. public function setIsmasterrole(string $ismasterrole): self
  107. {
  108. $this->ismasterrole = $ismasterrole;
  109. return $this;
  110. }
  111. public function getIsactive(): ?string
  112. {
  113. return $this->isactive;
  114. }
  115. public function setIsactive(string $isactive): self
  116. {
  117. $this->isactive = $isactive;
  118. return $this;
  119. }
  120. public function getIsAccessAllOrgs(): ?string
  121. {
  122. return $this->isaccessallorgs;
  123. }
  124. public function setIsAccessAllOrgs(string $IsAccessAllOrgs): self
  125. {
  126. $this->isaccessallorgs = $IsAccessAllOrgs;
  127. return $this;
  128. }
  129. public function isAccessAllOrgs(): ?bool
  130. {
  131. return $this->getIsAccessAllOrgs() === "Y";
  132. }
  133. public function getIsUseUserOrgAccess(): ?string
  134. {
  135. return $this->isuseuserorgaccess;
  136. }
  137. public function setIsUseUserOrgAccesss(string $IsUseUserOrgAccesss): self
  138. {
  139. $this->isuseuserorgaccess = $IsUseUserOrgAccesss;
  140. return $this;
  141. }
  142. public function isUseUserOrgAccess(): ?bool
  143. {
  144. return $this->getIsUseUserOrgAccess() === "Y";
  145. }
  146. public function getIscanexport(): ?string
  147. {
  148. return $this->iscanexport;
  149. }
  150. public function setIscanexport(string $iscanexport): self
  151. {
  152. $this->iscanexport = $iscanexport;
  153. return $this;
  154. }
  155. public function getIschangelog(): ?string
  156. {
  157. return $this->ischangelog;
  158. }
  159. public function setIschangelog(string $ischangelog): self
  160. {
  161. $this->ischangelog = $ischangelog;
  162. return $this;
  163. }
  164. public function getIsshowacct(): ?string
  165. {
  166. return $this->isshowacct;
  167. }
  168. public function setIsshowacct(string $isshowacct): self
  169. {
  170. $this->isshowacct = $isshowacct;
  171. return $this;
  172. }
  173. public function getAllowInfoAccount(): ?string
  174. {
  175. return $this->allow_info_account;
  176. }
  177. public function setAllowInfoAccount(string $allow_info_account): self
  178. {
  179. $this->allow_info_account = $allow_info_account;
  180. return $this;
  181. }
  182. public function getCCurrencyId(): ?int
  183. {
  184. return $this->c_currency_id;
  185. }
  186. public function setCCurrencyId(?int $c_currency_id): self
  187. {
  188. $this->c_currency_id = $c_currency_id;
  189. return $this;
  190. }
  191. public function getIscanapproveowndoc(): ?string
  192. {
  193. return $this->iscanapproveowndoc;
  194. }
  195. public function setIscanapproveowndoc(string $iscanapproveowndoc): self
  196. {
  197. $this->iscanapproveowndoc = $iscanapproveowndoc;
  198. return $this;
  199. }
  200. /**
  201. * @return Collection|AdRoleIncluded[]
  202. */
  203. public function getAdRoleIncludeds(): Collection
  204. {
  205. return $this->adRoleIncludeds;
  206. }
  207. public function addAdRoleIncluded(AdRoleIncluded $adRoleIncluded): self
  208. {
  209. if (!$this->adRoleIncludeds->contains($adRoleIncluded)) {
  210. $this->adRoleIncludeds[] = $adRoleIncluded;
  211. $adRoleIncluded->setAdRole($this);
  212. }
  213. return $this;
  214. }
  215. public function removeAdRoleIncluded(AdRoleIncluded $adRoleIncluded): self
  216. {
  217. if ($this->adRoleIncludeds->removeElement($adRoleIncluded)) {
  218. // set the owning side to null (unless already changed)
  219. if ($adRoleIncluded->getAdRole() === $this) {
  220. $adRoleIncluded->setAdRole(null);
  221. }
  222. }
  223. return $this;
  224. }
  225. /**
  226. * @return Collection<int, AdUserRoles>
  227. */
  228. public function getAdUserRoles(): Collection
  229. {
  230. return $this->ad_user_roles;
  231. }
  232. public function addAdUserRole(AdUserRoles $adUserRole): self
  233. {
  234. if (!$this->ad_user_roles->contains($adUserRole)) {
  235. $this->ad_user_roles[] = $adUserRole;
  236. $adUserRole->setAdRole($this);
  237. }
  238. return $this;
  239. }
  240. public function removeAdUserRole(AdUserRoles $adUserRole): self
  241. {
  242. if ($this->ad_user_roles->removeElement($adUserRole)) {
  243. // set the owning side to null (unless already changed)
  244. if ($adUserRole->getAdRole() === $this) {
  245. $adUserRole->setAdRole(null);
  246. }
  247. }
  248. return $this;
  249. }
  250. /**
  251. * @return Collection<int, AdRoleOrgaccess>
  252. */
  253. public function getAdRoleOrgaccesses(): Collection
  254. {
  255. return $this->ad_role_orgaccesses;
  256. }
  257. public function addAdRoleOrgaccess(AdRoleOrgaccess $adRoleOrgaccess): self
  258. {
  259. if (!$this->ad_role_orgaccesses->contains($adRoleOrgaccess)) {
  260. $this->ad_role_orgaccesses[] = $adRoleOrgaccess;
  261. $adRoleOrgaccess->setAdRole($this);
  262. }
  263. return $this;
  264. }
  265. public function removeAdRoleOrgaccess(AdRoleOrgaccess $adRoleOrgaccess): self
  266. {
  267. if ($this->ad_role_orgaccesses->removeElement($adRoleOrgaccess)) {
  268. // set the owning side to null (unless already changed)
  269. if ($adRoleOrgaccess->getAdRole() === $this) {
  270. $adRoleOrgaccess->setAdRole(null);
  271. }
  272. }
  273. return $this;
  274. }
  275. }