◆ DocumentsRoot()
org.turro.elephant.documents.DocumentsRoot.DocumentsRoot |
( |
DocumentsBean |
docBean, |
|
|
String |
realRoot, |
|
|
String |
relativeRoot, |
|
|
Element |
config |
|
) |
| |
Creates a new instance of DocumentsRoot
Definition at line 44 of file DocumentsRoot.java.
45 this.docBean = docBean;
46 this.realRoot = realRoot;
47 this.docsRoot = realRoot + relativeRoot;
48 this.configuration = config;
49 privateKey = Cipher.digest(docsRoot, 30);
void setAttribute(String key, String value)
◆ addInsertionPoint()
void org.turro.elephant.documents.DocumentsRoot.addInsertionPoint |
( |
String |
ident, |
|
|
String |
name |
|
) |
| |
Definition at line 185 of file DocumentsRoot.java.
187 new File(
getPath() +
"/" + ident).mkdirs();
188 Properties props =
new Properties();
189 props.put(
"root.name", name);
ProcessMessages getMessages()
String getAttribute(String attrib)
void savePropertiesTo(String folder, Properties props)
void addMessage(String message)
void addError(String message)
◆ getAttribute()
String org.turro.elephant.documents.DocumentsRoot.getAttribute |
( |
String |
attrib | ) |
|
Definition at line 99 of file DocumentsRoot.java.
100 return configuration !=
null ? configuration.getAttributeValue(attrib) :
null;
◆ getCanDelete()
boolean org.turro.elephant.documents.DocumentsRoot.getCanDelete |
( |
| ) |
|
◆ getCanDelFolder()
boolean org.turro.elephant.documents.DocumentsRoot.getCanDelFolder |
( |
| ) |
|
◆ getCanNew()
boolean org.turro.elephant.documents.DocumentsRoot.getCanNew |
( |
| ) |
|
◆ getCanNewFolder()
boolean org.turro.elephant.documents.DocumentsRoot.getCanNewFolder |
( |
| ) |
|
◆ getDocumentsBean()
DocumentsBean org.turro.elephant.documents.DocumentsRoot.getDocumentsBean |
( |
| ) |
|
◆ getDownloadURL()
String org.turro.elephant.documents.DocumentsRoot.getDownloadURL |
( |
| ) |
|
◆ getFileDocumentRoot()
FileDocument org.turro.elephant.documents.DocumentsRoot.getFileDocumentRoot |
( |
| ) |
|
◆ getFileDocumentSelected()
FileDocument org.turro.elephant.documents.DocumentsRoot.getFileDocumentSelected |
( |
| ) |
|
Definition at line 95 of file DocumentsRoot.java.
96 return new FileDocument(
this,
null, docsRoot + selected);
◆ getInsertionFolders()
FileDocument [] org.turro.elephant.documents.DocumentsRoot.getInsertionFolders |
( |
| ) |
|
Definition at line 145 of file DocumentsRoot.java.
146 Vector v =
new Vector();
149 if(pattern ==
null || fd.getName().matches(pattern)) {
153 return (FileDocument[]) v.toArray(
new FileDocument[0]);
FileDocument getFileDocumentRoot()
◆ getInsertionPointsWrapped()
Collection org.turro.elephant.documents.DocumentsRoot.getInsertionPointsWrapped |
( |
| ) |
|
Definition at line 134 of file DocumentsRoot.java.
135 Vector v =
new Vector();
138 if(pattern ==
null || fd.getName().matches(pattern)) {
139 v.add(
new FileDocumentWrapper(fd,
true));
◆ getNotValidated()
Collection<FileDocument> org.turro.elephant.documents.DocumentsRoot.getNotValidated |
( |
| ) |
|
◆ getPath()
String org.turro.elephant.documents.DocumentsRoot.getPath |
( |
| ) |
|
◆ getPropertiesFrom()
Properties org.turro.elephant.documents.DocumentsRoot.getPropertiesFrom |
( |
String |
folder | ) |
|
Definition at line 73 of file DocumentsRoot.java.
75 getPath() +
"/" + folder +
"/.docs.properties");
Properties getPropertiesFile(String file)
DocumentsBean getDocumentsBean()
◆ getPropertiesFromUser()
Properties org.turro.elephant.documents.DocumentsRoot.getPropertiesFromUser |
( |
IUser |
user | ) |
|
Definition at line 53 of file DocumentsRoot.java.
54 File userFolder =
new File(
getPath() +
"/" + user.getId());
55 if(!userFolder.exists()) {
57 Properties props =
new Properties();
58 props.put(
"root.name", user.getName());
Properties getPropertiesFrom(String folder)
◆ getRelativePath()
String org.turro.elephant.documents.DocumentsRoot.getRelativePath |
( |
String |
path | ) |
|
Definition at line 127 of file DocumentsRoot.java.
128 if(path.startsWith(docsRoot)) {
129 return path.substring(docsRoot.length());
◆ readConfig()
String org.turro.elephant.documents.DocumentsRoot.readConfig |
( |
String |
property | ) |
|
◆ readRootConfig()
String org.turro.elephant.documents.DocumentsRoot.readRootConfig |
( |
String |
property | ) |
|
◆ savePropertiesTo()
void org.turro.elephant.documents.DocumentsRoot.savePropertiesTo |
( |
String |
folder, |
|
|
Properties |
props |
|
) |
| |
Definition at line 78 of file DocumentsRoot.java.
80 getPath() +
"/" + folder +
"/.docs.properties");
void savePropertiesFile(Properties props, String file)
◆ savePropertiesToUser()
void org.turro.elephant.documents.DocumentsRoot.savePropertiesToUser |
( |
Properties |
props, |
|
|
IUser |
user |
|
) |
| |
Definition at line 65 of file DocumentsRoot.java.
66 File userFolder =
new File(
getPath() +
"/" + user.getId());
67 if(!userFolder.exists()) {
◆ setFileDocumentSelected()
void org.turro.elephant.documents.DocumentsRoot.setFileDocumentSelected |
( |
String |
selected | ) |
|
The documentation for this class was generated from the following file: