Package org.jresearch.flexess.core.model

Examples of org.jresearch.flexess.core.model.IModelMetaInfo


    return null;
  }

  private SecurityModel loadSecurityModel(final String applicationId) throws UamClientException {
    try {
      final IModelMetaInfo modelMetaInfo = applicationService.getModelMetaInfo(applicationId);
      if (modelMetaInfo == null) {
        throw new UamClientException(MessageFormat.format("Application {0} is not found or doesn't contain the model information.", applicationId)); //$NON-NLS-1$
      }
      final SecurityModel model = securityContainerFactory.getSecurityContainer(modelMetaInfo.getModel()).getModel();
      if (model == null) {
        throw new UamClientException(MessageFormat.format("Model {0} is not found", modelMetaInfo.getId())); //$NON-NLS-1$
      }
      return model;
    } catch (final RemoteAccessException e) {
      throw new FlexessConnectException(MessageFormat.format("Can't connect: {0}.", e.getLocalizedMessage()), e); //$NON-NLS-1$
    }
View Full Code Here


    return getRoleInstances(modelId, role.getId());
  }

  @Override
  public IRoleInstanceMetaInfo getRoleInstanceImpl(String modelId) throws ObjectNotFoundException {
    IModelMetaInfo mm = modelService.getSerializedModel(modelId);
    if (mm == null) {
      throw new ObjectNotFoundException("Model is not found", modelId); //$NON-NLS-1$
    }
    RoleInstanceMetaInfo rm = new RoleInstanceMetaInfo();
    rm.setModelId(modelId);
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.core.model.IModelMetaInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.