◆ DocumentsBean()
org.turro.elephant.documents.DocumentsBean.DocumentsBean |
( |
| ) |
|
◆ getAddingInsertionPoint()
String org.turro.elephant.documents.DocumentsBean.getAddingInsertionPoint |
( |
| ) |
|
◆ getCanContact()
boolean org.turro.elephant.documents.DocumentsBean.getCanContact |
( |
| ) |
|
◆ getCanDelete()
boolean org.turro.elephant.documents.DocumentsBean.getCanDelete |
( |
| ) |
|
◆ getCanDelFolder()
boolean org.turro.elephant.documents.DocumentsBean.getCanDelFolder |
( |
| ) |
|
◆ getCanEditPermissions()
boolean org.turro.elephant.documents.DocumentsBean.getCanEditPermissions |
( |
| ) |
|
◆ getCanNew()
boolean org.turro.elephant.documents.DocumentsBean.getCanNew |
( |
| ) |
|
◆ getCanNewFolder()
boolean org.turro.elephant.documents.DocumentsBean.getCanNewFolder |
( |
| ) |
|
◆ getCanNewInsertPoint()
boolean org.turro.elephant.documents.DocumentsBean.getCanNewInsertPoint |
( |
| ) |
|
◆ getCanValidate()
boolean org.turro.elephant.documents.DocumentsBean.getCanValidate |
( |
| ) |
|
◆ getCanViewAs()
boolean org.turro.elephant.documents.DocumentsBean.getCanViewAs |
( |
| ) |
|
◆ getConstructor()
IConstructor org.turro.elephant.documents.DocumentsBean.getConstructor |
( |
| ) |
|
◆ getDocumentRootById()
DocumentsRoot org.turro.elephant.documents.DocumentsBean.getDocumentRootById |
( |
| ) |
|
Definition at line 184 of file DocumentsBean.java.
186 if(selectedId.equals(dr.getAttribute(
"id"))) {
187 dr.setFileDocumentSelected(selectedRoot);
DocumentsRoot[] getDocumentRoots()
◆ getDocumentRoots()
DocumentsRoot [] org.turro.elephant.documents.DocumentsBean.getDocumentRoots |
( |
| ) |
|
Definition at line 134 of file DocumentsBean.java.
135 if (selectedUser ==
null && constructor.
getUser() !=
null) {
138 ArrayList v =
new ArrayList();
139 Element config = getConfiguration();
141 if (config !=
null) {
142 DocumentsRoot userRoot;
143 Iterator it = config.getChildren(
"root").iterator();
145 while (it.hasNext()) {
147 el = (Element) it.next();
148 if (el.getAttribute(
"role") ==
null || constructor.
isInRole(el.getAttributeValue(
"role"))) {
149 docsRoot = el.getTextTrim();
150 if (
"true".equals(el.getAttributeValue(
"appendUser"))) {
151 if (selectedUser !=
null) {
152 userRoot =
new DocumentsRoot(
this, docsRoot,
"/" + selectedUser, el);
156 userRoot =
new DocumentsRoot(
this, docsRoot,
"", el);
160 if (userRoot !=
null) {
162 for (
int i = 0; i < 30; i++) {
163 id = userRoot.readConfig(
"allowed." + i);
165 v.add(
new DocumentsRoot(
this, docsRoot,
"/" +
id, el));
173 return (DocumentsRoot[]) v.toArray(
new DocumentsRoot[0]);
◆ getDownloadURL()
String org.turro.elephant.documents.DocumentsBean.getDownloadURL |
( |
| ) |
|
Definition at line 272 of file DocumentsBean.java.
273 return ElephantContext.getRootWebPath() +
"/Download";
◆ getFolders()
FileDocument [] org.turro.elephant.documents.DocumentsBean.getFolders |
( |
| ) |
|
Definition at line 243 of file DocumentsBean.java.
244 ArrayList v =
new ArrayList();
246 fillFolders(v, dr.getFileDocumentRoot(),
false);
248 return (FileDocument[]) v.toArray(
new FileDocument[0]);
DocumentsRoot[] getRootsForInsertion()
◆ getInsertionFolders()
FileDocument [] org.turro.elephant.documents.DocumentsBean.getInsertionFolders |
( |
| ) |
|
Definition at line 224 of file DocumentsBean.java.
225 ArrayList v =
new ArrayList();
227 fillFolders(v, dr.getFileDocumentRoot(),
"true".equals(dr.getAttribute(
"onlyLeafInsertion")));
229 FileDocument fds[] = (FileDocument[]) v.toArray(
new FileDocument[0]);
◆ getInsertionFoldersWrapped()
Collection org.turro.elephant.documents.DocumentsBean.getInsertionFoldersWrapped |
( |
| ) |
|
Definition at line 234 of file DocumentsBean.java.
235 ArrayList v =
new ArrayList();
237 v.add(
new FileDocumentWrapper(fd,
false));
FileDocument[] getInsertionFolders()
◆ getInsertionPointsWrapped()
Set<DocumentsRoot> org.turro.elephant.documents.DocumentsBean.getInsertionPointsWrapped |
( |
| ) |
|
Definition at line 368 of file DocumentsBean.java.
369 Set tmp =
new TreeSet();
370 Element config = getConfiguration();
372 if (config !=
null) {
373 DocumentsRoot userRoot;
374 Iterator it = config.getChildren(
"root").iterator();
376 while (it.hasNext()) {
378 el = (Element) it.next();
379 if (el.getAttribute(
"role") ==
null || constructor.
isInRole(el.getAttributeValue(
"role"))) {
380 docsRoot = el.getTextTrim();
381 userRoot =
new DocumentsRoot(
this, docsRoot,
"", el);
382 tmp.addAll(userRoot.getInsertionPointsWrapped());
◆ getLocalizer()
Localizer org.turro.elephant.documents.DocumentsBean.getLocalizer |
( |
| ) |
|
◆ getManagingFiles()
String org.turro.elephant.documents.DocumentsBean.getManagingFiles |
( |
| ) |
|
◆ getManagingPermissions()
String org.turro.elephant.documents.DocumentsBean.getManagingPermissions |
( |
| ) |
|
◆ getMessages()
◆ getMode()
int org.turro.elephant.documents.DocumentsBean.getMode |
( |
| ) |
|
◆ getNotValidated()
FileDocument [] org.turro.elephant.documents.DocumentsBean.getNotValidated |
( |
| ) |
|
Definition at line 264 of file DocumentsBean.java.
265 ArrayList v =
new ArrayList();
267 v.addAll(dr.getNotValidated());
269 return (FileDocument[]) v.toArray(
new FileDocument[0]);
DocumentsRoot[] getRealRoots()
◆ getPropertiesFile()
Properties org.turro.elephant.documents.DocumentsBean.getPropertiesFile |
( |
String |
file | ) |
|
Definition at line 280 of file DocumentsBean.java.
281 Properties tmp =
new Properties();
282 if (
new File(file).exists()) {
285 fis =
new FileInputStream(file);
288 }
catch (Exception ex) {
289 Logger.getLogger(
DocumentsBean.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ getRealRoots()
DocumentsRoot [] org.turro.elephant.documents.DocumentsBean.getRealRoots |
( |
| ) |
|
Definition at line 88 of file DocumentsBean.java.
89 ArrayList v =
new ArrayList();
90 Element config = getConfiguration();
93 DocumentsRoot userRoot;
94 Iterator it = config.getChildren(
"root").iterator();
96 while (it.hasNext()) {
98 el = (Element) it.next();
99 if (el.getAttribute(
"role") ==
null || constructor.
isInRole(el.getAttributeValue(
"role"))) {
100 docsRoot = el.getTextTrim();
101 userRoot =
new DocumentsRoot(
this, docsRoot,
"", el);
107 return (DocumentsRoot[]) v.toArray(
new DocumentsRoot[0]);
◆ getRealRootsWithUser()
DocumentsRoot [] org.turro.elephant.documents.DocumentsBean.getRealRootsWithUser |
( |
| ) |
|
Definition at line 110 of file DocumentsBean.java.
111 ArrayList v =
new ArrayList();
112 Element config = getConfiguration();
114 if (config !=
null) {
115 DocumentsRoot userRoot;
116 Iterator it = config.getChildren(
"root").iterator();
118 while (it.hasNext()) {
120 el = (Element) it.next();
121 if (el.getAttribute(
"role") ==
null || constructor.
isInRole(el.getAttributeValue(
"role"))) {
122 if (
"true".equals(el.getAttributeValue(
"appendUser"))) {
123 docsRoot = el.getTextTrim();
124 userRoot =
new DocumentsRoot(
this, docsRoot,
"", el);
131 return (DocumentsRoot[]) v.toArray(
new DocumentsRoot[0]);
◆ getRootsForInsertion()
DocumentsRoot [] org.turro.elephant.documents.DocumentsBean.getRootsForInsertion |
( |
| ) |
|
Definition at line 194 of file DocumentsBean.java.
195 if (selectedInsertion ==
null) {
196 return new DocumentsRoot[0];
198 ArrayList v =
new ArrayList();
199 Element config = getConfiguration();
201 if (config !=
null) {
202 DocumentsRoot userRoot;
203 Iterator it = config.getChildren(
"root").iterator();
205 while (it.hasNext()) {
207 el = (Element) it.next();
208 if (el.getAttribute(
"role") ==
null || constructor.
isInRole(el.getAttributeValue(
"role"))) {
209 docsRoot = el.getTextTrim();
210 if (
"true".equals(el.getAttributeValue(
"appendUser"))) {
211 userRoot =
new DocumentsRoot(
this, docsRoot,
"/" + selectedInsertion, el);
214 userRoot =
new DocumentsRoot(
this, docsRoot,
"", el);
221 return (DocumentsRoot[]) v.toArray(
new DocumentsRoot[0]);
◆ getSelectedUser()
String org.turro.elephant.documents.DocumentsBean.getSelectedUser |
( |
| ) |
|
◆ getShowingUsers()
String org.turro.elephant.documents.DocumentsBean.getShowingUsers |
( |
| ) |
|
◆ getUsers()
Set org.turro.elephant.documents.DocumentsBean.getUsers |
( |
| ) |
|
Definition at line 346 of file DocumentsBean.java.
347 Set tmp =
new TreeSet();
349 if (usr.isInRole(
"documents:list")) {
350 tmp.add(
new UserWrapper(
this, usr));
◆ getValidating()
String org.turro.elephant.documents.DocumentsBean.getValidating |
( |
| ) |
|
◆ isFolderSelected()
boolean org.turro.elephant.documents.DocumentsBean.isFolderSelected |
( |
FileDocument |
fd | ) |
|
Definition at line 394 of file DocumentsBean.java.
395 return selectedFolder !=
null && selectedFolder.equals(fd.getAbsolutePath());
◆ isInsertionSelected()
boolean org.turro.elephant.documents.DocumentsBean.isInsertionSelected |
( |
FileDocument |
fd | ) |
|
Definition at line 390 of file DocumentsBean.java.
391 return selectedInsertion !=
null && selectedInsertion.equals(fd.getName());
◆ isSelected()
boolean org.turro.elephant.documents.DocumentsBean.isSelected |
( |
IUser |
user | ) |
|
Definition at line 356 of file DocumentsBean.java.
357 if (selectedUser ==
null && constructor.
getUser() !=
null) {
361 return selectedUser !=
null && selectedUser.equals(user.getId());
◆ savePropertiesFile()
void org.turro.elephant.documents.DocumentsBean.savePropertiesFile |
( |
Properties |
props, |
|
|
String |
file |
|
) |
| |
Definition at line 295 of file DocumentsBean.java.
296 FileOutputStream fos;
298 fos =
new FileOutputStream(file);
299 props.store(fos,
null);
301 }
catch (Exception ex) {
302 Logger.getLogger(
DocumentsBean.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ setAttribute()
void org.turro.elephant.documents.DocumentsBean.setAttribute |
( |
String |
key, |
|
|
String |
value |
|
) |
| |
◆ setConstructor()
void org.turro.elephant.documents.DocumentsBean.setConstructor |
( |
IConstructor |
constructor | ) |
|
Definition at line 73 of file DocumentsBean.java.
74 this.constructor = constructor;
75 constructor.
setSessionAttribute(
"xp_down_mime", ElephantContext.getRootWebPath() +
"/_internal/system/mime");
ProcessMessages getMessages()
◆ setSelectedId()
void org.turro.elephant.documents.DocumentsBean.setSelectedId |
( |
String |
selectedId | ) |
|
◆ setSelectedRoot()
void org.turro.elephant.documents.DocumentsBean.setSelectedRoot |
( |
String |
selectedRoot | ) |
|
◆ DOCS_CONFIGURATION
final String org.turro.elephant.documents.DocumentsBean.DOCS_CONFIGURATION = "/WEB-INF/elephant/conf/documents.xml" |
|
static |
The documentation for this class was generated from the following file: