Package sk.iway.iwcm.doc
Class GroupsTreeService
java.lang.Object
sk.iway.iwcm.doc.GroupsTreeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
addDomainPrefixToFullPath
(DocDetails tmp, GroupsDB groupsDB) Returns group.fullPath for DocDetails with domain prefix in multi domain enviromentstatic List<GroupDetails>
filterTrash
(List<GroupDetails> groups) odfiltruje priecinok /System/Kos so zoznamuvoid
fixSortPriority
(javax.servlet.http.HttpServletRequest request, int docId, GroupDetails parent, int position) static GroupDetails
gerDefaultGroupTreeOptionForUser
(int groupId, Identity user) Returns GrooupDetails object for groupId, BUT verify permissions for user.getItems
(Identity user, int id, boolean showPages, String click, String requestedDomain, javax.servlet.http.HttpServletRequest request) static String
-
Constructor Details
-
GroupsTreeService
public GroupsTreeService()
-
-
Method Details
-
getItems
public List<JsTreeItem> getItems(Identity user, int id, boolean showPages, String click, String requestedDomain, javax.servlet.http.HttpServletRequest request) - Parameters:
user
-id
- - id priecinkashowPages
- - ak je true, vratia sa v zozname aj web strankyclick
- - typ zobrazenia/filtrovaniarequestedDomain
- - pozadovana domena pre filtrovanie alebo NULL pre filter podla aktualne nastavenej domenyrequest
-- Returns:
-
fixSortPriority
public void fixSortPriority(javax.servlet.http.HttpServletRequest request, int docId, GroupDetails parent, int position) -
filterTrash
odfiltruje priecinok /System/Kos so zoznamu- Parameters:
groups
-- Returns:
-
getTrashDirPath
-
addDomainPrefixToFullPath
Returns group.fullPath for DocDetails with domain prefix in multi domain enviroment- Parameters:
tmp
- - DocDetails objectgroupsDB
-- Returns:
-
gerDefaultGroupTreeOptionForUser
Returns GrooupDetails object for groupId, BUT verify permissions for user. It it's not accessible, return first accessible group for user.- Parameters:
groupId
-user
-- Returns:
-