|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.developer.provider.file.xml.XMLFileBinding
Acts as a communicator to the xml file for the XML FileProvider class.
| Field Summary | |
static java.lang.String |
ACCOUNT_TYPE_ATTR
|
static java.lang.String |
BUSINESS_ACTIVATION_CODE_ATTR
|
static java.lang.String |
BUSINESS_GUID_ATTR
|
static java.lang.String |
BUSINESS_LEGAL_NAME_ATTR
|
static java.lang.String |
BUSINESS_PARTNER_USER_INFO_TAG
|
static java.lang.String |
DISPLAY_NAME_ATTR
|
static java.lang.String |
EMAIL_ADDRESS_ATTR
|
static java.lang.String |
EMPLOYEE_ID_ATTR
|
static java.lang.String |
EXPIRY_DATE_ATTR
|
static java.lang.String |
FIRST_NAME_ATTR
|
static java.lang.String |
GOVERNMENT_USER_INFO_TAG
|
static java.lang.String |
GUID_ATTR
|
static java.lang.String |
INDIVIDUAL_USER_INFO_TAG
|
static java.lang.String |
LAST_NAME_ATTR
|
static java.lang.String |
MIDDLE_INITIAL_ATTR
|
static java.lang.String |
PASSWORD_ATTR
|
static java.lang.String |
PHONE_NUMBER_ATTR
|
static java.lang.String |
VISIBLE_ATTR
|
| Constructor Summary | |
XMLFileBinding(java.io.File file)
Constructor. |
|
| Method Summary | |
java.util.List |
findBusinessPartnerUsers(ca.bc.gov.webade.UserSearchObject uso)
Searches the xml for Business Partner users matching the given search criteria. |
java.util.List |
findGovernmentUsers(ca.bc.gov.webade.UserSearchObject uso)
Searches the xml for government users matching the given search criteria. |
ca.bc.gov.webade.user.WebADEUserInfo |
getBusinessPartnerUser(ca.bc.gov.webade.user.UserCredentials credentials)
Retrives the user information for the given business partner user. |
ca.bc.gov.webade.user.WebADEUserInfo |
getGovernmentUser(ca.bc.gov.webade.user.UserCredentials credentials)
Retrives the user information for the given government user. |
ca.bc.gov.webade.user.WebADEUserInfo |
getIndividualUser(ca.bc.gov.webade.user.UserCredentials credentials)
Retrives the user information for the given individual user. |
java.util.ArrayList |
getUsers()
|
boolean |
isValidPassword(ca.bc.gov.webade.user.UserCredentials credentials,
java.lang.String password)
|
boolean |
isValidPassword(ca.bc.gov.webade.user.UserCredentials credentials,
java.lang.String password,
boolean encrypted)
|
void |
loadXml()
Loads the xml from the current file into a DOM in memory. |
void |
loadXml(java.io.File f)
Loads the xml from the given file into a DOM in memory. |
void |
loadXml(java.lang.String fileLocation)
Loads the xml from the given file into a DOM in memory. |
void |
setUsers(org.w3c.dom.Document usersDocument)
|
ca.bc.gov.webade.user.GUID[] |
userInGroups(ca.bc.gov.webade.user.UserCredentials credentials,
ca.bc.gov.webade.user.GUID[] groupGuids)
Retrieves an array of groups that the given user is a member of. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String GOVERNMENT_USER_INFO_TAG
public static final java.lang.String BUSINESS_PARTNER_USER_INFO_TAG
public static final java.lang.String INDIVIDUAL_USER_INFO_TAG
public static final java.lang.String PASSWORD_ATTR
public static final java.lang.String EMPLOYEE_ID_ATTR
public static final java.lang.String ACCOUNT_TYPE_ATTR
public static final java.lang.String GUID_ATTR
public static final java.lang.String BUSINESS_ACTIVATION_CODE_ATTR
public static final java.lang.String BUSINESS_GUID_ATTR
public static final java.lang.String BUSINESS_LEGAL_NAME_ATTR
public static final java.lang.String VISIBLE_ATTR
public static final java.lang.String DISPLAY_NAME_ATTR
public static final java.lang.String LAST_NAME_ATTR
public static final java.lang.String FIRST_NAME_ATTR
public static final java.lang.String MIDDLE_INITIAL_ATTR
public static final java.lang.String EMAIL_ADDRESS_ATTR
public static final java.lang.String PHONE_NUMBER_ATTR
public static final java.lang.String EXPIRY_DATE_ATTR
| Constructor Detail |
public XMLFileBinding(java.io.File file)
throws WebADEDeveloperException
file - The file containing the user information.
WebADEDeveloperException| Method Detail |
public void loadXml()
throws WebADEDeveloperException
WebADEDeveloperException
public void loadXml(java.lang.String fileLocation)
throws WebADEDeveloperException
fileLocation -
WebADEDeveloperException
public void loadXml(java.io.File f)
throws WebADEDeveloperException
f - The file
WebADEDeveloperException
public ca.bc.gov.webade.user.WebADEUserInfo getBusinessPartnerUser(ca.bc.gov.webade.user.UserCredentials credentials)
throws WebADEDeveloperException
credentials - The given business partner user.
WebADEDeveloperExceptionpublic java.util.ArrayList getUsers()
public void setUsers(org.w3c.dom.Document usersDocument)
throws WebADEDeveloperException
WebADEDeveloperException
public boolean isValidPassword(ca.bc.gov.webade.user.UserCredentials credentials,
java.lang.String password)
throws WebADEDeveloperException
WebADEDeveloperException
public boolean isValidPassword(ca.bc.gov.webade.user.UserCredentials credentials,
java.lang.String password,
boolean encrypted)
throws WebADEDeveloperException
WebADEDeveloperException
public ca.bc.gov.webade.user.WebADEUserInfo getIndividualUser(ca.bc.gov.webade.user.UserCredentials credentials)
throws WebADEDeveloperException
credentials - The given individual user.
WebADEDeveloperException
public ca.bc.gov.webade.user.WebADEUserInfo getGovernmentUser(ca.bc.gov.webade.user.UserCredentials credentials)
throws WebADEDeveloperException
credentials - The given government user.
WebADEDeveloperException
public java.util.List findGovernmentUsers(ca.bc.gov.webade.UserSearchObject uso)
throws WebADEDeveloperException
uso - The UserSearchObject holding the search criteria.
WebADEDeveloperException
public java.util.List findBusinessPartnerUsers(ca.bc.gov.webade.UserSearchObject uso)
throws WebADEDeveloperException
uso - The UserSearchObject holding the search criteria.
WebADEDeveloperException
public ca.bc.gov.webade.user.GUID[] userInGroups(ca.bc.gov.webade.user.UserCredentials credentials,
ca.bc.gov.webade.user.GUID[] groupGuids)
throws WebADEDeveloperException
credentials - The given usergroupGuids - Checking if the given user is a member of any of these
groups.
WebADEDeveloperException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||