|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.ObjectFile
public class ObjectFile
Class used to retrieve ObjectObj
attached file content and metadata.
Field Summary | |
---|---|
static int |
INDEXED_OPTION
The Indexed flag index inside the Option Set |
Constructor Summary | |
---|---|
ObjectFile()
|
|
ObjectFile(java.lang.String fileTypeName,
java.lang.String fileName)
Define new ObjectObj 's file |
Method Summary | |
---|---|
void |
addLocalArea(java.lang.String localAreaName,
int syncValue,
java.lang.String sLAFileName)
Add a LocalArea [INTERNAL USAGE] |
void |
fromXML(org.jdom.Element rootElement)
Load the ObjectFile from XML element tree |
void |
fromXML(org.jdom.Element rootElement,
java.lang.String attachmentsPath)
Load the ObjectFile from XML element tree |
byte[] |
getFileContent(Framework framework)
Get the file content |
java.lang.String |
getFileContentPath()
Get the file content path |
long |
getFileSize()
Get the file size (bytes) |
java.lang.String |
getFileSpace()
Get the FileSpace name |
java.lang.String |
getFileType()
Get the file type |
java.lang.String |
getHashName()
Get the file hashed name |
void |
getHistory(Framework framework)
[Inherited but not used] |
java.lang.String |
getHostPath()
Get the file original host path |
java.lang.String |
getLAFileName(java.lang.String localAreaName)
Get the file name inside the localarea file system |
java.util.Vector<java.lang.String> |
getLocalArea()
Get the list of LocalAreas where the file is replicated. |
java.lang.String |
getLocker()
Set the locker |
java.lang.String |
getName()
Get the file name |
ObjectObj |
getObject()
Get the ObjectStage relative ObjectObj name |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this ObjectFile by its OOQL identifier |
java.lang.String |
getPutDate()
Get the file put date |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
[Inherited but not used] |
boolean |
isIndexed()
Return true if the file content is indexed for searching |
boolean |
isLocalSynchronized(java.lang.String localAreaName)
Check if a given LocalArea is synchronized (contains the most recent file version) |
boolean |
isLocked()
Check if the file is locked |
boolean |
isSpaceSynchronized()
Check if the FileSpace is synchronized (contains the most recent file version) |
java.io.File |
putContentToFile(java.lang.String path)
Save the file content to a disk file |
void |
resetLocker()
Reset the file lock [INTERNAL USAGE] |
void |
setFileContent(byte[] content)
Set the file content [INTERNAL USAGE] |
void |
setFileContentPath(java.lang.String filePath)
Set the file content path [INTERNAL USAGE] |
void |
setFileSize(long size)
Set the file size [INTERNAL USAGE] |
void |
setFileSpace(java.lang.String fileSpaceName)
Set the FileSpace [INTERNAL USAGE] |
void |
setFileType(java.lang.String fileType)
Set the file type [INTERNAL USAGE] |
void |
setHashName(java.lang.String hashName)
Set the file hashed name [INTERNAL USAGE] |
void |
setHostPath(java.lang.String hostPath)
Set the file original host path [INTERNAL USAGE] |
void |
setIndexed(boolean indexed)
Set the indexed flag [INTERNAL USAGE] |
void |
setLocker(java.lang.String userName)
Set the locker ( User ) [INTERNAL USAGE] |
void |
setName(java.lang.String fileName)
Set the file name [INTERNAL USAGE] |
void |
setObject(ObjectObj objectobj)
Set the ObjectStage relative ObjectObj [INTERNAL USAGE] |
void |
setPutDate(java.lang.String date)
Set the file put date [INTERNAL USAGE] |
java.lang.String |
toString(java.lang.String indent)
Return the ObjectFile properties as a single String |
org.jdom.Element |
toXML(Framework framework)
Return the ObjectFile properties as XML element tree |
org.jdom.Element |
toXML(java.lang.String getContentPath,
Framework framework)
Return the ObjectFile properties as XML element tree |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INDEXED_OPTION
Constructor Detail |
---|
public ObjectFile()
public ObjectFile(java.lang.String fileTypeName, java.lang.String fileName)
ObjectObj
's file
fileTypeName
- the FileType
namefileName
- the file nameMethod Detail |
---|
public void setName(java.lang.String fileName)
public java.lang.String getName()
getName
in class OBBase
public void setObject(ObjectObj objectobj)
ObjectObj
[INTERNAL USAGE]
public ObjectObj getObject()
ObjectObj
name
public void setHashName(java.lang.String hashName)
public java.lang.String getHashName()
public java.lang.String getLAFileName(java.lang.String localAreaName)
public void setFileType(java.lang.String fileType)
FileType
public java.lang.String getFileType()
FileType
public void setFileSpace(java.lang.String fileSpaceName)
FileSpace
[INTERNAL USAGE]
public java.lang.String getFileSpace()
FileSpace
name
public void setFileSize(long size)
public long getFileSize()
public void setLocker(java.lang.String userName)
User
) [INTERNAL USAGE]
public void resetLocker()
public java.lang.String getLocker()
User
who lock the file (empty if not locked)public boolean isLocked()
public void setPutDate(java.lang.String date)
public java.lang.String getPutDate()
public void setIndexed(boolean indexed)
public boolean isIndexed()
public void setHostPath(java.lang.String hostPath)
public java.lang.String getHostPath()
public void addLocalArea(java.lang.String localAreaName, int syncValue, java.lang.String sLAFileName)
LocalArea
[INTERNAL USAGE]
public java.util.Vector<java.lang.String> getLocalArea()
LocalArea
names.public boolean isSpaceSynchronized()
FileSpace
is synchronized (contains the most recent file version)
public boolean isLocalSynchronized(java.lang.String localAreaName)
LocalArea
is synchronized (contains the most recent file version)
public void getHistory(Framework framework) throws OberonException
OberonException
public void setFileContent(byte[] content)
public void setFileContentPath(java.lang.String filePath)
public byte[] getFileContent(Framework framework) throws OberonException
OberonException
public java.lang.String getFileContentPath()
public java.io.File putContentToFile(java.lang.String path) throws java.io.IOException, OberonException
path
- the disk file path/name
java.io.IOException
OberonException
public java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: filetype , size ...)filterArgs
- extra arguments used to compute propertiestoken
- separator token for complex propertiesframework
- the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
getTargetNames
in class OBBase
public org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic org.jdom.Element toXML(java.lang.String getContentPath, Framework framework)
getContentPath
- if not empty/null extracts the content to the specified pathframework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public void fromXML(org.jdom.Element rootElement, java.lang.String attachmentsPath)
public java.lang.String toString(java.lang.String indent)
indent
- set the row indent chars
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |