public void setLocalStatus( LocalStatus localStatus ) { getCurrentConfiguration( true ).setLocalStatus( localStatus.toString() ); }
@Subscribe @AllowConcurrentEvents public void inspect(final RepositoryEventLocalStatusChanged revt) { StringBuilder sb = new StringBuilder("The repository '"); sb.append(revt.getRepository().getName()); sb.append("' (ID='").append(revt.getRepository().getId()).append("') was put "); LocalStatus newStatus = revt.getNewLocalStatus(); if (LocalStatus.IN_SERVICE.equals(newStatus)) { sb.append("IN SERVICE."); } else if (LocalStatus.OUT_OF_SERVICE.equals(newStatus)) { sb.append("OUT OF SERVICE."); } else { sb.append(revt.getRepository().getLocalStatus().toString()).append("."); } sb.append(" The previous state was "); if (LocalStatus.IN_SERVICE.equals(revt.getOldLocalStatus())) { sb.append("IN SERVICE."); } else if (LocalStatus.OUT_OF_SERVICE.equals(revt.getOldLocalStatus())) { sb.append("OUT OF SERVICE."); } else { sb.append(revt.getOldLocalStatus().toString()).append("."); } getFeedRecorder().addSystemEvent(FeedRecorder.SYSTEM_REPO_LSTATUS_CHANGES_ACTION, sb.toString()); }
public DefaultCRepository() { // id // name // providerRole // providerHint setPathPrefix( null ); setLocalStatus( LocalStatus.IN_SERVICE.toString() ); setNotFoundCacheActive( false ); setNotFoundCacheTTL( 15 ); setUserManaged( true ); setExposed( true ); setBrowseable( true ); setWritePolicy( RepositoryWritePolicy.ALLOW_WRITE_ONCE.name() ); setIndexable( true ); setSearchable( true ); } }
resource.setLocalStatus(repo.getLocalStatus().toString());
dependent.setLocalStatus(shadow.getLocalStatus().toString());
resource.setLocalStatus( repo.getLocalStatus().toString() );
groupRepo.setIndexable( true ); groupRepo.setSearchable( false ); groupRepo.setLocalStatus( LocalStatus.IN_SERVICE.toString() );
repoRes.getStatus().setLocalStatus( repository.getLocalStatus().toString() );
dependent.setLocalStatus( shadow.getLocalStatus().toString() );
repoRes.getStatus().setLocalStatus(repository.getLocalStatus().toString());