Subversion Repositories bacoAlunos

Rev

Rev 1776 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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