public void deletePart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { try { for (int i=0, size = this.partVector.size(); i < size; i++) { org.osid.repository.Part part = (org.osid.repository.Part)this.partVector.elementAt(i); if (part.getId().isEqual(partId)) { this.partVector.removeElementAt(i); return; } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.warn(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public void deletePart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { try { for (int i=0, size = this.partVector.size(); i < size; i++) { org.osid.repository.Part part = (org.osid.repository.Part)this.partVector.elementAt(i); if (part.getId().isEqual(partId)) { this.partVector.removeElementAt(i); return; } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.error(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public void deletePart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { try { for (int i=0, size = this.partVector.size(); i < size; i++) { org.osid.repository.Part part = (org.osid.repository.Part)this.partVector.elementAt(i); if (part.getId().isEqual(partId)) { this.partVector.removeElementAt(i); return; } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.error(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public void deletePart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { try { for (int i=0, size = this.partVector.size(); i < size; i++) { org.osid.repository.Part part = (org.osid.repository.Part)this.partVector.elementAt(i); if (part.getId().isEqual(partId)) { this.partVector.removeElementAt(i); return; } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.warn(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public org.osid.repository.Part getPart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { if (partId == null) { throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.NULL_ARGUMENT); } try { for (int i=0, size = this.recordVector.size(); i < size; i++) { org.osid.repository.Record record = (org.osid.repository.Record)this.recordVector.elementAt(i); org.osid.repository.PartIterator partIterator = record.getParts(); while (partIterator.hasNextPart()) { org.osid.repository.Part part = partIterator.nextPart(); if (part.getId().isEqual(partId)) { return part; } } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.error(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public org.osid.repository.Part getPart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { if (partId == null) { throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.NULL_ARGUMENT); } try { for (int i=0, size = this.recordVector.size(); i < size; i++) { org.osid.repository.Record record = (org.osid.repository.Record)this.recordVector.elementAt(i); org.osid.repository.PartIterator partIterator = record.getParts(); while (partIterator.hasNextPart()) { org.osid.repository.Part part = partIterator.nextPart(); if (part.getId().isEqual(partId)) { return part; } } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.warn(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public org.osid.repository.Part getPart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { if (partId == null) { throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.NULL_ARGUMENT); } try { for (int i=0, size = this.recordVector.size(); i < size; i++) { org.osid.repository.Record record = (org.osid.repository.Record)this.recordVector.elementAt(i); org.osid.repository.PartIterator partIterator = record.getParts(); while (partIterator.hasNextPart()) { org.osid.repository.Part part = partIterator.nextPart(); if (part.getId().isEqual(partId)) { return part; } } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.error(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }
public org.osid.repository.Part getPart(org.osid.shared.Id partId) throws org.osid.repository.RepositoryException { if (partId == null) { throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.NULL_ARGUMENT); } try { for (int i=0, size = this.recordVector.size(); i < size; i++) { org.osid.repository.Record record = (org.osid.repository.Record)this.recordVector.elementAt(i); org.osid.repository.PartIterator partIterator = record.getParts(); while (partIterator.hasNextPart()) { org.osid.repository.Part part = partIterator.nextPart(); if (part.getId().isEqual(partId)) { return part; } } } throw new org.osid.repository.RepositoryException(org.osid.shared.SharedException.UNKNOWN_ID); } catch (Throwable t) { log.warn(t.getMessage()); throw new org.osid.repository.RepositoryException(org.osid.OsidException.OPERATION_FAILED); } }