|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.AuthzBossEJBImpl
public class AuthzBossEJBImpl
The BizApp's interface to the Authz Subsystem
Field Summary | |
---|---|
protected boolean |
debug
|
protected org.apache.commons.logging.Log |
log
|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
AuthzBossEJBImpl()
|
Method Summary | |
---|---|
AuthzSubject |
createSubject(java.lang.Integer sessionId,
java.lang.String name,
boolean active,
java.lang.String dsn,
java.lang.String dept,
java.lang.String email,
java.lang.String first,
java.lang.String last,
java.lang.String phone,
java.lang.String sms,
boolean useHtml)
Create the user identified by the given ids from the subject as well as principal tables. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
java.util.Map |
findResourcesByIds(java.lang.Integer sessionId,
AppdefEntityID[] entities)
|
AuthzSubject |
findSubjectById(java.lang.Integer sessionId,
java.lang.Integer subjectId)
Return the AuthzSubject object identified by
the given subject id. |
AuthzSubject |
findSubjectByName(java.lang.Integer sessionId,
java.lang.String subjectName)
Return the AuthzSubject object identified by
the given username. |
AuthzSubject |
findSubjectByNameNoAuthz(java.lang.Integer sessionId,
java.lang.String subjectName)
Return the AuthzSubject object identified by
the given username. |
java.util.List |
getAllOperations(java.lang.Integer sessionId)
Return the full List of
OperationValue objects representing every
resource type in the system that the user is allowed to view. |
java.util.List |
getAllOperations(java.lang.Integer sessionId,
PageControl pc)
Return a sorted, paged List of
OperationValue objects representing every
resource type in the system that the user is allowed to view. |
java.util.List |
getAllResourceGroups(java.lang.Integer sessionId,
PageControl pc)
Return a sorted, paged List of
ResourceGroupValue objects representing every
resource type in the system that the user is allowed to view. |
java.util.List |
getAllResourceTypes(java.lang.Integer sessionId)
Return the full List of
ResourceTypeValue objects representing every
resource type in the system that the user is allowed to view. |
java.util.List |
getAllResourceTypes(java.lang.Integer sessionId,
PageControl pc)
Return a sorted, paged List of
ResourceTypeValue objects representing every
resource type in the system that the user is allowed to view. |
PageList |
getAllSubjects(java.lang.Integer sessionId,
java.util.Collection excludes,
PageControl pc)
Return a sorted, paged List of
AuthzSubjectValue objects representing every
resource type in the system that the user is allowed to view. |
AuthzSubject |
getCurrentSubject(int sessionid)
|
AuthzSubject |
getCurrentSubject(java.lang.String name)
|
java.lang.String |
getEmailById(java.lang.Integer sessionId,
java.lang.Integer userId)
Get the email of a user by id |
java.lang.String |
getEmailByName(java.lang.Integer sessionId,
java.lang.String userName)
Get the email of a user by name |
static org.hyperic.hq.bizapp.shared.AuthzBossLocal |
getOne()
|
PageList |
getResourceGroupsById(java.lang.Integer sessionId,
java.lang.Integer[] ids,
PageControl pc)
Return a sorted, paged List of
ResourceGroupValue objects corresponding to the
specified id values. |
PageList |
getSubjectsById(java.lang.Integer sessionId,
java.lang.Integer[] ids,
PageControl pc)
Return a sorted, paged List of
AuthzSubjectValue objects corresponding to the specified
id values. |
PageList |
getSubjectsByName(java.lang.Integer sessionId,
java.lang.String name,
PageControl pc)
Return a sorted, paged List of
AuthzSubjectValue objects matching name as substring |
ConfigResponse |
getUserDashboardConfig(java.lang.Integer sessionId)
Get the current user's dashboard |
ConfigResponse |
getUserPrefs(java.lang.Integer sessionId,
java.lang.Integer subjectId)
Return a ConfigResponse matching the UserPreferences |
ConfigResponse |
getUserPrefs(java.lang.String username)
Return a ConfigResponse matching the UserPreferences |
boolean |
hasAdminPermission(int sessionId)
Check if the current logged in user can administer CAM |
void |
removeSubject(java.lang.Integer sessionId,
java.lang.Integer[] ids)
Remove the user identified by the given ids from the subject as well as principal tables. |
void |
setUserPrefs(java.lang.Integer sessionId,
java.lang.Integer subjectId,
ConfigResponse prefs)
Set the UserPreferences |
void |
setUserPrefsAfterCommit(java.lang.Integer sessionId,
java.lang.Integer subjectId,
ConfigResponse prefs)
Set the UserPreferences |
void |
updateSubject(java.lang.Integer sessionId,
AuthzSubject target,
java.lang.Boolean active,
java.lang.String dsn,
java.lang.String dept,
java.lang.String email,
java.lang.String first,
java.lang.String last,
java.lang.String phone,
java.lang.String sms,
java.lang.Boolean useHtml)
Update a subject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
---|
setSessionContext |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected boolean debug
Constructor Detail |
---|
public AuthzBossEJBImpl()
Method Detail |
---|
public boolean hasAdminPermission(int sessionId) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
public java.util.List getAllResourceTypes(java.lang.Integer sessionId, PageControl pc) throws javax.ejb.CreateException, javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
ResourceTypeValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.CreateException
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public java.util.List getAllResourceTypes(java.lang.Integer sessionId) throws javax.ejb.CreateException, javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
ResourceTypeValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.CreateException
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public java.util.List getAllOperations(java.lang.Integer sessionId, PageControl pc) throws javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
OperationValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public java.util.List getAllOperations(java.lang.Integer sessionId) throws javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
OperationValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList getAllSubjects(java.lang.Integer sessionId, java.util.Collection excludes, PageControl pc) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
List
of
AuthzSubjectValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public PageList getSubjectsById(java.lang.Integer sessionId, java.lang.Integer[] ids, PageControl pc) throws PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
AuthzSubjectValue
objects corresponding to the specified
id values.
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList getSubjectsByName(java.lang.Integer sessionId, java.lang.String name, PageControl pc) throws PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
AuthzSubjectValue
objects matching name as substring
PermissionException
SessionTimeoutException
SessionNotFoundException
public java.util.List getAllResourceGroups(java.lang.Integer sessionId, PageControl pc) throws javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
ResourceGroupValue
objects representing every
resource type in the system that the user is allowed to view.
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public PageList getResourceGroupsById(java.lang.Integer sessionId, java.lang.Integer[] ids, PageControl pc) throws javax.ejb.FinderException, PermissionException, SessionTimeoutException, SessionNotFoundException
List
of
ResourceGroupValue
objects corresponding to the
specified id values.
javax.ejb.FinderException
PermissionException
SessionTimeoutException
SessionNotFoundException
public java.util.Map findResourcesByIds(java.lang.Integer sessionId, AppdefEntityID[] entities) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public void removeSubject(java.lang.Integer sessionId, java.lang.Integer[] ids) throws javax.ejb.FinderException, javax.ejb.RemoveException, PermissionException, SessionTimeoutException, SessionNotFoundException
javax.ejb.FinderException
javax.ejb.RemoveException
PermissionException
SessionTimeoutException
SessionNotFoundException
public void updateSubject(java.lang.Integer sessionId, AuthzSubject target, java.lang.Boolean active, java.lang.String dsn, java.lang.String dept, java.lang.String email, java.lang.String first, java.lang.String last, java.lang.String phone, java.lang.String sms, java.lang.Boolean useHtml) throws PermissionException, SessionException
PermissionException
SessionException
public AuthzSubject createSubject(java.lang.Integer sessionId, java.lang.String name, boolean active, java.lang.String dsn, java.lang.String dept, java.lang.String email, java.lang.String first, java.lang.String last, java.lang.String phone, java.lang.String sms, boolean useHtml) throws PermissionException, javax.ejb.CreateException, SessionException
PermissionException
javax.ejb.CreateException
SessionException
public AuthzSubject getCurrentSubject(int sessionid) throws SessionException
SessionException
public AuthzSubject getCurrentSubject(java.lang.String name) throws SessionException, ApplicationException
SessionException
ApplicationException
public AuthzSubject findSubjectById(java.lang.Integer sessionId, java.lang.Integer subjectId) throws SessionNotFoundException, SessionTimeoutException, PermissionException
AuthzSubject
object identified by
the given subject id.
SessionTimeoutException
SessionNotFoundException
PermissionException
public AuthzSubject findSubjectByName(java.lang.Integer sessionId, java.lang.String subjectName) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
AuthzSubject
object identified by
the given username.
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public AuthzSubject findSubjectByNameNoAuthz(java.lang.Integer sessionId, java.lang.String subjectName) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException, PermissionException
AuthzSubject
object identified by
the given username. This method should only be used in cases
where displaying the user does not require an Authz check. An
example of this is when the owner and last modifier need to
be displayed, and the user viewing the resource does not
have permissions to view other users.
See bug #5452 for more information
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
PermissionException
public ConfigResponse getUserPrefs(java.lang.String username) throws SessionNotFoundException, ApplicationException, ConfigPropertyException
ApplicationException
ConfigPropertyException
javax.security.auth.login.LoginException
SessionNotFoundException
public ConfigResponse getUserPrefs(java.lang.Integer sessionId, java.lang.Integer subjectId)
public void setUserPrefsAfterCommit(java.lang.Integer sessionId, java.lang.Integer subjectId, ConfigResponse prefs) throws ApplicationException, SessionTimeoutException, SessionNotFoundException
ApplicationException
SessionTimeoutException
SessionNotFoundException
public void setUserPrefs(java.lang.Integer sessionId, java.lang.Integer subjectId, ConfigResponse prefs) throws ApplicationException, SessionTimeoutException, SessionNotFoundException
ApplicationException
SessionTimeoutException
SessionNotFoundException
public ConfigResponse getUserDashboardConfig(java.lang.Integer sessionId) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public java.lang.String getEmailByName(java.lang.Integer sessionId, java.lang.String userName) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
public java.lang.String getEmailById(java.lang.Integer sessionId, java.lang.Integer userId) throws javax.ejb.FinderException, SessionTimeoutException, SessionNotFoundException
javax.ejb.FinderException
SessionTimeoutException
SessionNotFoundException
public static org.hyperic.hq.bizapp.shared.AuthzBossLocal getOne()
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |