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 String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description SelfServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCanSetAccountPassword(com.soffid.iam.api.Account account)
void
checkinHPAccount(com.soffid.iam.api.Account account)
com.soffid.iam.api.UserData
createSharedAccountData(com.soffid.iam.api.UserData data)
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
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.AccessTree
findRoot()
Collection<com.soffid.iam.api.GroupUser>
findUserGroupsByUserName()
com.soffid.iam.api.Password
generateAccountTemporaryPassword(com.soffid.iam.api.Account account)
List<com.soffid.iam.api.UserData>
getAccountAttributes(com.soffid.iam.api.Account acc)
com.soffid.iam.api.Account
getAccountById(long id)
protected org.springframework.beans.factory.BeanFactory
getBeanFactory()
String
getClientHost()
com.soffid.iam.api.User
getCurrentUser()
com.soffid.iam.api.DataType
getDataTypeDescription(String systemName, String attName)
com.soffid.iam.api.System
getDispatcherInformation(String dispatcherCode)
javax.ejb.SessionContext
getSessionContext()
List<com.soffid.iam.api.Account>
getSharedAccounts(String filter)
Collection<com.soffid.iam.api.Account>
getUserAccounts()
Collection<com.soffid.iam.api.UserData>
getUserAttributes()
protected void
onEjbCreate()
protected void
onEjbRemove()
com.soffid.iam.api.PasswordStatus
passwordsStatus(com.soffid.iam.api.Account account)
com.soffid.iam.api.Password
queryAccountPassword(com.soffid.iam.api.Account account)
com.soffid.iam.api.Password
queryAccountPasswordBypassPolicy(com.soffid.iam.api.Account account)
com.soffid.iam.api.Password
queryAccountSshKey(com.soffid.iam.api.Account account)
com.soffid.iam.api.Password
queryAccountSshKeyBypassPolicy(com.soffid.iam.api.Account account)
String
queryOtherAffectedAccounts(com.soffid.iam.api.Account account)
void
setAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password)
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
boolean
setHPAccountPassword(com.soffid.iam.api.Account account, com.soffid.iam.api.Password password, Date untilDate, boolean force)
void
setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Account
updateSharedAccount(com.soffid.iam.api.Account account)
com.soffid.iam.api.UserData
updateSharedAccountData(com.soffid.iam.api.UserData data)
com.soffid.iam.api.UserData
updateUserAttribute(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:
setHPAccountPassword
in 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:
getAccountById
in 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:
updateSharedAccount
in 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:
createSharedAccountData
in 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:
updateSharedAccountData
in 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:
updateUserAttribute
in 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:
getDispatcherInformation
in 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:
passwordsStatus
in 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:
generateAccountTemporaryPassword
in 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:
queryAccountPassword
in 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:
queryAccountPasswordBypassPolicy
in 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:
queryAccountSshKey
in 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:
queryAccountSshKeyBypassPolicy
in 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:
findRoot
in 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:
getDataTypeDescription
in 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:
getCurrentUser
in 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:
getClientHost
in 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:
queryOtherAffectedAccounts
in 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:
findChildren
in 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:
findEntryPoints
in 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:
findRoleAccounts
in 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:
findUserGroupsByUserName
in 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:
getUserAccounts
in 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:
getUserAttributes
in 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:
getAccountAttributes
in 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:
getSharedAccounts
in 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:
checkCanSetAccountPassword
in 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:
checkinHPAccount
in 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:
setAccountPassword
in 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:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in 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:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in 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()
-
-