/** * @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; }
public RoutingDomainsObject load(EnvironmentEntity e) { return RoutingDomainsObject.of(e.getRoutingDomains()); }
@Override int getOfflineVersion(EnvironmentEntity e) { return e.getDomainVersion(); }