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, hasCreationLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCreationLog, hasCreationLogpublic UserResource(APIResource api, UserResourceDTO dto, String password)
public IOpenShiftConnection getConnection()
getConnection in interface IUserpublic String getRhlogin()
getRhlogin in interface IUserpublic String getPassword()
getPassword in interface IUserpublic int getMaxGears()
getMaxGears in interface IUserpublic int getConsumedGears()
getConsumedGears in interface IUserpublic IDomain createDomain(String id) throws OpenShiftException
createDomain in interface IUserOpenShiftExceptionpublic List<IDomain> getDomains() throws OpenShiftException
getDomains in interface IUserOpenShiftExceptionpublic IDomain getDefaultDomain() throws OpenShiftException
getDefaultDomain in interface IUserOpenShiftExceptionpublic IDomain getDomain(String id) throws OpenShiftException
getDomain in interface IUserOpenShiftExceptionpublic boolean hasDomain()
throws OpenShiftException
hasDomain in interface IUserOpenShiftExceptionpublic boolean hasDomain(String id) throws OpenShiftException
hasDomain in interface IUserOpenShiftExceptionpublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionpublic List<IOpenShiftSSHKey> getSSHKeys() throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeys in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic IOpenShiftSSHKey getSSHKeyByName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByName in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
getSSHKeyByPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic boolean hasSSHKeyName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHKeyName in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic boolean hasSSHPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException
hasSSHPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeExceptionOpenShiftExceptionpublic IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException
putSSHKey in interface IUsername - the name to identify the keykey - the key to addOpenShiftExceptionprotected void removeSSHKey(SSHKeyResource key)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.