Package com.soffid.iam.service.ejb
Class SelfServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.SelfServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.SelfService,Serializable,javax.ejb.EnterpriseBean,javax.ejb.SessionBean,org.springframework.ejb.support.SmartSessionBean
public class SelfServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.SelfService- See Also:
com.soffid.iam.service.SelfService,,es.caib.seycon.ng.servei.SelfService,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SelfServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCanSetAccountPassword(com.soffid.iam.api.Account account)voidcheckinHPAccount(com.soffid.iam.api.Account account)com.soffid.iam.api.UserDatacreateSharedAccountData(com.soffid.iam.api.UserData data)voidejbCreate()Initizlizes beenvoidejbRemove()Collection<com.soffid.iam.api.AccessTree>findChildren(com.soffid.iam.api.AccessTree puntEntrada)Collection<com.soffid.iam.api.AccessTree>findEntryPoints(String name)Collection<com.soffid.iam.api.RoleAccount>findRoleAccounts()com.soffid.iam.api.AccessTreefindRoot()Collection<com.soffid.iam.api.GroupUser>findUserGroupsByUserName()com.soffid.iam.api.PasswordgenerateAccountTemporaryPassword(com.soffid.iam.api.Account account)List<com.soffid.iam.api.UserData>getAccountAttributes(com.soffid.iam.api.Account acc)com.soffid.iam.api.AccountgetAccountById(long id)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()StringgetClientHost()com.soffid.iam.api.UsergetCurrentUser()com.soffid.iam.api.DataTypegetDataTypeDescription(String systemName, String attName)com.soffid.iam.api.SystemgetDispatcherInformation(String dispatcherCode)javax.ejb.SessionContextgetSessionContext()List<com.soffid.iam.api.Account>getSharedAccounts(String filter)Collection<com.soffid.iam.api.Account>getUserAccounts()Collection<com.soffid.iam.api.UserData>getUserAttributes()protected voidonEjbCreate()protected voidonEjbRemove()com.soffid.iam.api.PasswordStatuspasswordsStatus(com.soffid.iam.api.Account account)com.soffid.iam.api.PasswordqueryAccountPassword(com.soffid.iam.api.Account account)com.soffid.iam.api.PasswordqueryAccountPasswordBypassPolicy(com.soffid.iam.api.Account account)com.soffid.iam.api.PasswordqueryAccountSshKey(com.soffid.iam.api.Account account)com.soffid.iam.api.PasswordqueryAccountSshKeyBypassPolicy(com.soffid.iam.api.Account account)StringqueryOtherAffectedAccounts(com.soffid.iam.api.Account account)voidsetAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password)voidsetBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)voidsetBeanFactoryLocatorKey(String arg0)booleansetHPAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password, Date untilDate, boolean force)voidsetSessionContext(javax.ejb.SessionContext sessionContext)Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.AccountupdateSharedAccount(com.soffid.iam.api.Account account)com.soffid.iam.api.UserDataupdateSharedAccountData(com.soffid.iam.api.UserData data)com.soffid.iam.api.UserDataupdateUserAttribute(com.soffid.iam.api.UserData attribute)-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHPAccountPassword
@PermitAll public boolean setHPAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password, Date untilDate, boolean force) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
setHPAccountPasswordin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAccountById
@PermitAll public com.soffid.iam.api.Account getAccountById(long id) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getAccountByIdin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateSharedAccount
@PermitAll public com.soffid.iam.api.Account updateSharedAccount(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updateSharedAccountin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
createSharedAccountData
@PermitAll public com.soffid.iam.api.UserData createSharedAccountData(com.soffid.iam.api.UserData data) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createSharedAccountDatain interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateSharedAccountData
@PermitAll public com.soffid.iam.api.UserData updateSharedAccountData(com.soffid.iam.api.UserData data) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updateSharedAccountDatain interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
updateUserAttribute
@PermitAll public com.soffid.iam.api.UserData updateUserAttribute(com.soffid.iam.api.UserData attribute) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updateUserAttributein interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getDispatcherInformation
@PermitAll public com.soffid.iam.api.System getDispatcherInformation(String dispatcherCode) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getDispatcherInformationin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
passwordsStatus
@PermitAll public com.soffid.iam.api.PasswordStatus passwordsStatus(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
passwordsStatusin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
generateAccountTemporaryPassword
@PermitAll public com.soffid.iam.api.Password generateAccountTemporaryPassword(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
generateAccountTemporaryPasswordin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryAccountPassword
@PermitAll public com.soffid.iam.api.Password queryAccountPassword(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
queryAccountPasswordin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryAccountPasswordBypassPolicy
@PermitAll public com.soffid.iam.api.Password queryAccountPasswordBypassPolicy(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
queryAccountPasswordBypassPolicyin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryAccountSshKey
@PermitAll public com.soffid.iam.api.Password queryAccountSshKey(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
queryAccountSshKeyin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryAccountSshKeyBypassPolicy
@PermitAll public com.soffid.iam.api.Password queryAccountSshKeyBypassPolicy(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
queryAccountSshKeyBypassPolicyin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRoot
@PermitAll public com.soffid.iam.api.AccessTree findRoot() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
findRootin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getDataTypeDescription
@PermitAll public com.soffid.iam.api.DataType getDataTypeDescription(String systemName, String attName) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getDataTypeDescriptionin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getCurrentUser
@PermitAll public com.soffid.iam.api.User getCurrentUser() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
getCurrentUserin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getClientHost
@PermitAll public String getClientHost() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getClientHostin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
queryOtherAffectedAccounts
@PermitAll public String queryOtherAffectedAccounts(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
queryOtherAffectedAccountsin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findChildren
@PermitAll public Collection<com.soffid.iam.api.AccessTree> findChildren(com.soffid.iam.api.AccessTree puntEntrada) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findChildrenin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findEntryPoints
@PermitAll public Collection<com.soffid.iam.api.AccessTree> findEntryPoints(String name) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findEntryPointsin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findRoleAccounts
@PermitAll public Collection<com.soffid.iam.api.RoleAccount> findRoleAccounts() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findRoleAccountsin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUserGroupsByUserName
@PermitAll public Collection<com.soffid.iam.api.GroupUser> findUserGroupsByUserName() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUserGroupsByUserNamein interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getUserAccounts
@PermitAll public Collection<com.soffid.iam.api.Account> getUserAccounts() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getUserAccountsin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getUserAttributes
@PermitAll public Collection<com.soffid.iam.api.UserData> getUserAttributes() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getUserAttributesin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getAccountAttributes
@PermitAll public List<com.soffid.iam.api.UserData> getAccountAttributes(com.soffid.iam.api.Account acc) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getAccountAttributesin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSharedAccounts
@PermitAll public List<com.soffid.iam.api.Account> getSharedAccounts(String filter) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSharedAccountsin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
checkCanSetAccountPassword
@PermitAll public void checkCanSetAccountPassword(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkCanSetAccountPasswordin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
checkinHPAccount
@PermitAll public void checkinHPAccount(com.soffid.iam.api.Account account) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
checkinHPAccountin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
setAccountPassword
@PermitAll public void setAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
setAccountPasswordin interfacecom.soffid.iam.service.ejb.SelfService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean- Throws:
javax.ejb.CreateException- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContextin interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-