예제 #1
0
 /**
  * @see
  *     com.isotrol.impe3.pms.core.RoutingDomainManager#getDefault(com.isotrol.impe3.pms.model.EnvironmentEntity,
  *     com.isotrol.impe3.pms.model.UserEntity)
  */
 public RoutingDomainEntity getDefault(EnvironmentEntity e, UserEntity user) throws PMSException {
   RoutingDomainEntity entity = getDao().getRoutingDomainByName(e.getId(), DEFAULT);
   if (entity == null) {
     entity = new RoutingDomainEntity();
     entity.setEnvironment(e);
     entity.setCreated(user);
     entity.setUpdated(user);
     entity.setName(DEFAULT);
     entity.setOnlineBase(BASE);
     entity.setOfflineBase(BASE);
     saveNewEntity(entity);
   }
   return entity;
 }
예제 #2
0
 public RoutingDomainsObject load(EnvironmentEntity e) {
   return RoutingDomainsObject.of(e.getRoutingDomains());
 }
예제 #3
0
 @Override
 int getOfflineVersion(EnvironmentEntity e) {
   return e.getDomainVersion();
 }