|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.olat.commons.modules.bc.meta.MetaInfoFileImpl
public class MetaInfoFileImpl
Initial Date: 08.07.2003
| Constructor Summary | |
|---|---|
MetaInfoFileImpl()
|
|
MetaInfoFileImpl(java.io.File metaFile)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
copyValues(MetaInfo fromMeta)
Copy values from froMeta into this object except name. |
MetaInfo |
createMetaInfoFor(OlatRelPathImpl olatRelPathImpl)
Lazy initialization: A meta file is created based on file data if no meta file can be found for the given path. |
boolean |
delete()
Delete this meta info |
void |
deleteAll()
Delete all associated meta info including sub files/directories |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
java.lang.String |
getAuthor()
|
Identity |
getAuthorIdentity()
Returns the identity of the initial author (the same identity is used in MetaInfo.getAuthor(). |
java.lang.String |
getCity()
|
java.lang.String |
getComment()
Corresponds to DublinCore:description |
java.lang.String |
getCreator()
In this context, the creator is the person or organization that is primarily responsible for making the content. |
int |
getDownloadCount()
|
java.lang.String |
getFormattedSize()
|
java.lang.String |
getHTMLFormattedAuthor()
|
java.lang.String |
getIconCssClass()
|
java.lang.String |
getLanguage()
DublinCore compatible |
long |
getLastModified()
|
java.lang.Long |
getLockedBy()
|
Identity |
getLockedByIdentity()
|
java.util.Date |
getLockedDate()
|
java.lang.String |
getName()
|
java.lang.String |
getPages()
|
java.lang.String[] |
getPublicationDate()
Corresponds to DublinCore:date + refinement |
java.lang.String |
getPublisher()
DublinCore compatible |
long |
getSize()
|
java.lang.String |
getSource()
DublinCore compatible |
java.lang.String |
getTitle()
DublinCore compatible |
java.lang.String |
getUrl()
|
void |
increaseDownloadCount()
Increases the download count by one. |
boolean |
isDirectory()
|
boolean |
isLocked()
|
void |
moveCopyToDir(OlatRelPathImpl target,
boolean move)
Move/Copy the given meta info to the target directory. |
boolean |
parseXMLdom(java.io.File fMeta)
Deprecated. |
void |
rename(java.lang.String newName)
Rename the given meta info file |
void |
setAuthor(java.lang.String username)
|
void |
setAuthorIdentKey(java.lang.Long authorIdentKey)
|
void |
setCity(java.lang.String city)
|
void |
setComment(java.lang.String string)
|
void |
setCreator(java.lang.String creator)
|
void |
setLanguage(java.lang.String language)
|
void |
setLocked(boolean locked)
|
void |
setLockedBy(java.lang.Long lockedBy)
|
void |
setLockedDate(java.util.Date lockedDate)
|
void |
setPages(java.lang.String pages)
|
void |
setPublicationDate(java.lang.String month,
java.lang.String year)
|
void |
setPublisher(java.lang.String publisher)
|
void |
setSource(java.lang.String source)
|
void |
setTitle(java.lang.String title)
|
void |
setUrl(java.lang.String url)
|
void |
setWriter(java.lang.String writer)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
java.lang.String |
toString()
|
boolean |
write()
Writes the meta data to file. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetaInfoFileImpl()
public MetaInfoFileImpl(java.io.File metaFile)
| Method Detail |
|---|
public MetaInfo createMetaInfoFor(OlatRelPathImpl olatRelPathImpl)
createMetaInfoFor in interface MetaInfobcPath -
public void rename(java.lang.String newName)
rename in interface MetaInfometa - newName -
public void moveCopyToDir(OlatRelPathImpl target,
boolean move)
moveCopyToDir in interface MetaInfotargetDir - move - public void deleteAll()
deleteAll in interface MetaInfometa - public void copyValues(MetaInfo fromMeta)
copyValues in interface MetaInfofromMeta - public boolean isLocked()
isLocked in interface MetaInfopublic void setLocked(boolean locked)
setLocked in interface MetaInfopublic Identity getLockedByIdentity()
getLockedByIdentity in interface MetaInfopublic java.lang.Long getLockedBy()
getLockedBy in interface MetaInfopublic void setLockedBy(java.lang.Long lockedBy)
setLockedBy in interface MetaInfopublic java.util.Date getLockedDate()
getLockedDate in interface MetaInfopublic void setLockedDate(java.util.Date lockedDate)
setLockedDate in interface MetaInfopublic boolean write()
write in interface MetaInfopublic boolean delete()
delete in interface MetaInfo@Deprecated public boolean parseXMLdom(java.io.File fMeta)
fMeta - public java.lang.String getAuthor()
getAuthor in interface MetaInfopublic Identity getAuthorIdentity()
MetaInfoMetaInfo.getAuthor().
getAuthorIdentity in interface MetaInfoMetaInfo.getAuthorIdentity()public java.lang.String getHTMLFormattedAuthor()
getHTMLFormattedAuthor in interface MetaInfoMetaInfo.getHTMLFormattedAuthor()public java.lang.String getComment()
MetaInfo
getComment in interface MetaInfopublic java.lang.String getName()
getName in interface MetaInfopublic boolean isDirectory()
isDirectory in interface MetaInfopublic long getLastModified()
getLastModified in interface MetaInfopublic long getSize()
getSize in interface MetaInfopublic java.lang.String getFormattedSize()
getFormattedSize in interface MetaInfopublic void setAuthor(java.lang.String username)
setAuthor in interface MetaInfostring - public void setComment(java.lang.String string)
setComment in interface MetaInfostring - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getCity()
getCity in interface MetaInfoMetaInfo.getCity()public java.lang.String getLanguage()
MetaInfo
getLanguage in interface MetaInfoMetaInfo.getLanguage()public java.lang.String getPages()
getPages in interface MetaInfoMetaInfo.getPages()public java.lang.String[] getPublicationDate()
MetaInfo
getPublicationDate in interface MetaInfoorg.olat.core.commons.modules.bc.meta.MetaInfo#getPublishDate()public java.lang.String getPublisher()
MetaInfo
getPublisher in interface MetaInfoMetaInfo.getPublisher()public java.lang.String getCreator()
MetaInfo
getCreator in interface MetaInfoMetaInfo.getCreator()public java.lang.String getSource()
MetaInfo
getSource in interface MetaInfoMetaInfo.getSource()public java.lang.String getTitle()
MetaInfo
getTitle in interface MetaInfoMetaInfo.getTitle()public java.lang.String getUrl()
getUrl in interface MetaInfoMetaInfo.getUrl()public void setCity(java.lang.String city)
setCity in interface MetaInfoMetaInfo.setCity(java.lang.String)public void setLanguage(java.lang.String language)
setLanguage in interface MetaInfoMetaInfo.setLanguage(java.lang.String)public void setPages(java.lang.String pages)
setPages in interface MetaInfoMetaInfo.setPages(java.lang.String)
public void setPublicationDate(java.lang.String month,
java.lang.String year)
setPublicationDate in interface MetaInfoorg.olat.core.commons.modules.bc.meta.MetaInfo#setPublishDate(java.lang.String)public void setPublisher(java.lang.String publisher)
setPublisher in interface MetaInfoMetaInfo.setPublisher(java.lang.String)public void setWriter(java.lang.String writer)
org.olat.core.commons.modules.bc.meta.MetaInfo#setWriter(java.lang.String)public void setCreator(java.lang.String creator)
setCreator in interface MetaInfoorg.olat.core.commons.modules.bc.meta.MetaInfo#setWriter(java.lang.String)public void setSource(java.lang.String source)
setSource in interface MetaInfoMetaInfo.setSource(java.lang.String)public void setTitle(java.lang.String title)
setTitle in interface MetaInfoMetaInfo.setTitle(java.lang.String)public void setUrl(java.lang.String url)
setUrl in interface MetaInfoMetaInfo.setUrl(java.lang.String)public void increaseDownloadCount()
MetaInfo
increaseDownloadCount in interface MetaInfoMetaInfo.increaseDownloadCount()public int getDownloadCount()
getDownloadCount in interface MetaInfoMetaInfo.getDownloadCount()public void setAuthorIdentKey(java.lang.Long authorIdentKey)
public final void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandler
public final void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandler
public final void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic java.lang.String getIconCssClass()
getIconCssClass in interface MetaInfoMetaInfo.getIconCssClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||