Aipo アクセス権限のチェック

アクセス権限を持っているかチェックする処理は以下です。

  private boolean hasAuthorityOther;

  ALAccessControlFactoryService aclservice =
      (ALAccessControlFactoryService) ((TurbineServices) TurbineServices
        .getInstance()).getService(ALAccessControlFactoryService.SERVICE_NAME);
    ALAccessControlHandler aclhandler = aclservice.getAccessControlHandler();

    hasAuthorityOther =
      aclhandler.hasAuthority(
        ALEipUtils.getUserId(rundata),
        ALAccessControlConstants.POERTLET_FEATURE_WORKFLOW_REQUEST_OTHER,
        ALAccessControlConstants.VALUE_ACL_LIST);

ALAccessControlConstants.POERTLET_FEATURE_WORKFLOW_REQUEST_OTHER(https://github.com/aipocom/aipo/blob/master/core/src/main/java/com/aimluck/eip/services/accessctl/ALAccessControlConstants.java#L120) はアクセス権限の機能名、

ALAccessControlConstants.VALUE_ACL_LIST(https://github.com/aipocom/aipo/blob/master/core/src/main/java/com/aimluck/eip/services/accessctl/ALAccessControlConstants.java#L35) はアクセス権です。