public class PluginRepositoryConnection
extends java.lang.Object
| Constructor and Description |
|---|
PluginRepositoryConnection(java.lang.String type,
java.lang.String userId,
java.lang.String userDisplayName)
Constructs the connection
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
getOnConnectedJSON()
Returns a JSONObject instance that will be returned on connection to the repository.
|
java.lang.String |
getType()
Returns the type of repository associated with this connection.
|
java.lang.String |
getUserDisplayName()
Returns the user display name for this connection.
|
java.lang.String |
getUserId()
Returns the user identifier for this connection.
|
boolean |
hasAdminAccess()
Determines if the user has admin access to the desktop
|
void |
setHasAdminAccess(boolean hasAdminAccess)
Sets if the user has admin access to the desktop
|
public PluginRepositoryConnection(java.lang.String type,
java.lang.String userId,
java.lang.String userDisplayName)
type - the type of the connection (should be the same as used on PluginRepositoryType.getId.userId - the user identifieruserDisplayName - the display version of the user name, if any. If there is no user display name, use the same string as
userId.public java.lang.String getType()
public java.lang.String getUserId()
public java.lang.String getUserDisplayName()
public JSONObject getOnConnectedJSON()
public boolean hasAdminAccess()
public void setHasAdminAccess(boolean hasAdminAccess)
hasAdminAccess -