Qare Internals
    SQL Tables
    Schema
    Plugins
               Demo Hello World
               Change Password
               Ping
    API
 Site Map
 
Change Password Plugin
 
 QareApplications
        AppDir
        ChangePassword
        Count
        CreateAccount
        Delegation
        DelegationDisplay
        DeleteRemote
        HelloWorld
        Inbox
        Login
        Logout
        Pending
        Ping
        Refresh
        Register
        RemoteAccount
        UserGroups
 

Introduction

The 'Change Password' plugins is template generated server-side web application that is used to change the password.

Source Code and Resource File

The Change Password compiles as part of the build process. The important modules that contribute to the Change Password are listed here. All these files placed together on in one war file as a server application. The resourse and 'src' directories contain all these files.

The resource directory contains:

1. changePassword.txt

This text file displays the Change Password GUI page.
Resource File .

2. change.config

This xml file facilitates the processing of command line arguments. The data is held by properties in the name-value pairs. All the specified item taken from 'changePassword.txt' are passed into properties. These items are evaluated in "ChangePassWordTemplate.java" by getting them from properties.
Resource File

3. data.application

This xml files describes the name of the application, its path directory and action. It also gives the link to help page. The privilege tag represents the specific permission to which the user has access. "Change" privilege being presented by the privilege tag.
Resource File .

4. web.xml

This xml file is servlet descriptor. It expresses the servlet name, servlet path and the time(millisecond) taken to load servlet when server starts. It also invokes the redirect html page that redirects the page to the default qare login page.
Resource File.

The src directory contains:

1. ChangePasswordTemplate.java

This class provides the functionality for processing of template.
Source Code .

2. QServlet.java

The QServlet source file resides in the 'src' directory of the ChangePassword. It extends Qhome the top of all Java Servlet. It also identifies the data to use by after. It gives the the war file name "changePassword" to get data of the specific application while parsing data and the parsed data is held in object that sets the application.
Source Code