public class UserResource extends AbstractOpenShiftResource implements IUser
AbstractOpenShiftResource.ServiceRequest
Constructor and Description |
---|
UserResource(APIResource api,
UserResourceDTO dto,
String password) |
Modifier and Type | Method and Description |
---|---|
IDomain |
createDomain(String id) |
void |
deleteKey(String name) |
IOpenShiftConnection |
getConnection() |
int |
getConsumedGears() |
IDomain |
getDefaultDomain() |
IDomain |
getDomain(String id) |
List<IDomain> |
getDomains() |
int |
getMaxGears() |
String |
getPassword() |
String |
getRhlogin() |
String |
getServer() |
IOpenShiftSSHKey |
getSSHKeyByName(String name) |
IOpenShiftSSHKey |
getSSHKeyByPublicKey(String publicKey) |
List<IOpenShiftSSHKey> |
getSSHKeys() |
boolean |
hasDomain() |
boolean |
hasDomain(String id) |
boolean |
hasSSHKeyName(String name) |
boolean |
hasSSHPublicKey(String publicKey) |
IOpenShiftSSHKey |
putSSHKey(String name,
ISSHPublicKey key)
Adds the given ssh key with the given name.
|
void |
refresh()
Refresh the resource and its list of children resources that were previously loaded
|
protected void |
removeSSHKey(SSHKeyResource key) |
areLinksLoaded, getCreationLog, getLink, getService, hasCreationLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCreationLog, hasCreationLog
public UserResource(APIResource api, UserResourceDTO dto, String password)
public IOpenShiftConnection getConnection()
getConnection
in interface IUser
public String getRhlogin()
getRhlogin
in interface IUser
public String getPassword()
getPassword
in interface IUser
public int getMaxGears()
getMaxGears
in interface IUser
public int getConsumedGears()
getConsumedGears
in interface IUser
public IDomain createDomain(String id) throws OpenShiftException
createDomain
in interface IUser
OpenShiftException
public List<IDomain> getDomains() throws OpenShiftException
getDomains
in interface IUser
OpenShiftException
public IDomain getDefaultDomain() throws OpenShiftException
getDefaultDomain
in interface IUser
OpenShiftException
public IDomain getDomain(String id) throws OpenShiftException
getDomain
in interface IUser
OpenShiftException
public boolean hasDomain() throws OpenShiftException
hasDomain
in interface IUser
OpenShiftException
public boolean hasDomain(String id) throws OpenShiftException
hasDomain
in interface IUser
OpenShiftException
public void refresh() throws OpenShiftException
IOpenShiftResource
refresh
in interface IOpenShiftResource
OpenShiftException
public List<IOpenShiftSSHKey> getSSHKeys() throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeys
in interface IUser
OpenShiftUnknonwSSHKeyTypeException
OpenShiftException
public IOpenShiftSSHKey getSSHKeyByName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByName
in interface IUser
OpenShiftUnknonwSSHKeyTypeException
OpenShiftException
public IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByPublicKey
in interface IUser
OpenShiftUnknonwSSHKeyTypeException
OpenShiftException
public boolean hasSSHKeyName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHKeyName
in interface IUser
OpenShiftUnknonwSSHKeyTypeException
OpenShiftException
public boolean hasSSHPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHPublicKey
in interface IUser
OpenShiftUnknonwSSHKeyTypeException
OpenShiftException
public IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException
putSSHKey
in interface IUser
name
- the name to identify the keykey
- the key to addOpenShiftException
protected void removeSSHKey(SSHKeyResource key)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.