@Override public String toString() { return "IndexedRepresentation [uuid=" + uuid + ", title=" + title + ", sizeInBytes=" + sizeInBytes + ", numberOfDataFiles=" + numberOfDataFiles + ", numberOfDataFolders=" + numberOfDataFolders + " numberOfDocumentationFiles=" + numberOfDocumentationFiles + ", numberOfSchemaFiles=" + numberOfSchemaFiles + ", ancestors=" + ancestors + ", createdOn=" + super.getCreatedOn() + ", createdBy=" + super.getCreatedBy() + ", updatedOn=" + super.getUpdatedOn() + ", updatedBy=" + super.getUpdatedBy() + ", representationStates=" + super.getRepresentationStates() + ']'; }
public DIP(DIP other) { this(other.getId(), other.getTitle(), other.getDescription(), other.getType(), other.getDateCreated(), other.getLastModified(), other.getIsPermanent(), other.getProperties(), other.getAipIds(), other.getRepresentationIds(), other.getFileIds(), other.getPermissions()); }
public static String getStoragePathAsString(StoragePath storagePath, boolean skipStoragePathContainer, StoragePath anotherStoragePath, boolean skipAnotherStoragePathContainer) { return storagePath.asString(SEPARATOR, SEPARATOR_REGEX, SEPARATOR_REPLACEMENT, skipStoragePathContainer) + SEPARATOR + anotherStoragePath.asString(SEPARATOR, SEPARATOR_REGEX, SEPARATOR_REPLACEMENT, skipAnotherStoragePathContainer); }
/** * Constructs a new {@link IndexedAIP} cloning the one given by argument. * * @param other * the {@link IndexedAIP} to be cloned. */ public IndexedAIP(IndexedAIP other) { this(other.getId(), other.getState(), other.getType(), other.getLevel(), other.getTitle(), other.getDateInitial(), other.getDateFinal(), other.getDescription(), other.getParentID(), other.getAncestors(), other.getPermissions(), other.getNumberOfSubmissionFiles(), other.getNumberOfDocumentationFiles(), other.getNumberOfSchemaFiles(), other.getHasRepresentations(), other.getGhost()); }
public IndexedRepresentation(String uuid, String id, String aipId, boolean original, String type, String title, long sizeInBytes, long totalNumberOfFiles, long totalNumberOfFolders, long numberOfDocumentationFiles, long numberOfSchemaFiles, List<String> ancestors) { super(id, aipId, original, type); this.uuid = uuid; this.setTitle(title); this.sizeInBytes = sizeInBytes; this.numberOfDataFiles = totalNumberOfFiles; this.setNumberOfDataFolders(totalNumberOfFolders); this.numberOfDocumentationFiles = numberOfDocumentationFiles; this.numberOfSchemaFiles = numberOfSchemaFiles; this.ancestors = ancestors; }
@Override public String getUniqueId(DIP modelObject) { return modelObject.getId(); }
public SIPUpdateInformation(SIPUpdateInformation other) { updatedData = other.getUpdatedData(); }
public Set<PermissionType> getUserPermissions(String username) { return getPermissions(username, users); }
@Override public String getDescription() { return "Permanently removes AIP(s) from the repository whose ingest failed (state=" + AIPState.INGEST_PROCESSING.toString() + "). Data, metadata and event history will be deleted permanently. WARNING: This operation cannot be undone. Use with extreme caution."; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((storagePath == null) ? 0 : storagePath.hashCode()); return result; }
public IndexedDIP(IndexedDIP dip) { super(dip); this.openExternalURL = dip.getOpenExternalURL(); }
@Override public boolean equals(Object obj) { return super.equals(obj); }
@Override public String getUniqueId(AIP modelObject) { return modelObject.getId(); }
@Override public String toString() { return "IndexedDIP [super=" + super.toString() + ", openExternalURL=" + openExternalURL + "]"; }
@Override public String getUniqueId(TransferredResource modelObject) { return modelObject.getUUID(); }
@Override public int hashCode() { return super.hashCode(); }
public void setGroupPermissions(String groupname, Set<PermissionType> permissions) { setPermissions(groupname, permissions, groups); }
public void setFormat(String name, String version) { this.format = new AIPFormat(name, version); }
public Set<PermissionType> getGroupPermissions(String groupname) { return getPermissions(groupname, groups); }