/** * Set the name of the bitstream * * @param context context * @param n the new name of the bitstream * @throws SQLException if database error */ public void setName(Context context, String n) throws SQLException { getBitstreamService().setMetadataSingleValue(context, this, MetadataSchema.DC_SCHEMA, "title", null, null, n); }
/** * Set the source of the bitstream * * @param context context * @param n the new source of the bitstream * @throws SQLException if database error */ public void setSource(Context context, String n) throws SQLException { getBitstreamService().setMetadataSingleValue(context, this, MetadataSchema.DC_SCHEMA, "source", null, null, n); }
/** * Set the description of the bitstream * * @param context context * @param n the new description of the bitstream * @throws SQLException if database error */ public void setDescription(Context context, String n) throws SQLException { getBitstreamService() .setMetadataSingleValue(context, this, MetadataSchema.DC_SCHEMA, "description", null, null, n); }
/** * Add date for bitstream granted (used into the use case for license grant the * {@link LicenseUtils#grantLicense(Context, Item, String, String)} * * @param context the dspace context * @param acceptanceDate the granted date * @throws SQLException */ public void setAcceptanceDate(Context context, DCDate acceptanceDate) throws SQLException { getBitstreamService() .setMetadataSingleValue(context, this, "dcterms", "accessRights", null, null, acceptanceDate.toString()); }