Class 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
    • Constructor Detail

      • SelfServiceBean

        public SelfServiceBean()
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.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 interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.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()