|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
SIXLE's content repository
| Field Summary | |
static java.lang.String |
FILE_TYPE_BINARY
|
static java.lang.String |
FILE_TYPE_TEXT
|
static java.lang.String |
FILE_TYPE_XML
|
| Method Summary | |
void |
addLock(Transaction xact,
ItemLock newLock,
User user)
commits the (tentative) lock |
boolean |
canAccessCheckedoutItem(RepositoryItem item,
User user)
return true if the checked out item can be accessed by a user |
boolean |
canAccessLock(User user,
ItemLock lock)
returns true if the user can have access to resource lock |
void |
deleteAllExpiredLocks()
delete all expired locks from the ItemLocks table |
void |
deleteLock(Transaction xact,
ItemLock lock,
User user)
deletes a lock |
void |
deleteRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
deletes the given item on behalf of the given user as part of a larger transaction. |
void |
doBranchIndex(java.lang.String mimeType,
java.lang.String path,
int skip,
int count,
boolean renew)
indexes docs of a given mime type in a given section of the repository |
java.lang.String |
getBaseXfsDir()
get the repository base path on the file system |
java.util.Iterator |
getBranchWalker(java.lang.String path,
java.lang.String mimeType)
returns an interator over the items in a given branch with a given mimetype |
CherryPicker |
getCherryPicker(User user)
gets an object for picking a set of branches on behalf of the given user from a collection of XML documents in the repository |
ItemLock[] |
getCollectionLocks(Transaction xact)
|
ItemLock |
getItemLock(Transaction xact,
RepositoryItem item)
return first lock on the given item |
ItemLock[] |
getItemLocks(Transaction xact,
RepositoryItem item)
return all the locks on the given item |
java.util.Hashtable |
getNullResourceLocks()
|
RepositoryItem |
getOrCreateFolder(Transaction xact,
User user,
java.lang.String path)
gets the named folder on behalf of the given user for updating, create the folder if it doesn't exist |
RepositoryItem |
getRepositoryItem(Transaction xact,
User user,
java.lang.String itemID)
returns the identified item, writeable under the given transaction |
RepositoryItem |
getRepositoryItem(User user,
java.lang.String itemID)
gets the identified item on behalf of the given user |
RepositoryItem |
getRepositoryItemByPath(Transaction xact,
User user,
java.lang.String path)
gets the named item on behalf of the given user for updating |
RepositoryItem |
getRepositoryItemByPath(User user,
java.lang.String path)
gets the named item on behalf of the given user |
ItemLock[] |
getResourceLocks()
|
boolean |
isItemCheckedout(RepositoryItem item,
User user)
return true if item is already checked out |
boolean |
isItemLocked(RepositoryItem item,
java.lang.String ifHeader,
User user)
Check to see if a resource is currently write locked. |
boolean |
isReadOnly()
gets the read-only status of the repository |
void |
listDeletedRepositoryItems(User user,
org.xml.sax.ContentHandler dest)
retrieves the list of repository items and writes it to the given content handler |
void |
loadJar(java.io.InputStream jarStream,
User user,
java.lang.String basePath)
gets the files identified by paths to a jarfile, on behalf of the given user |
ItemLock |
newLock(java.lang.String path)
create a new (tentative) lock on an item in the repository |
void |
purgeItemAndVersions(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
permanantly deletes the given item and its versions. |
void |
purgeItemVersions(Transaction xact,
User user,
int keepRecent,
java.lang.String recurse,
RepositoryItem item)
permanently delete the versions of an item excluding the latest version and also excluding few of the recent versions |
void |
purgeRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
permanantly deletes the given item. |
void |
restoreRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
restore the given item |
void |
setReadOnly(boolean readOnlyStatus)
sets the read-only status of the repository |
Transaction |
startTransaction()
return a new object for managing commit/rollback on some set of actions on the repository |
void |
updateLock(Transaction xact,
ItemLock lock,
User user)
updates a lock |
void |
writeJar(java.io.OutputStream jarStream,
User user,
java.lang.String[] paths,
java.lang.String basePath)
gets the files identified by paths to a jarfile, on behalf of the given user |
| Field Detail |
public static final java.lang.String FILE_TYPE_TEXT
public static final java.lang.String FILE_TYPE_BINARY
public static final java.lang.String FILE_TYPE_XML
| Method Detail |
public void setReadOnly(boolean readOnlyStatus)
public boolean isReadOnly()
public void listDeletedRepositoryItems(User user,
org.xml.sax.ContentHandler dest)
throws XfsException
XfsException
public RepositoryItem getRepositoryItem(User user,
java.lang.String itemID)
throws XfsException
XfsException
public RepositoryItem getRepositoryItem(Transaction xact,
User user,
java.lang.String itemID)
throws XfsException
XfsException
public RepositoryItem getRepositoryItemByPath(User user,
java.lang.String path)
throws XfsException
XfsException
public RepositoryItem getOrCreateFolder(Transaction xact,
User user,
java.lang.String path)
throws XfsException
XfsException
public RepositoryItem getRepositoryItemByPath(Transaction xact,
User user,
java.lang.String path)
throws XfsException
XfsException
public CherryPicker getCherryPicker(User user)
throws XfsException
XfsException
public void writeJar(java.io.OutputStream jarStream,
User user,
java.lang.String[] paths,
java.lang.String basePath)
throws XfsException
XfsException
public void loadJar(java.io.InputStream jarStream,
User user,
java.lang.String basePath)
throws XfsException
XfsException
public void deleteRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
throws XfsException
XfsException
public void purgeRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
throws XfsException
XfsException
public void purgeItemAndVersions(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
throws XfsException
XfsException
public void purgeItemVersions(Transaction xact,
User user,
int keepRecent,
java.lang.String recurse,
RepositoryItem item)
throws XfsException
keepRecent - excludes number of recent versions as specified in this argument, from deletion.
XfsException
public void restoreRepositoryItem(Transaction xact,
User user,
java.lang.String recurse,
RepositoryItem item)
throws XfsException
XfsExceptionpublic ItemLock newLock(java.lang.String path)
public void addLock(Transaction xact,
ItemLock newLock,
User user)
throws XfsException
XfsException
public void deleteLock(Transaction xact,
ItemLock lock,
User user)
throws XfsException
XfsException
public void updateLock(Transaction xact,
ItemLock lock,
User user)
throws XfsException
XfsException
public ItemLock[] getItemLocks(Transaction xact,
RepositoryItem item)
throws XfsException
XfsException
public ItemLock getItemLock(Transaction xact,
RepositoryItem item)
throws XfsException
XfsExceptionpublic ItemLock[] getResourceLocks()
public java.util.Hashtable getNullResourceLocks()
public ItemLock[] getCollectionLocks(Transaction xact)
public boolean canAccessLock(User user,
ItemLock lock)
public boolean isItemLocked(RepositoryItem item,
java.lang.String ifHeader,
User user)
item - the RepositoryItem under considerationifHeader - "If" HTTP header which was included in the requestuser - User on whose behalf we're checking
public boolean isItemCheckedout(RepositoryItem item,
User user)
public boolean canAccessCheckedoutItem(RepositoryItem item,
User user)
item - checked out version of an repository itemuser - User to testpublic void deleteAllExpiredLocks()
public java.lang.String getBaseXfsDir()
public java.util.Iterator getBranchWalker(java.lang.String path,
java.lang.String mimeType)
throws XfsException
XfsException
public void doBranchIndex(java.lang.String mimeType,
java.lang.String path,
int skip,
int count,
boolean renew)
throws XfsException
XfsException
public Transaction startTransaction()
throws XfsException
XfsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||