Package sk.iway.iwcm.filebrowser
Class FileAtrDB
java.lang.Object
sk.iway.iwcm.filebrowser.FileAtrDB
Objekt na pracu s atributmi suboru
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Description of the Fieldstatic final int
Description of the Fieldstatic final int
Description of the Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
fillEditForm
(EditForm ef) Naplni informaciu o adresari z databazy (tabulka dir_url), jedna sa o vlastnosti adresarastatic FileAtrBean
getAtrDef
(int atrId, javax.servlet.http.HttpServletRequest request) vrati atribut atrIdstatic List<LabelValueDetails>
getAtrGroups
(javax.servlet.http.HttpServletRequest request) vrati zoznam skupin atributovstatic List<FileAtrBean>
getAtributes
(String link, String group, javax.servlet.http.HttpServletRequest request) vrati zoznam vsetkych atributov (aj nevyplnenych) pre dany suborstatic List<List<FileAtrBean>>
getAtributes
(String link, javax.servlet.http.HttpServletRequest request) Vrati List skupin, ktory ako hodnoty obsahuje dalsie Listy s atributmi v danej skupinestatic List<FileAtrRowBean>
getAtributesTable
(String rootPath, boolean includeSub, String group, javax.servlet.http.HttpServletRequest request) Vytvori tabulku so zoznamom suborov a jednotlivymi atributmistatic List<FileAtrBean>
getAtributesTree
(String atrName, String rootPath, boolean includeSub, String group, javax.servlet.http.HttpServletRequest request) Nacita zoznam suborov s atributom daneho nazvu, pouziva sa pre vytvorenie stromu atributovstatic List<LabelValueDetails>
getUsedAtrValues
(int atrId, javax.servlet.http.HttpServletRequest request) Vrati zoznam pouzitych hodnot pre dane id atributu
-
Field Details
-
TYPE_STRING
public static final int TYPE_STRINGDescription of the Field- See Also:
-
TYPE_INT
public static final int TYPE_INTDescription of the Field- See Also:
-
TYPE_BOOL
public static final int TYPE_BOOLDescription of the Field- See Also:
-
-
Constructor Details
-
FileAtrDB
protected FileAtrDB()
-
-
Method Details
-
getAtributes
public static List<FileAtrBean> getAtributes(String link, String group, javax.servlet.http.HttpServletRequest request) vrati zoznam vsetkych atributov (aj nevyplnenych) pre dany subor- Parameters:
link
- - cela cesta k suboru (URL)group
- - skupina atributovrequest
-- Returns:
-
getAtributes
public static List<List<FileAtrBean>> getAtributes(String link, javax.servlet.http.HttpServletRequest request) Vrati List skupin, ktory ako hodnoty obsahuje dalsie Listy s atributmi v danej skupine- Parameters:
link
- - cela cesta k suboru (URL)request
-- Returns:
-
getAtrDef
vrati atribut atrId- Parameters:
atrId
-request
-- Returns:
-
getAtrGroups
vrati zoznam skupin atributov- Parameters:
request
-- Returns:
-
getAtributesTable
public static List<FileAtrRowBean> getAtributesTable(String rootPath, boolean includeSub, String group, javax.servlet.http.HttpServletRequest request) Vytvori tabulku so zoznamom suborov a jednotlivymi atributmi- Parameters:
rootPath
- adresar, v ktorom sa ma nachadzat suborincludeSub
- ak true, vratane podadresarovgroup
- skupina atributov, pre ktoru robime vypis (alebo null)request
- Description of the Parameter- Returns:
- The atributesTable value
-
getAtributesTree
public static List<FileAtrBean> getAtributesTree(String atrName, String rootPath, boolean includeSub, String group, javax.servlet.http.HttpServletRequest request) Nacita zoznam suborov s atributom daneho nazvu, pouziva sa pre vytvorenie stromu atributov- Parameters:
atrName
- nazov atributu, pre ktory vytvarame stromrootPath
- adresar, v ktorom sa ma nachadzat subor (alebo null)includeSub
- ak true, berieme aj podadresaregroup
- nazov skupiny atributov (alebo null)request
- Description of the Parameter- Returns:
- The atributesTree value
-
getUsedAtrValues
public static List<LabelValueDetails> getUsedAtrValues(int atrId, javax.servlet.http.HttpServletRequest request) Vrati zoznam pouzitych hodnot pre dane id atributu- Parameters:
atrId
-request
-- Returns:
-
fillEditForm
Naplni informaciu o adresari z databazy (tabulka dir_url), jedna sa o vlastnosti adresara- Parameters:
ef
- - edit form, musi mat vyplnene origDir
-