BrightSide Workbench Full Report + Source Code
org.turro.attach.www.AttachCtrl Class Reference

Public Member Functions

 AttachCtrl (IConstructor constructor)
 
void setEntityPath (String entityPath)
 
void setEntityRoot (String entityRoot)
 
void setTreeTemplate (String treeTemplate)
 
HashSet< String > getRestrictedFolders ()
 
void addRestrictedFolder (String restrictedFolder)
 
void addRestrictedFolders (HashSet< String > restrictedFolders)
 
boolean isPublicOnly ()
 
void setPublicOnly (boolean publicOnly)
 
boolean isLastOnly ()
 
void setLastOnly (boolean lastOnly)
 
boolean isReadOnly ()
 
void setReadOnly (boolean readOnly)
 
void renderAttachments ()
 
String parseAttachments ()
 
String getNewAttachment ()
 
boolean isEmpty ()
 
AttachTree getAttachTree ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file AttachCtrl.java.

Constructor & Destructor Documentation

◆ AttachCtrl()

org.turro.attach.www.AttachCtrl.AttachCtrl ( IConstructor  constructor)

Definition at line 41 of file AttachCtrl.java.

41  {
42  this.constructor = constructor;
43  }

Member Function Documentation

◆ addRestrictedFolder()

void org.turro.attach.www.AttachCtrl.addRestrictedFolder ( String  restrictedFolder)

Definition at line 63 of file AttachCtrl.java.

63  {
64  if(!Strings.isBlank(restrictedFolder)) restrictedFolders.add(restrictedFolder);
65  }

◆ addRestrictedFolders()

void org.turro.attach.www.AttachCtrl.addRestrictedFolders ( HashSet< String >  restrictedFolders)

Definition at line 67 of file AttachCtrl.java.

67  {
68  if(restrictedFolders != null) {
69  this.restrictedFolders.addAll(restrictedFolders);
70  }
71  }
Here is the caller graph for this function:

◆ getAttachTree()

AttachTree org.turro.attach.www.AttachCtrl.getAttachTree ( )

Definition at line 115 of file AttachCtrl.java.

115  {
116  if(attachTree == null) {
117  attachTree = new AttachTree(constructor);
118  attachTree.setPublicOnly(publicOnly);
119  attachTree.setLastOnly(lastOnly);
120  attachTree.addRestrictedFolders(restrictedFolders);
121  attachTree.setTreeTemplate(treeTemplate);
122  attachTree.fillTree(entityPath + (!Strings.isBlank(entityRoot) ? entityRoot : ""));
123  }
124  return attachTree;
125  }
void setLastOnly(boolean lastOnly)
void setPublicOnly(boolean publicOnly)
void addRestrictedFolders(HashSet< String > restrictedFolders)
void setTreeTemplate(String treeTemplate)
void fillTree(String path)
Definition: DaoTree.java:45
Here is the call graph for this function:

◆ getNewAttachment()

String org.turro.attach.www.AttachCtrl.getNewAttachment ( )

Definition at line 107 of file AttachCtrl.java.

107  {
108  return AttachAction.newAttachment(entityPath, HttpUtil.getCurrentUrl(constructor.getRequest()), null);
109  }
Here is the call graph for this function:

◆ getRestrictedFolders()

HashSet<String> org.turro.attach.www.AttachCtrl.getRestrictedFolders ( )

Definition at line 59 of file AttachCtrl.java.

59  {
60  return restrictedFolders;
61  }

◆ isEmpty()

boolean org.turro.attach.www.AttachCtrl.isEmpty ( )

Definition at line 111 of file AttachCtrl.java.

111  {
112  return getAttachTree().isEmpty();
113  }

◆ isLastOnly()

boolean org.turro.attach.www.AttachCtrl.isLastOnly ( )

Definition at line 82 of file AttachCtrl.java.

82  {
83  return lastOnly;
84  }

◆ isPublicOnly()

boolean org.turro.attach.www.AttachCtrl.isPublicOnly ( )

Definition at line 73 of file AttachCtrl.java.

73  {
74  return publicOnly;
75  }

◆ isReadOnly()

boolean org.turro.attach.www.AttachCtrl.isReadOnly ( )

Definition at line 91 of file AttachCtrl.java.

91  {
92  return readOnly;
93  }

◆ parseAttachments()

String org.turro.attach.www.AttachCtrl.parseAttachments ( )

Definition at line 103 of file AttachCtrl.java.

103  {
104  return getAttachTree().parse();
105  }
Here is the caller graph for this function:

◆ renderAttachments()

void org.turro.attach.www.AttachCtrl.renderAttachments ( )

Definition at line 99 of file AttachCtrl.java.

99  {
100  getAttachTree().render();
101  }
Here is the caller graph for this function:

◆ setEntityPath()

void org.turro.attach.www.AttachCtrl.setEntityPath ( String  entityPath)

Definition at line 45 of file AttachCtrl.java.

45  {
46  this.entityPath = entityPath;
47  attachTree = null;
48  }
Here is the caller graph for this function:

◆ setEntityRoot()

void org.turro.attach.www.AttachCtrl.setEntityRoot ( String  entityRoot)

Definition at line 50 of file AttachCtrl.java.

50  {
51  this.entityRoot = entityRoot;
52  attachTree = null;
53  }

◆ setLastOnly()

void org.turro.attach.www.AttachCtrl.setLastOnly ( boolean  lastOnly)

Definition at line 86 of file AttachCtrl.java.

86  {
87  this.lastOnly = lastOnly;
88  attachTree = null;
89  }
Here is the caller graph for this function:

◆ setPublicOnly()

void org.turro.attach.www.AttachCtrl.setPublicOnly ( boolean  publicOnly)

Definition at line 77 of file AttachCtrl.java.

77  {
78  this.publicOnly = publicOnly;
79  attachTree = null;
80  }
Here is the caller graph for this function:

◆ setReadOnly()

void org.turro.attach.www.AttachCtrl.setReadOnly ( boolean  readOnly)

Definition at line 95 of file AttachCtrl.java.

95  {
96  this.readOnly = readOnly;
97  }
Here is the caller graph for this function:

◆ setTreeTemplate()

void org.turro.attach.www.AttachCtrl.setTreeTemplate ( String  treeTemplate)

Definition at line 55 of file AttachCtrl.java.

55  {
56  this.treeTemplate = treeTemplate;
57  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: