org.systinet.uddi.account
Interface ExternalBackendApi


public interface ExternalBackendApi

An interface for account management in external storages (e.g. LDAP). External stroage is for account management only read-only.


Method Summary
 UserList findAllAccounts(Find_userAccount findUserAccount)
          Returns brief information about all accounts in external user store that conform the searching criteria.
 StringArrayList findDomain()
          Deprecated. since 6.0
 UserAccount getUserAccount(java.lang.String loginName)
          Returns the UserAccount structure of the given user.
 boolean login(java.lang.String loginName, java.lang.String password)
          Checks whether the given user with the given loginName exists in the external user store.
 

Method Detail

login

public boolean login(java.lang.String loginName,
                     java.lang.String password)
              throws AccountException
Checks whether the given user with the given loginName exists in the external user store.

Parameters:
loginName - specifies the user's loginName
password - specifies the user's password
Returns:
true if the given user with the given password exists in the registry. Otherwise it returns false.
Throws:
AccountException - if any error occurs

getUserAccount

public UserAccount getUserAccount(java.lang.String loginName)
                           throws AccountException
Returns the UserAccount structure of the given user. The userAccount structure is filled acording to the management. This means that user can determine e.g. that email in the UserAccount structure is mail attribute in LDAP.

Parameters:
loginName - specifies the user's name
Returns:
the UserAccount structure of the given user that is filled from external user store. Not all fields of structure must exist in external store and so not fullfilled structure must be returned.
Throws:
AccountException - if any error occurs

findAllAccounts

public UserList findAllAccounts(Find_userAccount findUserAccount)
                         throws AccountException
Returns brief information about all accounts in external user store that conform the searching criteria. The result is not sorted, cut and paged.

Parameters:
findUserAccount - specifies the searching criteria
Returns:
brief information about all accounts in user store that conform the given searching criteria.
Throws:
AccountException - if any error occurs

findDomain

public StringArrayList findDomain()
                           throws AccountException
Deprecated. since 6.0

Returns names of all domains.

Returns:
names of all domains
Throws:
AccountException - if any error occurs