Changeset 3530 in josm for trunk/src/org/openstreetmap/josm/gui/oauth
- Timestamp:
- 2010-09-15T08:21:16+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/oauth
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/AbstractAuthorizationUI.java
r3083 r3530 10 10 /** 11 11 * This is the abstract base class for the three authorisation UIs. 12 * 13 * 12 * 13 * 14 14 */ 15 15 public abstract class AbstractAuthorizationUI extends VerticallyScrollablePanel{ … … 34 34 * Replies the URL of the OSM API for which this UI is currently trying to retrieve an OAuth 35 35 * Access Token 36 * 36 * 37 37 * @return the API URL 38 38 */ … … 44 44 * Sets the URL of the OSM API for which this UI is currently trying to retrieve an OAuth 45 45 * Access Token 46 * 46 * 47 47 * @param apiUrl the api URL 48 48 */ … … 53 53 /** 54 54 * Replies the panel for entering advanced OAuth parameters (see {@see OAuthParameters}) 55 * 55 * 56 56 * @return the panel for entering advanced OAuth parameters 57 57 * @see #getOAuthParameters() … … 63 63 /** 64 64 * Replies the current set of advanced OAuth parameters in this UI 65 * 65 * 66 66 * @return the current set of advanced OAuth parameters in this UI 67 67 */ … … 72 72 /** 73 73 * Replies the retrieved Access Token. null, if no Access Token was retrieved. 74 * 74 * 75 75 * @return the retrieved Access Token 76 76 */ … … 82 82 * Sets the current Access Token. This will fire a property change event for {@see #ACCESS_TOKEN_PROP} 83 83 * if the access token has changed 84 * 84 * 85 85 * @param accessToken the new access token. null, to clear the current access token 86 86 */ … … 99 99 /** 100 100 * Replies true if this UI currently has an Access Token 101 * 101 * 102 102 * @return true if this UI currently has an Access Token 103 103 */ … … 109 109 * Replies whether the user has chosen to save the Access Token in the JOSM 110 110 * preferences or not. 111 * 111 * 112 112 * @return true if the user has chosen to save the Access Token 113 113 */ … … 116 116 /** 117 117 * Initializes the authorisation UI with preference values in <code>pref</code>. 118 * 118 * 119 119 * @param pref the preferences. Must not be null. 120 120 * @throws IllegalArgumentException thrown if pref is null -
trunk/src/org/openstreetmap/josm/gui/oauth/AccessTokenInfoPanel.java
r3083 r3530 18 18 /** 19 19 * Displays the key and the secret of an OAuth Access Token. 20 * 20 * 21 21 */ 22 22 public class AccessTokenInfoPanel extends JPanel { … … 81 81 /** 82 82 * Displays the key and secret in <code>token</code>. 83 * 83 * 84 84 * @param token the access token. If null, the content in the info panel is cleared 85 85 */ -
trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java
r3083 r3530 171 171 /** 172 172 * Replies the OAuth parameters currently edited in this properties panel. 173 * 173 * 174 174 * @return the OAuth parameters 175 175 */ … … 188 188 /** 189 189 * Sets the advanced parameters to be displayed 190 * 190 * 191 191 * @param parameters the advanced parameters. Must not be null. 192 192 * @throws IllegalArgumentException thrown if parameters is null. … … 214 214 /** 215 215 * Initializes the panel from the values in the preferences <code>preferences</code>. 216 * 216 * 217 217 * @param pref the preferences. Must not be null. 218 218 * @throws IllegalArgumentException thrown if pref is null … … 238 238 /** 239 239 * Remembers the current values in the preferences <code>pref</code>. 240 * 240 * 241 241 * @param pref the preferences. Must not be null. 242 242 * @throws IllegalArgumentException thrown if pref is null. -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r3083 r3530 52 52 * This is an UI which supports a JOSM user to get an OAuth Access Token in a fully 53 53 * automatic process. 54 * 54 * 55 55 */ 56 56 public class FullyAutomaticAuthorizationUI extends AbstractAuthorizationUI { … … 68 68 /** 69 69 * Builds the panel with the three privileges the user can grant JOSM 70 * 70 * 71 71 * @return 72 72 */ … … 78 78 /** 79 79 * Builds the panel for entering the username and password 80 * 80 * 81 81 * @return 82 82 */ … … 203 203 /** 204 204 * Builds the panel with the action button for starting the authorisation 205 * 205 * 206 206 * @return 207 207 */ … … 218 218 /** 219 219 * Builds the panel which displays the generated Access Token. 220 * 220 * 221 221 * @return 222 222 */ … … 274 274 * Prepares the UI for the first step in the automatic process: entering the authentication 275 275 * and authorisation parameters. 276 * 276 * 277 277 */ 278 278 protected void prepareUIForEnteringRequest() { … … 290 290 /** 291 291 * Prepares the UI for the second step in the automatic process: displaying the access token 292 * 292 * 293 293 */ 294 294 protected void prepareUIForResultDisplay() { -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmPrivilegesPanel.java
r3083 r3530 85 85 /** 86 86 * Replies the currently entered privileges 87 * 87 * 88 88 * @return the privileges 89 89 */ -
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveAccessTokenTask.java
r3083 r3530 21 21 /** 22 22 * Asynchronous task for retrieving an Access Token. 23 * 23 * 24 24 */ 25 25 public class RetrieveAccessTokenTask extends PleaseWaitRunnable { … … 34 34 /** 35 35 * Creates the task 36 * 36 * 37 37 * @param parent the parent component relative to which the {@see PleaseWaitRunnable}-Dialog 38 38 * is displayed … … 99 99 /** 100 100 * Replies true if the task was canceled. 101 * 101 * 102 102 * @return 103 103 */ … … 108 108 /** 109 109 * Replies the retrieved Access Token. null, if something went wrong. 110 * 110 * 111 111 * @return the retrieved Access Token 112 112 */ -
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java
r3083 r3530 32 32 /** 33 33 * Creates the task 34 * 34 * 35 35 * @param parent the parent component relative to which the {@see PleaseWaitRunnable}-Dialog 36 36 * is displayed … … 93 93 /** 94 94 * Replies true if the task was canceled 95 * 95 * 96 96 * @return true if the task was canceled 97 97 */ … … 102 102 /** 103 103 * Replies the request token. null, if something went wrong. 104 * 104 * 105 105 * @return the request token 106 106 */ -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r3083 r3530 34 34 /** 35 35 * This is the UI for running a semic-automic authorisation procedure. 36 * 36 * 37 37 * In contrast to the fully-automatic procedure the user is dispatched to an 38 38 * external browser for login and authorisation. -
trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java
r3083 r3530 35 35 /** 36 36 * Checks whether an OSM API server can be accessed with a specific Access Token. 37 * 37 * 38 38 * It retrieves the user details for the user which is authorized to access the server with 39 39 * this token. 40 * 40 * 41 41 */ 42 42 public class TestAccessTokenTask extends PleaseWaitRunnable { … … 50 50 /** 51 51 * Create the task 52 * 52 * 53 53 * @param parent the parent component relative to which the {@see PleaseWaitRunnable}-Dialog is displayed 54 54 * @param apiUrl the API URL. Must not be null.
Note:
See TracChangeset
for help on using the changeset viewer.