Package es.caib.seycon.ng.servei.ejb
Interface AccountService
-
public interface AccountService
EJB AccountService
-
-
Method Summary
-
-
-
Method Detail
-
hasAccountSshKey
boolean hasAccountSshKey(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
isAccountPasswordAvailable
boolean isAccountPasswordAvailable(long accountId) throws InternalErrorException
- Throws:
InternalErrorException
-
isUpdatePending
boolean isUpdatePending(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
needsAccount
boolean needsAccount(String userName, String dispatcherName) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
setHPAccountPassword
boolean setHPAccountPassword(Account account, Password password, Date untilDate, boolean force) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountByJsonQueryAsync
AsyncList<Account> findAccountByJsonQueryAsync(String query) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountByTextAndJsonQueryAsync
AsyncList<Account> findAccountByTextAndJsonQueryAsync(String text, String jsonQuery) throws InternalErrorException
- Throws:
InternalErrorException
-
findAccountByTextAsync
AsyncList<Account> findAccountByTextAsync(String text) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
disableAccounts
AsyncProcessTracker disableAccounts(String scimQuery, List<DisableObjectRule> rules) throws InternalErrorException
- Throws:
InternalErrorException
-
disableAccountsPreview
AsyncProcessTracker disableAccountsPreview(String scimQuery, List<DisableObjectRule> rules, List<Object[]> actions) throws InternalErrorException
- Throws:
InternalErrorException
-
findAccountByJsonQuery
PagedResult<Account> findAccountByJsonQuery(String query, Integer first, Integer num) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountByTextAndJsonQuery
PagedResult<Account> findAccountByTextAndJsonQuery(String text, String jsonQuery, Integer start, Integer pageSize) throws InternalErrorException
- Throws:
InternalErrorException
-
createAccount
Account createAccount(Account account) throws InternalErrorException, InternalErrorException, AccountAlreadyExistsException
-
createAccount2
Account createAccount2(Account account) throws InternalErrorException, InternalErrorException, AccountAlreadyExistsException
-
findAccount
Account findAccount(String accountAndDispatcher) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccount
Account findAccount(String accountName, String dispatcherName) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountById
Account findAccountById(long id) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
generateAccountSshPrivateKey
Account generateAccountSshPrivateKey(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
removeAccountSnapshot
Account removeAccountSnapshot(Account account) throws InternalErrorException
- Throws:
InternalErrorException
-
setAccountSshPrivateKey
Account setAccountSshPrivateKey(Account account, String privateKey) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
updateAccount
Account updateAccount(Account account) throws InternalErrorException, InternalErrorException, AccountAlreadyExistsException
-
updateAccount2
Account updateAccount2(Account account) throws InternalErrorException, InternalErrorException, AccountAlreadyExistsException
-
createAccountAttribute
DadaUsuari createAccountAttribute(DadaUsuari attribute) throws InternalErrorException
- Throws:
InternalErrorException
-
updateAccountAttribute
DadaUsuari updateAccountAttribute(DadaUsuari attribute) throws InternalErrorException
- Throws:
InternalErrorException
-
generateAccountPassword
Password generateAccountPassword(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
generateAccountTemporaryPassword
Password generateAccountTemporaryPassword(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
queryAccountPassword
Password queryAccountPassword(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
queryAccountSshKey
Password queryAccountSshKey(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
setAccountPassword
Password setAccountPassword(Account account, Password password, boolean temporary, boolean online) throws InternalErrorException, InternalErrorException, BadPasswordException
-
checkPasswordSynchronizationStatus
PasswordValidation checkPasswordSynchronizationStatus(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
createAccount
UserAccount createAccount(Usuari usuari, Dispatcher dispatcher, String name) throws InternalErrorException, InternalErrorException, NeedsAccountNameException, AccountAlreadyExistsException
-
getHPAccountOwner
Usuari getHPAccountOwner(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
isUpdatePendingExtended
int isUpdatePendingExtended(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
gessAccountName
String gessAccountName(String userName, String dispatcherName) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountByJsonQuery
Collection<Account> findAccountByJsonQuery(String query) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountByText
Collection<Account> findAccountByText(String text) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountServices
Collection<HostService> findAccountServices(Account account) throws InternalErrorException
- Throws:
InternalErrorException
-
getUserAccounts
Collection<UserAccount> getUserAccounts(Usuari usuari) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getUserGrantedAccounts
Collection<Account> getUserGrantedAccounts(Usuari usuari) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getUserGrantedAccounts
Collection<Account> getUserGrantedAccounts(Usuari usuari, AccountAccessLevelEnum level) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findAccountsByCriteria
List<Account> findAccountsByCriteria(AccountCriteria criteria) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findSharedAccountsByUser
List<Account> findSharedAccountsByUser(String userName) throws InternalErrorException
- Throws:
InternalErrorException
-
findSharedAccountsHistoryByUser
List<AccountHistory> findSharedAccountsHistoryByUser(String userName) throws InternalErrorException
- Throws:
InternalErrorException
-
findUserAccounts
List<UserAccount> findUserAccounts(String userName, String dispatcherName) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
findUserAccountsByDomain
List<UserAccount> findUserAccountsByDomain(String user, String passwordDomain) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
getAccountAttributes
List<DadaUsuari> getAccountAttributes(Account acc) throws InternalErrorException
- Throws:
InternalErrorException
-
listNonUserAccounts
List<Account> listNonUserAccounts(Dispatcher dispatcher, String nom) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
listUserAccounts
List<UserAccount> listUserAccounts(Usuari usuari) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
checkinHPAccount
void checkinHPAccount(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
removeAccount
void removeAccount(Account account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
removeAccount
void removeAccount(UserAccount account) throws InternalErrorException, InternalErrorException
- Throws:
InternalErrorException
-
removeAccountAttribute
void removeAccountAttribute(DadaUsuari attribute) throws InternalErrorException
- Throws:
InternalErrorException
-
renameAccount
void renameAccount(Account account) throws InternalErrorException, InternalErrorException, AccountAlreadyExistsException
-
sendAccountPassword
void sendAccountPassword(Account account) throws InternalErrorException, InternalErrorException, BadPasswordException
-
setAccountPassword
void setAccountPassword(Account account, Password password) throws InternalErrorException, InternalErrorException, BadPasswordException
-
setAccountTemporaryPassword
void setAccountTemporaryPassword(Account account, Password password) throws InternalErrorException, InternalErrorException, BadPasswordException
-
-