Subversion Repositories bacoAlunos

Rev

Rev 1776 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1653 jmachado 1
package pt.estgp.estgweb.domain;
2
 
1699 jmachado 3
 
1653 jmachado 4
/**
5
 * Created by jorgemachado on 03/02/17.
6
 */
1699 jmachado 7
public class BpmnActorPoolImpl extends BpmnActorPool
8
{
9
    public boolean hasRole(1.5.0/docs/api/java/lang/String.html">String r)
10
    {
1776 jmachado 11
        /*
1775 jmachado 12
        if (r == null || getSelectorRole() == null || getSelectorRole().getRoles() == null || getSelectorRole().getRoles().size() == 0)
1699 jmachado 13
            return false;
1775 jmachado 14
        for (DomainRoleProxy role : getSelectorRole().getRoles())
1699 jmachado 15
        {
16
            if (role.getRole().equals(r))
17
                return true;
18
        }
19
        return false;
1776 jmachado 20
        */
1827 jmachado 21
        throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException("Not Implemented");
1699 jmachado 22
    }
23
 
24
    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)
25
    {
1776 jmachado 26
        /*
1775 jmachado 27
        if (oldRole == null || newRole == null || getSelectorRole() == null || getSelectorRole().getRoles() == null || getSelectorRole().getRoles().size() == 0)
1699 jmachado 28
            return;
1775 jmachado 29
        for (DomainRoleProxy role : getSelectorRole().getRoles())
1699 jmachado 30
        {
31
            if (role.getRole().equals(oldRole))
32
            {
33
                role.setRole(newRole);
34
                break;
35
            }
36
        }
1776 jmachado 37
        */
1827 jmachado 38
        throw new 1.5.0/docs/api/java/lang/RuntimeException.html">RuntimeException("Not Implemented");
1699 jmachado 39
    }
40
 
41
 
1653 jmachado 42
}