|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.viewtools.DotCMSMacroWebAPI
public class DotCMSMacroWebAPI
| Constructor Summary | |
|---|---|
DotCMSMacroWebAPI()
|
|
| Method Summary | |
|---|---|
java.util.List |
getEvents(java.lang.String categories,
int limit,
int startDayOffset,
int daysToShow)
Get a list of x number of events, from a category inode list in a range of dates. |
java.util.List |
getEvents(java.lang.String categories,
int limit,
int startDayOffset,
java.lang.String daysToShow)
Get a list of x number of events, from a category inode list in a range of dates. |
java.util.List |
getEvents(java.lang.String categories,
int limit,
java.lang.String startDayOffset,
int daysToShow)
Get a list of x number of events, from a category inode list in a range of dates. |
java.util.List |
getEvents(java.lang.String categories,
int limit,
java.lang.String startDayOffset,
java.lang.String daysToShow)
Get a list of x number of events, from a category inode list in a range of dates. |
java.util.List |
getfileRepository(java.lang.String folderPath,
java.lang.String searchFolder,
javax.servlet.http.HttpServletRequest request)
|
java.util.List |
getFileSystemFolder(java.lang.String folder)
|
java.lang.String |
getFolderPath(java.lang.String rootFolder,
javax.servlet.http.HttpServletRequest request)
|
java.util.List<Link> |
getLinkRepository(java.lang.String folderPath,
javax.servlet.http.HttpServletRequest request)
|
java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> |
getMediaGalleryFolderFiles(java.lang.String folderPath,
Host host)
Return a list of hashmap with the files to show in the media gallery |
java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> |
getMediaGalleryFolderFiles(java.lang.String folderPath,
long hostId)
Deprecated. |
java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> |
getMediaGalleryFolderFiles(java.lang.String folderPath,
java.lang.String hostId)
|
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
getSQLResults(java.lang.String dataSource,
java.lang.String sql,
int startRow,
int maxRow)
|
static Structure |
getStructureByName(java.lang.String structureName)
returns a structure using the structure name |
static java.util.Map<java.lang.String,java.lang.Integer> |
getTagsCount(java.util.List<java.lang.String> structures,
int maxNumberOfTags,
java.util.List<java.lang.String> ignoredTags,
javax.servlet.http.HttpServletRequest request)
returns a map of the top most popular tags [numberOfTags] used by the given list of structures |
void |
init(java.lang.Object obj)
|
static java.util.List<java.lang.String> |
sortAlpha(java.util.Set<java.lang.String> stringSet)
returns a string set alphabetically ordered |
static java.util.HashMap |
topMostPopularTags(java.util.HashMap tagHashMap,
int maxNumberOfTags)
returns a map of the top most popular tags, this map has the tag name as a key and the tag count as value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DotCMSMacroWebAPI()
| Method Detail |
|---|
public void init(java.lang.Object obj)
init in interface org.apache.velocity.tools.view.tools.ViewTool
public java.util.List getfileRepository(java.lang.String folderPath,
java.lang.String searchFolder,
javax.servlet.http.HttpServletRequest request)
throws DotDataException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotSecurityException
DotDataException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
DotSecurityException
public java.util.List<Link> getLinkRepository(java.lang.String folderPath,
javax.servlet.http.HttpServletRequest request)
public java.lang.String getFolderPath(java.lang.String rootFolder,
javax.servlet.http.HttpServletRequest request)
public java.util.List getEvents(java.lang.String categories,
int limit,
int startDayOffset,
java.lang.String daysToShow)
throws DotDataException,
DotSecurityException
categories - a string list of comma separated categories inodeslimit - max number of events to getstartDayOffset - daysToShow -
DotSecurityException
DotDataException
public java.util.List getEvents(java.lang.String categories,
int limit,
java.lang.String startDayOffset,
int daysToShow)
throws DotDataException,
DotSecurityException
categories - a string list of comma separated categories inodeslimit - max number of events to getstartDayOffset - daysToShow -
DotSecurityException
DotDataException
public java.util.List getEvents(java.lang.String categories,
int limit,
java.lang.String startDayOffset,
java.lang.String daysToShow)
throws DotDataException,
DotSecurityException
categories - a string list of comma separated categories inodeslimit - max number of events to getstartDayOffset - daysToShow -
DotSecurityException
DotDataException
public java.util.List getEvents(java.lang.String categories,
int limit,
int startDayOffset,
int daysToShow)
throws DotDataException,
DotSecurityException
categories - a string list of comma separated categories inodeslimit - max number of events to getstartDayOffset - daysToShow -
DotSecurityException
DotDataExceptionpublic java.util.List getFileSystemFolder(java.lang.String folder)
public java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> getSQLResults(java.lang.String dataSource,
java.lang.String sql,
int startRow,
int maxRow)
public static Structure getStructureByName(java.lang.String structureName)
structureName - name of the structure to look for
public static java.util.Map<java.lang.String,java.lang.Integer> getTagsCount(java.util.List<java.lang.String> structures,
int maxNumberOfTags,
java.util.List<java.lang.String> ignoredTags,
javax.servlet.http.HttpServletRequest request)
structures - Name of the structures to querymaxNumberOfTags - maximum number of tag to be returned, if 0 is provided, then
returns all tags
public static java.util.List<java.lang.String> sortAlpha(java.util.Set<java.lang.String> stringSet)
stringSet - set to be ordered
public static java.util.HashMap topMostPopularTags(java.util.HashMap tagHashMap,
int maxNumberOfTags)
tagHashMap - map to be verified, in order to get the top most popular tagsmaxNumberOfTags - maximum number of tag to be returned, if 0 is provided, then
returns the original map, i.e. returns all tags
public java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> getMediaGalleryFolderFiles(java.lang.String folderPath,
Host host)
throws DotDataException
folderPath - String with the path with the files to show.host - Host where the folder path belongs.
DotDataException
public java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> getMediaGalleryFolderFiles(java.lang.String folderPath,
java.lang.String hostId)
throws DotDataException
DotDataException
@Deprecated
public java.util.List<java.util.HashMap<java.lang.String,IFileAsset>> getMediaGalleryFolderFiles(java.lang.String folderPath,
long hostId)
throws DotDataException
folderPath - String with the path with the files to show.host - long with the hostId of the host where the folder path belongs.
DotDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||