Subversion Repositories bacoAlunos

Rev

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