|
Object | getEntity (Object value) |
|
void | renderTree (ElephantMarker marker, List< Item< Object, Object >> items) |
|
void | renderItem (ElephantMarker marker, Object item) |
|
String | parseTree (ElephantMarker marker, List< Item< Object, Object >> items) |
|
String | parseItem (ElephantMarker marker, Object item) |
|
WhereClause | getChildrenClause (String currPath) |
|
WhereClause | getLeafClause (String currPath) |
|
Object | getId (Object item) |
|
Object | getParentId (Object item) |
|
VisualElements | loadVisuals () |
|
abstract void | renderTree (ElephantMarker marker, List< Item< E, ID >> items) |
|
abstract void | renderItem (ElephantMarker marker, E item) |
|
abstract String | parseTree (ElephantMarker marker, List< Item< E, ID >> items) |
|
abstract String | parseItem (ElephantMarker marker, E item) |
|
◆ AttachTree()
org.turro.attach.www.AttachTree.AttachTree |
( |
IConstructor |
constructor | ) |
|
◆ addRestrictedFolder()
void org.turro.attach.www.AttachTree.addRestrictedFolder |
( |
String |
restrictedFolder | ) |
|
Definition at line 73 of file www/AttachTree.java.
74 if(!Strings.isBlank(restrictedFolder)) {
75 restrictedFolders.add(restrictedFolder);
◆ addRestrictedFolders()
void org.turro.attach.www.AttachTree.addRestrictedFolders |
( |
HashSet< String > |
restrictedFolders | ) |
|
Definition at line 79 of file www/AttachTree.java.
80 if(restrictedFolders !=
null) {
81 this.restrictedFolders.addAll(restrictedFolders);
◆ createPetition()
Definition at line 203 of file www/AttachTree.java.
204 if(AcceptanceSingleStatus.SINGLE_FORBIDDEN.equals(status)) {
205 IAcceptances acceptances = Plugins.loadImplementation(IAcceptances.class);
206 Attachment attachment = (Attachment) item.getValue();
207 return acceptances.createPetition(AttachPU.getObjectPath(attachment), attachment.getIOwner(),
208 Application.getApplication().getConstructor().getRequest().getServletPath());
◆ getByteString()
String org.turro.attach.www.AttachTree.getByteString |
( |
Item |
item | ) |
|
Definition at line 188 of file www/AttachTree.java.
189 Attachment attachment = (Attachment) item.getValue();
190 return attachment.getByteString();
◆ getChildrenClause()
WhereClause org.turro.attach.www.AttachTree.getChildrenClause |
( |
String |
currPath | ) |
|
|
protected |
Reimplemented from org.turro.jpa.iterator.DaoTree< E, ID >.
Definition at line 117 of file www/AttachTree.java.
118 WhereClause wc =
new WhereClause();
120 wc.addClause(
"select distinct case when locate('/', a.path, " + (currPath.length() + 2) +
") = 0 then a.path else substring(a.path, 1, locate('/', a.path, " + (currPath.length() + 2) +
") - 1) end from Attachment as a");
122 wc.addClause(
"where UCASE(a.path) like UCASE(:path)");
123 wc.addNamedValue(
"path", currPath +
"/_%");
127 wc.addClause(
"and a.publishable = true");
129 wc.addClause(
"order by 1");
◆ getDateString()
String org.turro.attach.www.AttachTree.getDateString |
( |
Item |
item | ) |
|
◆ getDeleteLink()
String org.turro.attach.www.AttachTree.getDeleteLink |
( |
Item |
item | ) |
|
Definition at line 198 of file www/AttachTree.java.
199 Attachment attachment = (Attachment) item.getValue();
HttpServletRequest getRequest()
◆ getEntity()
Object org.turro.attach.www.AttachTree.getEntity |
( |
Object |
value | ) |
|
|
protected |
Definition at line 86 of file www/AttachTree.java.
87 return value instanceof Long ?
getDao().find(Attachment.class, (Long) value) : value;
◆ getFolderImage()
String org.turro.attach.www.AttachTree.getFolderImage |
( |
| ) |
|
◆ getId()
Object org.turro.attach.www.AttachTree.getId |
( |
Object |
item | ) |
|
|
protected |
Definition at line 154 of file www/AttachTree.java.
155 return item instanceof Attachment ? ((Attachment) item).getId() :
new Path((String) item).getLastNode();
◆ getImage()
String org.turro.attach.www.AttachTree.getImage |
( |
Item |
item | ) |
|
Definition at line 163 of file www/AttachTree.java.
164 Attachment attachment = (Attachment) item.getValue();
165 return FontAwesome.getMimeIcon(attachment.getFileExtension());
◆ getLeafClause()
WhereClause org.turro.attach.www.AttachTree.getLeafClause |
( |
String |
currPath | ) |
|
|
protected |
Reimplemented from org.turro.jpa.iterator.DaoTree< E, ID >.
Definition at line 134 of file www/AttachTree.java.
135 WhereClause wc =
new WhereClause();
136 wc.addClause(
"select distinct a from Attachment as a");
137 if(Strings.isBlank(currPath)) {
138 wc.addClause(
"where a.path is null");
140 wc.addClause(
"where UCASE(a.path) = UCASE(:path)");
141 wc.addNamedValue(
"path", currPath);
144 wc.addClause(
"and a.publishable = true");
147 wc.addClause(
"and a.modification = (select max(a2.modification) from Attachment as a2 where a2.path = a.path and a2.fileName = a.fileName)");
149 wc.addClause(
"order by a.fileName");
◆ getParentId()
Object org.turro.attach.www.AttachTree.getParentId |
( |
Object |
item | ) |
|
|
protected |
◆ getRestrictedFolders()
HashSet<String> org.turro.attach.www.AttachTree.getRestrictedFolders |
( |
| ) |
|
◆ getROShowURL()
String org.turro.attach.www.AttachTree.getROShowURL |
( |
Item |
item | ) |
|
◆ getShowURL()
String org.turro.attach.www.AttachTree.getShowURL |
( |
Item |
item | ) |
|
◆ isLastOnly()
boolean org.turro.attach.www.AttachTree.isLastOnly |
( |
| ) |
|
◆ isPublicOnly()
boolean org.turro.attach.www.AttachTree.isPublicOnly |
( |
| ) |
|
◆ parseItem()
String org.turro.attach.www.AttachTree.parseItem |
( |
ElephantMarker |
marker, |
|
|
Object |
item |
|
) |
| |
|
protected |
Definition at line 111 of file www/AttachTree.java.
String parse(String rootTmpl, String tmpl)
Object put(Object key, Object value)
◆ parseTree()
String org.turro.attach.www.AttachTree.parseTree |
( |
ElephantMarker |
marker, |
|
|
List< Item< Object, Object >> |
items |
|
) |
| |
|
protected |
◆ renderItem()
void org.turro.attach.www.AttachTree.renderItem |
( |
ElephantMarker |
marker, |
|
|
Object |
item |
|
) |
| |
|
protected |
◆ renderTree()
void org.turro.attach.www.AttachTree.renderTree |
( |
ElephantMarker |
marker, |
|
|
List< Item< Object, Object >> |
items |
|
) |
| |
|
protected |
◆ setLastOnly()
void org.turro.attach.www.AttachTree.setLastOnly |
( |
boolean |
lastOnly | ) |
|
◆ setPublicOnly()
void org.turro.attach.www.AttachTree.setPublicOnly |
( |
boolean |
publicOnly | ) |
|
The documentation for this class was generated from the following file: