Valid XHTML 1.0 TransitionalCore Logic Of tfw.web.lpm.basic.service.AccessControlDataService

Page: [tfw/lpm/01_basic/AccessControlDataService.html] (v2015-09-02_11-40)

Class Version: 2014-12-30_20-20.year_end
Logout:
Login / Re-login:
Access Check:
Available Function List:
Available Function Tree:
svcDoLogout(...)
svcDoLogin(...)
svcCheckAccess(...)
svcListUserFunctions(...)
svcListUserFunctionTree(...)

Judges whether the necessary data / parameters have been received.
Judges whether the necessary data / parameters have been received.
Generates the function list.
Generates the function tree.

Failure Point(s):
  • The absence of the necessary data / parameters.
Failure Point(s):
  • The absence of the necessary data / parameters.




Checks the function according to its ID.




Exit Point(s):
  1. Function not existed.
    → Failure Exit
  2. Function not managed.
    → Good Exit
  3. Function not enabled.
    → Failure Exit



checkUser(... with password ...)
Checks the user according to its ID-password pare / name-password pare.
Filters password away after checking.
checkUser(... without password ...)
Checks the user according to its ID / name.
Filters password away after checking.

Failure Point(s):
  1. User not existed;
  2. User name duplicated (while login by user name);
  3. User not enabled;
  4. User password not match.
Failure Point(s):
  1. User not existed;
  2. User name duplicated (while login by user name);
  3. User not enabled.


checkUGMs(...)
Checks the UGM(s) of the user according to user ID.

Failure Point(s):
  1. UGM(s) of user not existed;
  2. UGM(s) of user not related to group(s);
  3. UGM(s) of user not enabled.


checkGroups(...)
Checks the Groups(s) of the user according to group ID(s) in UGM(s).

Failure Point(s):
  1. Group(s) of user not existed;
  2. Group(s) of user not enabled.

Erases old data of previous login.
checkGFMs(...)
Checks the GFM(s) of the user according to group ID(s).

Failure Point(s):
  1. GFM(s) of user not existed;
  2. GFM(s) of user not enabled;
  3. GFM(s) of user not related to function(s).


Manipulates user and enabled / non-enabled group(s) data according to login type.
Checks whether the function is in the GFM(s) of the user's group(s) according to its ID.
checkFunctions(...)
Checks the functions according to their IDs in the GFM(s) of the user's group(s).


Failure Point(s):
  • Function not in the GFM(s) of the user's group(s).




Iterates the rows function list;
Gives the "accessible" attribute to the suitable row, according to the check result in the previous steps and the control level of the current row.
Iterates the nodes in the function tree;
Gives the "accessible" attribute to the suitable row, according to the check result in the previous steps and the control level of the current node;
Also gives the "accessible" attribute to the parent node of an accessible node.