intra-mart Accel Kaiden! / Programming Guide

«  Validation   ::   Contents   ::   IM-Workflow Matter Number Allocation Function Creation  »

Manager

intra-mart Accel Kaiden! Manager provides API for data base operation.
Manager call and the creation method is explained in this chapter.

Manager Structure

intra-mart Accel Kaiden! manager can be classified to [Master Manager], [Application Form Gadget Manager], and [Other Manager] depending on the class to be inherited.
../../../_images/manager.png

Manager Call

There is no limitation for the location to be called and it can be used from anywhere.
Samples to call account title master manager class of intra-mart Accel Kaiden! are posted below.

Obtaining Component by @Resource annotation

    @Resource
    public AccountManager accountManager;
    
    public void xxxMethod() {
        accountManager.xxxx();
    }

Obtaining Component by specifying component name

    public AccountManager accountManager;
    
    public void xxxMethod() {
        accountManager = SingletonS2Container.getComponent("accountManager");
        accountManager.xxxx();
    }

Notes

In intra-mart Accel Kaiden! standard, component name is specified for obtaining component that does not use @Resource annotation.

Manager Creation

Only the key points are explained for the functions provided by
jp.co.slcs.kaiden2.base.foundation.manager.AbstractGenericManager of the upper most class.
Basic methods for search/registration/update/deletion are not referred.

Company Authorization

There are methods which refers and does not refer company authorization are provided, so they can be implemented to the manager accordingly.

API that refers company authorization receives jp.co.slcs.kaiden2.base.foundation.manager.AuthorityCriteriaDto by argument.
Following contents are set to AuthorityCriteriaDto and it judges whether the contents are permitted in authorization setting.
  • Action
  • Authorization judgment base date
  • Authorization judgment user (use log-in user for omission)
  • Authorization judgment locale

SQL File Search

Search method by SQL file is provided to execute complicated SQL sentence.

It receives service class and SQL file name (except path) by arguments.
intra-mart Accel Kaiden! base class obtains SQL file of [”WEB-INF/classes/META-INF/sql” + “Service Class Package” + “Service Class Name”].

If you specify the column to like Target of the argument, it will be converted to partial match search condition.

Keyword Search

Method that executes keyword search is provided.
In intra-mart Accel Kaiden!, this is used in general search screen of master maintenance screen, and
The value entered to one text box can be searched for the multiple columns.

«  Validation   ::   Contents   ::   IM-Workflow Matter Number Allocation Function Creation  »