|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.naregi.rns.RNSDBFile
org.naregi.rns.RNSDBXML
public class RNSDBXML
An implementation to store into local files as XML (using XMLEncoder).
| Field Summary |
|---|
| Fields inherited from class org.naregi.rns.RNSDBFile |
|---|
aclents, id, list, rnsProps |
| Fields inherited from interface org.naregi.rns.RNSDB |
|---|
TYPE_DERBY, TYPE_FILE, TYPE_MEMORY, TYPE_XML |
| Constructor Summary | |
|---|---|
RNSDBXML()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Delete this directory permanently. |
void |
insertEntryData(java.lang.String name,
RNSEntryData ent)
Create a new entry and Insert a new entry data. |
protected void |
load()
|
void |
removeACL(short type,
java.lang.String[] names)
Remove the ACL of this directory. |
void |
removeEntryData(java.lang.String name)
Remove an entry. |
void |
rename(java.lang.String from,
java.lang.String to)
Change an entry name. |
void |
replaceMetadata(java.lang.String name,
org.apache.axis.message.MessageElement[] xmls)
Replace a Metadata of the entry. |
void |
setAccessTime(java.util.Calendar t)
Set a time at which the RNS directory is last accessed. |
void |
setACL(ACL acl)
Replace an ACL information to this directory. |
void |
setCreateTime(java.util.Calendar t)
Set a time at which the RNS directory is created. |
void |
setDirectoryProperties(RNSDirectoryProperties props)
Set properties to this directory. |
void |
setModificationTime(java.util.Calendar t)
Set a time at which the RNS directory is last modified. |
protected void |
store()
|
| Methods inherited from class org.naregi.rns.RNSDBFile |
|---|
commit, createAndSetNewID, createAndSetNewRootID, getACL, getDirectoryProperties, getEntryData, getID, getIdAsFile, getList, getListSize, getLockAndStartTransaction, getRootID, getStorageDirBase, rollback, setDataSuffix, setID, setMaxDir, setMaxFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RNSDBXML()
| Method Detail |
|---|
protected void load()
throws org.globus.wsrf.ResourceException
load in class RNSDBFileorg.globus.wsrf.ResourceException
protected void store()
throws org.globus.wsrf.ResourceException
store in class RNSDBFileorg.globus.wsrf.ResourceExceptionpublic void setDirectoryProperties(RNSDirectoryProperties props)
RNSDB
setDirectoryProperties in interface RNSDBsetDirectoryProperties in class RNSDBFilepublic void setAccessTime(java.util.Calendar t)
RNSDB
setAccessTime in interface RNSDBsetAccessTime in class RNSDBFilet - a time at which the RNS directory is last accessedpublic void setCreateTime(java.util.Calendar t)
RNSDB
setCreateTime in interface RNSDBsetCreateTime in class RNSDBFilet - a time at which the RNS resource is created.public void setModificationTime(java.util.Calendar t)
RNSDB
setModificationTime in interface RNSDBsetModificationTime in class RNSDBFilet - a time at which the RNS directory is last modified
public void insertEntryData(java.lang.String name,
RNSEntryData ent)
RNSDB
insertEntryData in interface RNSDBinsertEntryData in class RNSDBFilename - an entry nameent - the entry data (should not be null)
public void removeEntryData(java.lang.String name)
throws java.lang.Exception
RNSDB
removeEntryData in interface RNSDBremoveEntryData in class RNSDBFilename - a name to be removed.
java.lang.Exception
public void rename(java.lang.String from,
java.lang.String to)
throws java.lang.Exception
RNSDB
rename in interface RNSDBrename in class RNSDBFilefrom - old nameto - new name
java.lang.Exception
public void replaceMetadata(java.lang.String name,
org.apache.axis.message.MessageElement[] xmls)
throws java.lang.Exception
RNSDB
replaceMetadata in interface RNSDBreplaceMetadata in class RNSDBFilename - an entry name.xmls - Metadata
java.lang.Exception
public void destroy()
throws java.lang.Exception
RNSDB
destroy in interface RNSDBdestroy in class RNSDBFilejava.lang.Exception
public void setACL(ACL acl)
throws java.lang.Exception
RNSDB
setACL in interface RNSDBsetACL in class RNSDBFileacl - ACL
java.lang.Exception
public void removeACL(short type,
java.lang.String[] names)
throws java.lang.Exception
RNSDB
removeACL in interface RNSDBremoveACL in class RNSDBFiletype - ACL type (see ACL)names - if names is null, the entries of type are removed.
java.lang.Exception - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||