Package sk.iway.iwcm.common
Class AdminTools
java.lang.Object
sk.iway.iwcm.common.AdminTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
createWebPage
(GroupDetails group, Identity user, javax.servlet.http.HttpServletRequest request, String title) static String
static String
Ak je pre domenu definovany alias suborov vrati /alias pre jednoduche vlozenie do cestystatic List<DocDetails>
getMyRecentPages
(int userId, int maxSize) Vrati zoznam naposledy editovanych stranok podla tabulky documents_history.static List<DocDetails>
getMyRecentPages
(Identity user, int maxSize) Vrati zoznam naposledy editovanych stranok podla tabulky documents_history.static List<DocDetails>
getRecentPages
(int size) static List<DocDetails>
getRecentPages
(int size, int filterDomainId, Identity user) Vrati zoznam naposledy upravenych stranok, zobrazi len take, na ktore ma pouzivatel pravastatic List<DocDetails>
getRecentPages
(int size, Identity user) Vrati zoznam naposledy upravenych stranok, zobrazi len take, na ktore ma pouzivatel pravagetVersionList
(String virtualPath) static org.apache.lucene.document.Field
titleField
(String title)
-
Method Details
-
createWebPage
public static int createWebPage(GroupDetails group, Identity user, javax.servlet.http.HttpServletRequest request, String title) -
getMyRecentPages
Vrati zoznam naposledy editovanych stranok podla tabulky documents_history. Vynecha stranky ktorych virtual_path zacina na /files/ co su zaindexovane subory Prenesene z GroupsListAction koli kontrole na cloud WJ- Parameters:
userId
-maxSize
-- Returns:
-
getMyRecentPages
Vrati zoznam naposledy editovanych stranok podla tabulky documents_history. Vynecha stranky ktorych virtual_path zacina na /files/ co su zaindexovane subory Prenesene z GroupsListAction koli kontrole na cloud WJ- Parameters:
user
-maxSize
-- Returns:
-
getVersionList
-
getRecentPages
Vrati zoznam naposledy upravenych stranok, zobrazi len take, na ktore ma pouzivatel prava- Returns:
-
getRecentPages
Vrati zoznam naposledy upravenych stranok, zobrazi len take, na ktore ma pouzivatel prava- Parameters:
size
- - maximalny pocet vratenych zaznamov (realne vrateny moze byt nizsii, kedze sa kontroluju prava)filterDomainId
- - ID domeny pre ktoru sa maju stranky odfiltrovat, alebo -1 ak sa filtrovat nemauser
-- Returns:
-
getDomainNameFileAliasAppend
Ak je pre domenu definovany alias suborov vrati /alias pre jednoduche vlozenie do cesty- Returns:
-
titleField
-
defaultLanguage
-
getRecentPages
-