1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.rice.kew.web;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  public class AuthorizationResult {
22  
23  	private boolean authorized;
24  	private List<String> messages;
25  
26  	public AuthorizationResult(boolean authorized, List<String> messages) {
27  		this.authorized = authorized;
28  		this.messages = messages;
29  	}
30  
31  	public AuthorizationResult(boolean authorized) {
32  		this(authorized, new ArrayList<String>());
33  	}
34  
35  	public AuthorizationResult(boolean authorized, String message) {
36  		this(authorized);
37  		getMessages().add(message);
38  	}
39  
40  	public boolean isAuthorized() {
41  		return authorized;
42  	}
43  
44  	public List<String> getMessages() {
45  		return messages;
46  	}
47  
48  }