|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.contentlet.factories.ContentletFactory
public class ContentletFactory
| Field Summary | |
|---|---|
static java.lang.String |
ADD_TO_INDEX
|
static java.lang.String |
ADD_TO_INDEX_REINDEXATION
|
static boolean |
shuttingDown
|
| Constructor Summary | |
|---|---|
ContentletFactory()
|
|
| Method Summary | |
|---|---|
static void |
_sendContentletPublishNotification(Contentlet contentlet,
HttpServletRequest req)
|
static void |
addFileToContentlet(Contentlet contentlet,
long fileInode,
java.lang.String relationName)
|
static void |
addImageToContentlet(Contentlet contentlet,
long imageInode,
java.lang.String relationName)
|
static void |
addLinkToContentlet(Contentlet contentlet,
long linkInode,
java.lang.String relationName)
|
static java.util.Date |
calculateNextReviewDate(java.util.Date baseDate,
java.lang.String reviewInterval)
|
static java.util.Date |
calculateNextReviewDate(java.lang.String reviewInterval)
|
static void |
cleanContentletsField(Structure structure,
Field field)
|
static Contentlet |
copyContentlet(Contentlet currentContentlet)
|
static boolean |
existsContentlet(java.lang.String friendlyName)
|
static boolean |
existsContentletWithTitle(java.lang.String tile)
|
static java.util.List<Contentlet> |
getActiveContentlets()
|
static java.util.List |
getAssetsAndPermissionsPerRoleAndCondition(Host host,
Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
|
static java.util.List |
getAssetsAndPermissionsPerRoleAndCondition(long hostId,
Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
|
static java.util.List |
getAssetsAndPermissionsPerRoleAndCondition(Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
|
static java.util.List |
getChildrenContentletsByOrder(Inode i)
|
static Contentlet |
getContentlet(long id)
|
static Contentlet |
getContentlet(java.lang.String id)
|
static int |
getContentletByCategoriesCount(java.lang.String structureType,
java.lang.String categoriesInodes,
java.util.List conditionFields,
java.lang.String searchCondition)
|
static java.util.List |
getContentletByCondition(java.lang.String condition)
|
static Contentlet |
getContentletByLiveAndFolderAndTitle(Inode parent,
java.lang.String title)
|
static java.util.List |
getContentletChildren(Inode o)
|
static java.util.List |
getContentletChildrenByCondition(Inode o,
java.lang.String condition)
|
static Contentlet |
getContentletForLanguage(long languageId,
Inode inode)
|
static Contentlet |
getContentletNoLock(long id)
|
static java.util.List<java.util.Map> |
getContentletReferences(Contentlet cont)
|
static java.util.List |
getContentletsAndPermissionsPerRoleAndCondition(Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby)
|
static java.util.List |
getContentletsByContainerAndPage(Container c,
HTMLPage html,
java.lang.String language)
|
static java.util.List |
getContentletsByOrder(java.lang.String orderby)
|
static java.util.List |
getContentletsByOrderAndParent(Inode i,
java.lang.String orderby)
|
static java.util.List |
getContentletsByOrderAndParent(java.lang.String orderby,
Inode o)
|
static java.util.List |
getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby)
|
static java.util.List<Contentlet> |
getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby,
boolean previewMode,
java.lang.String language)
|
static java.util.List |
getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby,
java.lang.String language)
|
static java.util.List |
getContentletsByParent(Inode i)
|
static java.util.List |
getContentletsByStructure(long structureInode)
|
static java.util.List |
getContentletsByStructure(long structureInode,
java.lang.String orderby)
|
static java.util.List<Contentlet> |
getContentletsByStructureAndOrder(Structure st,
java.lang.String orderFieldName,
java.lang.String direction,
int maxResults)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndCategory(Structure st,
Category cat,
java.lang.String orderby)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndCategory(Structure st,
Category cat,
java.lang.String orderby,
int maxResults)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndCategoryList(Structure st,
java.util.List<Category> categories,
int quantity,
java.lang.String orderby)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap,
java.util.List<java.lang.String> orderByfields,
boolean descOrder)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndFieldsValuesLike(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap,
java.util.List<java.lang.String> orderByfields,
boolean descOrder)
|
static java.util.List<Contentlet> |
getContentletsByStuctureAndFieldValue(Structure st,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String orderby,
int maxResults)
|
static int |
getContentletsCountByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap)
|
static java.util.List<java.lang.Long> |
getContentletsInodesByCondition(java.lang.String condition)
|
static java.util.List<java.lang.Long> |
getContentletsInodesByConditionNoLock(java.lang.String condition)
|
static java.util.List |
getContentletsPerRole(Host host,
Role[] roles)
|
static java.util.List |
getContentletsPerRole(long hostId,
Role[] roles)
|
static java.util.List |
getContentletsPerRoleAndCondition(Host host,
Role[] roles,
java.lang.String condition)
|
static java.util.List |
getContentletsPerRoleAndCondition(long hostId,
Role[] roles,
java.lang.String condition)
|
static java.util.List<Contentlet> |
getContentsByStructureAndCategoryList(Structure structure,
java.lang.String categoryInodelist,
java.util.List conditionFields,
java.lang.String searchCondition,
java.lang.String orderFieldName,
java.lang.String direction,
int offset,
int maxResults)
|
static LuceneHits |
getContentsByStructureAndCategoryListWithLucene(Structure structure,
java.lang.String categoryInodelist,
java.lang.String searchCondition,
java.lang.String orderFieldName,
int offset,
int maxResults)
|
static java.util.List<Contentlet> |
getContentsByStructureCategoryListAndCondition(Structure structure,
java.lang.String categoryInodelist,
java.lang.String searchCondition,
java.lang.String orderFieldName,
java.lang.String direction,
int offset,
int maxResults)
|
static java.lang.Object |
getFieldValue(Contentlet content,
Field theField)
|
static java.lang.Object |
getFieldValue(Contentlet content,
java.lang.String fieldName)
|
static Contentlet |
getInstance()
|
static java.util.List |
getWorkingContentlets()
|
static java.util.List |
getWorkingContentletsByOrderAndParents(long i,
long i2)
|
static LuceneHits |
indexSearch(Structure st,
java.util.Map fieldsSearch,
boolean usingDBNames,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static LuceneHits |
indexSearch(Structure st,
java.util.Map fieldsSearch,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static LuceneHits |
indexSearch(Structure st,
java.lang.String query,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy)
|
static LuceneHits |
indexSearch(Structure st,
java.lang.String keywords,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static LuceneHits |
indexSearch(Structure st,
java.lang.String keywords,
boolean deleted,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static LuceneHits |
indexSearch(Structure st,
java.lang.String keywords,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static LuceneHits |
indexSearchByField(Structure st,
java.lang.String keywords,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String searchfield,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
Makes a lucene index search |
static boolean |
reIndexAllContentlets()
|
static boolean |
reIndexAllContentlets(boolean log)
|
static boolean |
reIndexAllContentletsByStructure(Structure st)
|
static boolean |
reIndexAllContentletsByStructure(Structure st,
boolean log)
|
static void |
reIndexContentlet(Contentlet contentlet)
|
static void |
reIndexContentlet(Contentlet contentlet,
boolean log)
|
static Contentlet |
save(Contentlet x)
|
static void |
setFieldValue(Contentlet content,
java.lang.String fieldName,
java.lang.Object fieldValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ADD_TO_INDEX
public static final java.lang.String ADD_TO_INDEX_REINDEXATION
public static boolean shuttingDown
| Constructor Detail |
|---|
public ContentletFactory()
| Method Detail |
|---|
public static final Contentlet getContentlet(java.lang.String id)
public static final Contentlet getContentletForLanguage(long languageId,
Inode inode)
public static final Contentlet getContentletNoLock(long id)
public static final Contentlet getContentlet(long id)
public static final java.util.List getContentletsByContainerAndPage(Container c,
HTMLPage html,
java.lang.String language)
public static final java.util.List getContentletsByStructure(long structureInode,
java.lang.String orderby)
public static final java.util.List getContentletsByStructure(long structureInode)
public static final java.util.List getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby)
public static final java.util.List getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby,
java.lang.String language)
public static final java.util.List<Contentlet> getContentletsByOrderAndParents(long i,
long i2,
java.lang.String orderby,
boolean previewMode,
java.lang.String language)
public static final java.util.List<Contentlet> getContentletsByStuctureAndCategory(Structure st,
Category cat,
java.lang.String orderby)
public static final java.util.List<Contentlet> getContentletsByStuctureAndCategory(Structure st,
Category cat,
java.lang.String orderby,
int maxResults)
public static final java.util.List<Contentlet> getContentletsByStuctureAndFieldValue(Structure st,
java.lang.String fieldName,
java.lang.String fieldValue,
java.lang.String orderby,
int maxResults)
public static final java.util.List<Contentlet> getContentletsByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap,
java.util.List<java.lang.String> orderByfields,
boolean descOrder)
public static final java.util.List<Contentlet> getContentletsByStuctureAndFieldsValuesLike(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap,
java.util.List<java.lang.String> orderByfields,
boolean descOrder)
public static final int getContentletsCountByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap)
public static final java.util.List getWorkingContentletsByOrderAndParents(long i,
long i2)
public static final java.util.List getWorkingContentlets()
public static final java.util.List getContentletsByParent(Inode i)
public static final java.util.List getContentletsByOrderAndParent(Inode i,
java.lang.String orderby)
public static Contentlet save(Contentlet x)
public static Contentlet getInstance()
public static java.util.List getChildrenContentletsByOrder(Inode i)
public static java.util.List<Contentlet> getActiveContentlets()
public static java.util.List getContentletsByOrderAndParent(java.lang.String orderby,
Inode o)
public static java.util.List getContentletsByOrder(java.lang.String orderby)
public static java.util.List getContentletChildrenByCondition(Inode o,
java.lang.String condition)
public static java.util.List getContentletByCondition(java.lang.String condition)
public static java.util.List<java.lang.Long> getContentletsInodesByCondition(java.lang.String condition)
public static java.util.List<java.lang.Long> getContentletsInodesByConditionNoLock(java.lang.String condition)
public static java.util.List getContentletChildren(Inode o)
public static Contentlet getContentletByLiveAndFolderAndTitle(Inode parent,
java.lang.String title)
public static java.util.List getContentletsPerRoleAndCondition(Host host,
Role[] roles,
java.lang.String condition)
public static java.util.List getContentletsPerRoleAndCondition(long hostId,
Role[] roles,
java.lang.String condition)
public static java.util.List getContentletsPerRole(Host host,
Role[] roles)
public static java.util.List getContentletsPerRole(long hostId,
Role[] roles)
public static java.util.List getContentletsAndPermissionsPerRoleAndCondition(Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby)
public static boolean existsContentlet(java.lang.String friendlyName)
public static java.util.List getAssetsAndPermissionsPerRoleAndCondition(Host host,
Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
public static java.util.List getAssetsAndPermissionsPerRoleAndCondition(long hostId,
Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
public static java.util.List getAssetsAndPermissionsPerRoleAndCondition(Role[] roles,
java.lang.String condition,
int limit,
int offset,
java.lang.String orderby,
java.lang.Class assetsClass,
java.lang.String tableName)
public static void addImageToContentlet(Contentlet contentlet,
long imageInode,
java.lang.String relationName)
public static void addFileToContentlet(Contentlet contentlet,
long fileInode,
java.lang.String relationName)
public static void addLinkToContentlet(Contentlet contentlet,
long linkInode,
java.lang.String relationName)
public static boolean existsContentletWithTitle(java.lang.String tile)
public static Contentlet copyContentlet(Contentlet currentContentlet)
public static java.lang.Object getFieldValue(Contentlet content,
java.lang.String fieldName)
public static java.lang.Object getFieldValue(Contentlet content,
Field theField)
public static final java.util.List<Contentlet> getContentletsByStructureAndOrder(Structure st,
java.lang.String orderFieldName,
java.lang.String direction,
int maxResults)
public static java.util.List<Contentlet> getContentsByStructureAndCategoryList(Structure structure,
java.lang.String categoryInodelist,
java.util.List conditionFields,
java.lang.String searchCondition,
java.lang.String orderFieldName,
java.lang.String direction,
int offset,
int maxResults)
public static java.util.List<Contentlet> getContentsByStructureCategoryListAndCondition(Structure structure,
java.lang.String categoryInodelist,
java.lang.String searchCondition,
java.lang.String orderFieldName,
java.lang.String direction,
int offset,
int maxResults)
public static int getContentletByCategoriesCount(java.lang.String structureType,
java.lang.String categoriesInodes,
java.util.List conditionFields,
java.lang.String searchCondition)
public static final java.util.List<Contentlet> getContentletsByStuctureAndFieldsValues(Structure st,
java.util.Map<java.lang.String,java.lang.String> fieldsMap)
public static java.util.List<java.util.Map> getContentletReferences(Contentlet cont)
public static void setFieldValue(Contentlet content,
java.lang.String fieldName,
java.lang.Object fieldValue)
public static void cleanContentletsField(Structure structure,
Field field)
public static java.util.Date calculateNextReviewDate(java.lang.String reviewInterval)
public static java.util.Date calculateNextReviewDate(java.util.Date baseDate,
java.lang.String reviewInterval)
public static LuceneHits indexSearch(Structure st,
java.lang.String keywords,
boolean deleted,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forkeywords - Keywords to match against structure fieldsdeleted - Show only deleted contentletssortBy - Sort by this field (can be the structure logical field name or
the db name)fieldsAnd - If true applies and conditions between all the fields of the
structurecategoriesAnd - If true applies and conditions between all the categories
public static LuceneHits indexSearch(Structure st,
java.lang.String keywords,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forkeywords - Keywords to match against structure fieldsdeleted - Show only deleted contentletsoffset - Starting point of the searchlimit - Max number of contents to retrievesortBy - Sort by this field (can be the structure logical field name or
the db name)fieldsAnd - If true applies and conditions between all the fields of the
structurecategoriesAnd - If true applies and conditions between all the categories
public static LuceneHits indexSearch(Structure st,
java.lang.String keywords,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forkeywords - Keywords to match against structure fieldscategories - A string array of categories inodes to filter the searchdeleted - Show only deleted contentletsoffset - Starting point of the searchlimit - Max number of contents to retrievesortBy - Sort by this field (can be the structure logical field name or
the db name)fieldsAnd - If true applies and conditions between all the fields of the
structurecategoriesAnd - If true applies and conditions between all the categories
public static LuceneHits indexSearch(Structure st,
java.util.Map fieldsSearch,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forfieldsSearch - Map of fields name and keywords to match againstscategories - A string array of categories inodes to filter the searchdeleted - Show only deleted contentletsoffset - Starting point of the searchlimit - Max number of contents to retrievefieldsAnd - If true applies and conditions between the fields providedcategoriesAnd - If true applies and conditions between all the categoriessortBy - Sort by this field (can be the structure logical field name or
the db name)
public static LuceneHits indexSearchByField(Structure st,
java.lang.String keywords,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String searchfield,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forkeywords - Keywords to searchcategories - Categories to matchdeleted - Search deleted contents onlyoffset - Start index of the searchlimit - Max number of matches to retrievesearchfield - Structure field to use for the searchsortBy - Sort by this field (can be the structure logical field name or
the db name)fieldsAnd - If true applies and conditions between all the fields of the
structurecategoriesAnd - If true applies and conditions between all the categories
public static LuceneHits indexSearch(Structure st,
java.util.Map fieldsSearch,
boolean usingDBNames,
java.util.List<java.lang.String> categories,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy,
boolean fieldsAnd,
boolean categoriesAnd)
st - Content Structure you are looking forfieldsSearch - Map of fields name and keywords to match againstscategories - A string array of categories inodes to filter the searchdeleted - Show only deleted contentletsoffset - Starting point of the searchlimit - Max number of contents to retrievesortBy - Sort by this field (can be the structure logical field name or
the db name)fieldsAnd - If true applies and conditions between the fields providedcategoriesAnd - If true applies and conditions between all the categories
public static LuceneHits indexSearch(Structure st,
java.lang.String query,
boolean deleted,
int offset,
int limit,
java.lang.String sortBy)
public static LuceneHits getContentsByStructureAndCategoryListWithLucene(Structure structure,
java.lang.String categoryInodelist,
java.lang.String searchCondition,
java.lang.String orderFieldName,
int offset,
int maxResults)
public static void reIndexContentlet(Contentlet contentlet)
public static void reIndexContentlet(Contentlet contentlet,
boolean log)
public static boolean reIndexAllContentletsByStructure(Structure st)
public static boolean reIndexAllContentletsByStructure(Structure st,
boolean log)
public static boolean reIndexAllContentlets()
public static boolean reIndexAllContentlets(boolean log)
public static final java.util.List<Contentlet> getContentletsByStuctureAndCategoryList(Structure st,
java.util.List<Category> categories,
int quantity,
java.lang.String orderby)
public static void _sendContentletPublishNotification(Contentlet contentlet,
HttpServletRequest req)
throws PortalException,
SystemException
PortalException
SystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||