TeiidImpl extends RelationalChildRestrictedObject implements Teiid, TeiidParent, EventManager { @Override public boolean isAdminSecure( UnitOfWork uow ) throws KException { ArgCheck.isNotNull( uow, "transaction" ); ArgCheck.isTrue( ( uow.getState() == State.NOT_STARTED ), "transaction state is not NOT_STARTED" ); Boolean secure = getObjectProperty(uow, PropertyValueType.BOOLEAN, "isSecure", TeiidArchetype.ADMIN_SECURE); return secure != null ? secure : TeiidAdminInfo.DEFAULT_SECURE; } TeiidImpl( final UnitOfWork uow,
                      final Repository repository,
                      final String path ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override TeiidInstance getTeiidInstance(TeiidVersion teiidVersion); @Override TeiidInstance getTeiidInstance(UnitOfWork uow); @Override QueryService getQueryService(UnitOfWork uow); @Override TeiidVersion getVersion( UnitOfWork uow ); @Override void setVersion(UnitOfWork uow, TeiidVersion version); @Override String getId( final UnitOfWork transaction ); @Override String getHost( UnitOfWork uow ); @Override void setHost(UnitOfWork uow, String host); @Override int getAdminPort( UnitOfWork uow ); @Override void setAdminPort( UnitOfWork uow, int port ); @Override String getAdminUser( UnitOfWork uow ); @Override void setAdminUser( UnitOfWork uow, String userName ); @Override String getAdminPassword( UnitOfWork uow ); @Override void setAdminPassword( UnitOfWork uow,
                                  String password ); @Override int getTypeId(); @Override boolean isAdminSecure( UnitOfWork uow ); @Override void setAdminSecure( UnitOfWork uow, boolean secure ); @Override int getJdbcPort( UnitOfWork uow ); @Override void setJdbcPort( UnitOfWork uow, int port ); @Override String getJdbcUsername( UnitOfWork uow ); @Override void setJdbcUsername( UnitOfWork uow, String userName ); @Override String getJdbcPassword( UnitOfWork uow ); @Override void setJdbcPassword( UnitOfWork uow, String password ); @Override boolean isJdbcSecure( UnitOfWork uow ); @Override void setJdbcSecure( UnitOfWork uow, boolean secure ); @Override boolean isConnected(UnitOfWork uow); @Override CachedTeiid importContent(UnitOfWork transaction); @Override boolean addListener( ExecutionConfigurationListener listener ); @Override void permitListeners( boolean enable ); @Override void notifyListeners( ExecutionConfigurationEvent event ); @Override boolean removeListener( ExecutionConfigurationListener listener ); @Override boolean isSound(); @Override String getHost(); @Override int getPort(); @Override Object getParentObject(); @Override String getId(); @Override String getName(); @Override String getUsername(); @Override String getPassword(); @Override boolean isSecure(); @Override EventManager getEventManager(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void shouldHaveDefaultAdminSecureAfterConstruction() throws Exception { assertThat( this.teiid.isAdminSecure( getTransaction() ), is( TeiidAdminInfo.DEFAULT_SECURE ) ); }