class DocumentImpl implements Document, LazyLoaded<DocumentStorageService> {

    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat(DOCUMENT_DATE_PATTERN);
        return name + PROPERTIES_SEPARATOR + size + PROPERTIES_SEPARATOR + ((lastModified != null) ? sdf.format(lastModified) : "") + PROPERTIES_SEPARATOR + identifier;
    }

    public  DocumentImpl();
    public  DocumentImpl(String identifier,
                        String name,
                        long size,
                        Date lastModified);
    public  DocumentImpl(String name,
                        long size,
                        Date lastModified);
    public  DocumentImpl(String identifier,
                        String name,
                        long size,
                        Date lastModified,
                        String link);

}