EAS of the validation check

First look at the method of entry inspection authority about permissions interface class provided by
public boolean hasFunctionPermission (IObjectPK userPK, IObjectPK orgPK, String permItemName) throws BosException, EASBizException {

}
return with authority whether a function of
experience right user PK, the right to organize inspection PK, UI metadata PK, PK business operations,
public Boolean hasFuntionPermission (IObjectPK userPK, IObjectPK orgPK, IMetaData uiPK, IMetaDataPK actionPK) throws BosException, EASBizException {

}
checks whether the user has permission to a feature, not be entitled throws comprising prompt service information abnormal
public void checkFuntionPermission (IObjectPK userPK, IObjectPK orgPK, String permItemName) throws BosException, EASBizException {
}

public void checkFuntionPermission (IObjectPK userPK, IObjectPK orgPK, IMetaDataPK uiPK, IMetaDataPK actionPK) throws BosException, EASBizException {

}
calling the method:
Perm = null IPermission com.kingdee.eas.base.permission;
Perm = PermissionFactory.getLocalInstance (CTX);
perm.hasFuntionPermission (userPK, orgPK, uiPK, actionPK);
by returning a boolean value to determine whether items have permission, depending on the functional competence of scenarios call different application methods or data test operation rights.

Guess you like

Origin www.cnblogs.com/luojiabao/p/10987472.html
EAS