Rev 1776 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1670 | jmachado | 1 | package pt.estgp.estgweb.domain; |
2 | |||
1699 | jmachado | 3 | |
1827 | jmachado | 4 | |
1670 | jmachado | 5 | /** |
6 | * Created by jorgemachado on 09/02/17. |
||
7 | */ |
||
1699 | jmachado | 8 | public class BpmnActorPoolInstanceImpl extends BpmnActorPoolInstance |
9 | { |
||
10 | public boolean hasRole(1.5.0/docs/api/java/lang/String.html">String r) |
||
11 | { |
||
1776 | jmachado | 12 | /*if (r == null ) |
1699 | jmachado | 13 | return false; |
14 | for (DomainRoleProxy role : getDomainRolesProxy().getRoles()) |
||
15 | { |
||
16 | if (role.getRole().equals(r)) |
||
17 | return true; |
||
18 | } |
||
1776 | jmachado | 19 | return false;*/ |
1827 | jmachado | 20 | throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException("Not Implemented"); |
1699 | jmachado | 21 | } |
22 | |||
23 | public void replaceRole(1.5.0/docs/api/java/lang/String.html">String oldRole,1.5.0/docs/api/java/lang/String.html">String newRole) |
||
24 | { |
||
1776 | jmachado | 25 | /* |
1699 | jmachado | 26 | if (oldRole == null || newRole == null || getDomainRolesProxy() == null || getDomainRolesProxy().getRoles() == null || getDomainRolesProxy().getRoles().size() == 0) |
27 | return; |
||
28 | for (DomainRoleProxy role : getDomainRolesProxy().getRoles()) |
||
29 | { |
||
30 | if (role.getRole().equals(oldRole)) |
||
31 | { |
||
32 | role.setRole(newRole); |
||
33 | break; |
||
34 | } |
||
1776 | jmachado | 35 | }*/ |
1699 | jmachado | 36 | } |
1670 | jmachado | 37 | } |