|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides those operations common to all objects in the repository
| Field Summary | |
static int |
BINARY
item is of type "BINARY" |
static int |
FOLDER
item is of type "FOLDER" |
static int |
STATUS_CLOBS
|
static int |
STATUS_DOCNODES
|
static int |
STATUS_FS
|
static int |
STATUS_FS_AND_DOCNODES
|
static int |
STATUS_FTI_COMPLETE
|
static int |
STATUS_FTI_PENDING
|
static int |
STATUS_FTI_REMOVAL_PENDING
|
static int |
STATUS_GONER
|
static int |
STATUS_PURGE_PENDING
|
static int |
TEXT
item is of type "TEXT" |
static int |
XML
item is of type "XML" |
| Method Summary | |
void |
checkinCheckedoutVersion(Transaction xact,
User user)
checkin a checkedout version of the item with this name, as a part of a larger transaction |
RepositoryItem |
checkoutVersion(Transaction xact,
User user)
checkout a version of the item with this name, as a part of a larger transaction . |
RepositoryItem |
createChildBinaryItem(User user,
java.lang.String name,
java.lang.String mimeType)
creates a new item as a child of this directory |
RepositoryItem |
createChildBinaryItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
creates a new item as a child of this directory |
RepositoryItem |
createChildDirItem(User user,
java.lang.String name)
creates a new FOLDER item as a child of this FOLDER |
RepositoryItem |
createChildTextItem(User user,
java.lang.String name,
java.lang.String mimeType)
creates a new item as a child of this directory |
RepositoryItem |
createChildTextItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
creates a new item as a child of this directory |
RepositoryItem |
createChildXMLItem(User user,
java.lang.String name,
java.lang.String mimeType)
creates a new XML item as a child of this FOLDER |
RepositoryItem |
createChildXMLItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
creates a new XML item as a child of this FOLDER |
int |
deleteSelf()
Deprecated. As of FDX 3.5, use deleteSelf( Timestamp, boolean ) |
int |
deleteSelf(java.sql.Timestamp deleteTime,
boolean isSubItem)
deletes row/s from the XStore Item table, if applicable. |
RepositoryItem[] |
getAllVersions()
|
java.lang.Object |
getApplicationObject(java.lang.Object key)
Return the application object identified by key for this item. |
java.lang.String |
getBaseURI()
return the base URI for this item suitable for resolving relative references |
RepositoryItem |
getCheckedoutVersion(Transaction xact,
User user)
get version of an item with this name which has been already checked out, as a part of a larger transaction |
RepositoryItem[] |
getChildren()
|
java.lang.String |
getCreateTime()
|
java.lang.String |
getDAVProperty(java.lang.String propertyName)
get the named webdav property associated with this item |
RepositoryItem[] |
getDeletedChildren()
|
java.lang.String |
getDirNamePath()
return a string representing the directory path in which this item lives i.e. |
java.lang.String |
getFullPath()
return the normalized full path name for the item within the repository. |
java.io.InputStream |
getInputStream()
gets a java byte InputStream for reading the binary data content from the repository |
java.lang.String |
getItemID()
|
int |
getItemType()
|
java.lang.String |
getMimeType()
get the item's MimeType |
java.lang.String |
getName()
get the item's name |
java.io.OutputStream |
getOutputStream()
get an OutputStream for writing binary data to the repository item |
int |
getOwnerID()
|
int |
getOwningGroupID()
returns the string identifier associated with the item's owning group |
java.lang.String |
getParentID()
get the ID of the item (folder) which contains this item |
PermBits |
getPermissions()
a bitmask authorization scheme |
int |
getRevisionNumber()
returns the revision number of this item |
java.lang.String |
getUpdateTime()
|
boolean |
isCheckedoutVersion()
true if item with this name represents the checked out version of the item with this name |
boolean |
isLatest()
true if this item represents the latest (current) revision of the item with this name |
void |
list(User user,
org.xml.sax.ContentHandler dest,
int depth)
emit the description of this item as XML. |
void |
listFolders(User user,
org.xml.sax.ContentHandler dest,
int depth)
emit the description of this item, and its folder descendents as XML. |
void |
move(User user,
java.lang.String fullpath)
changes the name and/or moves the item to another folder |
java.io.Reader |
openCharReader()
gets a java character stream Reader for reading the item's character content from the repository |
java.io.Writer |
openCharWriter()
get a Writer for writing character (text) content to the repository item |
org.xml.sax.XMLReader |
openXMLReader()
get a SAX XMLReader for reading (parsing) the repository XML content |
org.xml.sax.ContentHandler |
openXMLWriter()
get a SAX ContententHandler for writing XML content to the repository |
void |
setApplicationObject(java.lang.Object key,
java.lang.Object value)
Associate an application object with a key for this item. |
void |
setCreateTime(java.util.Date when)
set the time at which this was created |
void |
setDAVProperty(java.lang.String propertyName,
java.lang.String propertyValue)
set the named webdav property associated with this item |
void |
setItemType(int type)
set the item type identifier |
void |
setName(java.lang.String name)
sets the item's name |
void |
setOwnerID(int id)
set the item's ownership |
void |
setOwningGroupID(int id)
set the item's owning group |
void |
setParentID(java.lang.String id)
get the ID of the item (folder) which contains this item |
void |
setPermissions(PermBits permissions)
a bitmask authorization scheme |
void |
setUpdateTime(java.util.Date updated)
sets the last modified time |
void |
uncheckoutCheckedoutVersion(Transaction xact,
User user)
uncheckout (cancel a checkout) by removing a checkedout version of item with this name, as a part of a larger transaction |
| Field Detail |
public static final int FOLDER
public static final int XML
public static final int BINARY
public static final int TEXT
public static final int STATUS_GONER
public static final int STATUS_FS
public static final int STATUS_DOCNODES
public static final int STATUS_FS_AND_DOCNODES
public static final int STATUS_CLOBS
public static final int STATUS_FTI_PENDING
public static final int STATUS_FTI_COMPLETE
public static final int STATUS_FTI_REMOVAL_PENDING
public static final int STATUS_PURGE_PENDING
| Method Detail |
public java.lang.String getItemID()
public int getOwnerID()
getOwnerID in interface PermissionSet
public void setOwnerID(int id)
throws XfsException
XfsExceptionpublic int getOwningGroupID()
getOwningGroupID in interface PermissionSetpublic PermBits getPermissions()
getPermissions in interface PermissionSet
public void setPermissions(PermBits permissions)
throws XfsException
XfsException
public void setOwningGroupID(int id)
throws XfsException
XfsExceptionpublic int getItemType()
public void setItemType(int type)
throws XfsException
XfsExceptionpublic java.lang.String getName()
public java.lang.String getFullPath()
public java.lang.String getDirNamePath()
throws XfsException
XfsException
public void setName(java.lang.String name)
throws XfsException
XfsException
public void move(User user,
java.lang.String fullpath)
throws XfsException
XfsExceptionpublic java.lang.String getCreateTime()
public void setCreateTime(java.util.Date when)
throws XfsException
XfsExceptionpublic java.lang.String getUpdateTime()
public void setUpdateTime(java.util.Date updated)
throws XfsException
XfsExceptionpublic java.lang.String getParentID()
public void setParentID(java.lang.String id)
throws XfsException
XfsExceptionpublic java.lang.String getMimeType()
public RepositoryItem[] getChildren()
throws XfsException
XfsException
public RepositoryItem[] getDeletedChildren()
throws XfsException
XfsException
public RepositoryItem[] getAllVersions()
throws XfsException
XfsException
public void list(User user,
org.xml.sax.ContentHandler dest,
int depth)
throws org.xml.sax.SAXException,
XfsException
dest - a SAX2 ContentHandler to write the xmldepth - in the case of folders, the
depth to recursively list children
org.xml.sax.SAXException
XfsException
public void setApplicationObject(java.lang.Object key,
java.lang.Object value)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public java.lang.Object getApplicationObject(java.lang.Object key)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public void listFolders(User user,
org.xml.sax.ContentHandler dest,
int depth)
throws org.xml.sax.SAXException,
XfsException
dest - a SAX2 ContentHandler to write the xmldepth - in the case of folders, the
depth to recursively list children
org.xml.sax.SAXException
XfsException
public RepositoryItem createChildDirItem(User user,
java.lang.String name)
throws XfsException
XfsException
public RepositoryItem createChildXMLItem(User user,
java.lang.String name,
java.lang.String mimeType)
throws XfsException
XfsException
public RepositoryItem createChildXMLItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
throws XfsException
XfsException
public RepositoryItem createChildTextItem(User user,
java.lang.String name,
java.lang.String mimeType)
throws XfsException
XfsException
public RepositoryItem createChildTextItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
throws XfsException
XfsException
public RepositoryItem createChildBinaryItem(User user,
java.lang.String name,
java.lang.String mimeType)
throws XfsException
XfsException
public RepositoryItem createChildBinaryItem(User user,
java.lang.String name,
java.lang.String mimeType,
java.io.InputStream is)
throws XfsException
XfsException
public int deleteSelf()
throws java.lang.Exception
deleteSelf( Timestamp, boolean )
java.lang.Exception
public int deleteSelf(java.sql.Timestamp deleteTime,
boolean isSubItem)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getBaseURI()
public org.xml.sax.ContentHandler openXMLWriter()
throws XfsException
XfsException
public java.io.Writer openCharWriter()
throws XfsException
XfsException
public java.io.OutputStream getOutputStream()
throws XfsException
XfsException
public org.xml.sax.XMLReader openXMLReader()
throws XfsException
XfsException
public java.io.Reader openCharReader()
throws XfsException
XfsException
public java.io.InputStream getInputStream()
throws XfsException
XfsExceptionpublic java.lang.String getDAVProperty(java.lang.String propertyName)
public void setDAVProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws XfsException
XfsExceptionpublic int getRevisionNumber()
public boolean isLatest()
public boolean isCheckedoutVersion()
public RepositoryItem getCheckedoutVersion(Transaction xact,
User user)
throws XfsException
XfsException
public RepositoryItem checkoutVersion(Transaction xact,
User user)
throws XfsException
xact - transaction this operation participates inuser - the User on whose behalf we're checking out
XfsException
public void checkinCheckedoutVersion(Transaction xact,
User user)
throws XfsException
xact - transaction this operation participates inuser - the User on whose behalf we're checking out
XfsException
public void uncheckoutCheckedoutVersion(Transaction xact,
User user)
throws XfsException
xact - transaction this operation participates inuser - the User on whose behalf we're checking out
XfsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||