org.rhq.enterprise.server.perspective
Class PerspectiveClientUIBean

java.lang.Object
  extended by org.rhq.enterprise.server.perspective.PerspectiveClientUIBean

@Name(value="PerspectiveClientUIBean")
@Scope(value=CONVERSATION)
@AutoCreate
public class PerspectiveClientUIBean
extends Object

Author:
Ian Springer

Field Summary
static String NAME
           
 
Constructor Summary
PerspectiveClientUIBean()
           
 
Method Summary
 RemoteClient getRemoteClient()
           
 org.rhq.core.domain.auth.Subject getSubject()
          Returns the currently logged in RHQ user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

PerspectiveClientUIBean

public PerspectiveClientUIBean()
Method Detail

getRemoteClient

@NotNull
public RemoteClient getRemoteClient()
                             throws Exception
Throws:
Exception

getSubject

@NotNull
public org.rhq.core.domain.auth.Subject getSubject()
                                            throws Exception
Returns the currently logged in RHQ user.

Returns:
the currently logged in RHQ user
Throws:
Exception - if we are unable to obtain the Subject - hopefully this will encourage callers to set a FacesMessage and return null to give the user a friendlier error


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.