View Javadoc
1   
2   package fr.paris.lutece.plugins.appcenter.modules.openam.business;
3   
4   import fr.paris.lutece.plugins.appcenter.business.ApplicationData;
5   import org.hibernate.validator.constraints.NotEmpty;
6   
7   import fr.paris.lutece.plugins.appcenter.business.Environment;
8   
9   /**
10   * This is the business class for the object OpenamAgentData
11   */ 
12  public class OpenamAgentData extends ApplicationData {
13  	
14  	
15  	 @NotEmpty( message = "#i18n{module.appcenter.openam.validation.agentName.notEmpty}" )
16  	private String _strName;
17  	 @NotEmpty( message = "#i18n{module.appcenter.openam.validation.agentPassword.notEmpty}" )
18  	private String _strPassword;
19  	 @NotEmpty( message = "#i18n{module.appcenter.openam.validation.serverUrl.notEmpty}" )
20  	private String _strServerUrl;
21  	 @NotEmpty( message = "#i18n{module.appcenter.openam.validation.agentUrl.notEmpty}" )
22  	private String _strAgentUrl;
23      private boolean _bG98SettingNeeded;
24      private boolean _bCreateAgent=true;
25  
26  	/**
27  	 * 
28  	 * @return
29  	 */
30  	public String getName() {
31  		return _strName;
32  	}
33  	
34  	/**
35  	 * 
36  	 * @param _strName
37  	 */
38  	public void setName(String _strName) {
39  		this._strName = _strName;
40  	}
41  	
42  	/**
43  	 * 
44  	 * @return
45  	 */
46  	public String getPassword() {
47  		return _strPassword;
48  	}
49  	/**
50  	 * 
51  	 * @param _strPassword
52  	 */
53  	public void setPassword(String _strPassword) {
54  		this._strPassword = _strPassword;
55  	}
56  	/**
57  	 * 
58  	 * @return
59  	 */
60  	public String getServerUrl() {
61  		return _strServerUrl;
62  	}
63  	/**
64  	 * 
65  	 * @param _strServerUrl
66  	 */
67  	public void setServerUrl(String _strServerUrl) {
68  		this._strServerUrl = _strServerUrl;
69  	}
70  	/**
71  	 * 
72  	 * @return
73  	 */
74  	public String getAgentUrl() {
75  		return _strAgentUrl;
76  	}
77  	/**
78  	 * 
79  	 * @param _strAgentUrl
80  	 */
81  	public void setAgentUrl(String _strAgentUrl) {
82  		this._strAgentUrl = _strAgentUrl;
83  	}
84  
85      /**
86       * Returns a boolean describing whether a G98 setting is needed or not
87       *
88       * @return True if a G98 setting is needed
89       */
90      public boolean getG98SettingNeeded( )
91      {
92          return _bG98SettingNeeded;
93      }
94  
95      /**
96       * Sets a boolean describing whether a G98 setting is needed or not
97       *
98       * @param bG98SettingNeeded
99       *            True if a G98 setting is needed
100      */
101     public void setG98SettingNeeded( boolean bG98SettingNeeded )
102     {
103         _bG98SettingNeeded = bG98SettingNeeded;
104     }
105     /**
106      * Returns a boolean 
107      * @return boolean
108      */
109     public boolean getCreateAgent( )
110     {
111         return _bCreateAgent;
112     }
113 
114   /**
115    * Sets a boolean Create Agent
116    * @param bCreateAgent
117    */
118     public void setCreateAgent( boolean bCreateAgent )
119     {
120     	_bCreateAgent = bCreateAgent;
121     }
122 }