private FileReference getAsFileReference(ReferenceService referenceService, T2Reference t2Reference) { Identified identified = referenceService.resolveIdentifier(t2Reference, null, null); if (identified instanceof ReferenceSet) { for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) { if (ref instanceof FileReference) { return (FileReference) ref; } } } return null; }
public synchronized boolean delete(ReferenceSet refSet) throws DaoException { return store.remove(refSet.getId())!=null; }
.getReferenceSetService() .getReferenceSet(reference); approximateSizeInBytes = refSet.getApproximateSizeInBytes() .longValue(); } catch (Exception ex) {
.getReferenceSetService() .getReferenceSet(reference); approximateSizeInBytes = refSet.getApproximateSizeInBytes() .longValue(); } catch (Exception ex) {
private static SshReference getAsSshReference(ReferenceService referenceService, T2Reference t2Reference) { Identified identified = referenceService.resolveIdentifier(t2Reference, null, null); if (identified instanceof ReferenceSet) { for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) { if (ref instanceof SshReference) { SshReference sshRef = (SshReference) ref; return sshRef; } } } return null; }
public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
.getReferenceSetService() .getReferenceSet(reference); approximateSizeInBytes = refSet.getApproximateSizeInBytes() .longValue(); } catch (Exception ex) {
protected InputStream getAsStream(ReferenceService referenceService, T2Reference t2Reference) { Identified identified = referenceService.resolveIdentifier(t2Reference, null, null); if (identified instanceof ReferenceSet) { ExternalReferenceSPI ref = ((ReferenceSet) identified).getExternalReferences().iterator().next(); return ref.openStream(invocationContext); } return null; }
public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
public SshReference getAsSshReference(ReferenceService referenceService, T2Reference t2Reference, SshNode workerNode) { Identified identified = referenceService.resolveIdentifier(t2Reference, null, null); if (identified instanceof ReferenceSet) { for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) { if (ref instanceof SshReference) { SshReference sshRef = (SshReference) ref; if (sshRef.getHost().equals(workerNode.getHost())) { return sshRef; } } } } return null; }
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
for (ExternalReferenceSPI er : rs.getExternalReferences()) { if (er.getClass().equals( translators.get(0).getSourceReferenceType())) {
public synchronized void update(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
for (ExternalReferenceSPI er : rs.getExternalReferences()) { if (er.getClass().equals( translators.get(0).getSourceReferenceType())) {
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
for (ExternalReferenceSPI er : rs.getExternalReferences()) { if (er.getClass().equals(translators.get(0).getSourceReferenceType())) { currentReference = er;
public synchronized void store(ReferenceSet refSet) throws DaoException { store.put(refSet.getId(), refSet); }
for (ExternalReferenceSPI er : rs.getExternalReferences()) {
@DeleteIdentifiedOperation public boolean delete(ReferenceSet rs) throws DaoException { if (rs.getId() == null) { throw new DaoException( "Supplied reference set has a null ID, allocate " + "an ID before calling the store method in the dao."); } else if (rs.getId().getReferenceType().equals( T2ReferenceType.ReferenceSet) == false) { throw new DaoException( "Strangely the reference set ID doesn't have type " + "T2ReferenceType.ReferenceSet, something has probably " + "gone badly wrong somewhere earlier!"); } if (rs instanceof ReferenceSetImpl) { try { sessionFactory.getCurrentSession().delete(rs); } catch (Exception ex) { throw new DaoException(ex); } } else { throw new DaoException( "Supplied reference set not an instance of ReferenceSetImpl"); } return true; }
for (ExternalReferenceSPI er : rs.getExternalReferences()) {