/** * Create a full reference from a relative reference merged with a root reference. * * @param root * The root reference, which is the root of the full reference. * @param relative * The relative reference, to add to the path of the root. * @return A full reference from the root and relative references. */ public static String fullReference(String root, String relative) { String full = referencePath(root); full += relative; return full; }
/** * Collect the fields that need to be stored outside the XML (for the resource). * * @return An array of field values to store in the record outside the XML (for the resource). */ public Object[] storageFields(Entity r) { Object[] rv = new Object[1]; rv[0] = StringUtil.referencePath(((ContentCollection) r).getId()); return rv; }
rv[0] = StringUtil.referencePath(((ContentResource) r).getId()); rv[1] = ((BasicGroupAwareEdit) r).getContext(); rv[2] = Long.valueOf(((ContentResource) r).getContentLength()); rv[0] = StringUtil.referencePath(((ContentResource) r).getId()); rv[1] = ((BasicGroupAwareEdit) r).getContext(); rv[2] = Long.valueOf(((ContentResource) r).getContentLength()); rv[0] = StringUtil.referencePath(((ContentResource) r).getId()); rv[1] = StringUtil.trimToZero(((BaseResourceEdit) r).m_filePath); return rv; rv[0] = StringUtil.referencePath(((ContentResource) r).getId()); return rv;