|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.contentlet.business.ContentletFactory
com.dotmarketing.portlets.contentlet.business.ContentletFactoryDBImpl
public class ContentletFactoryDBImpl
| Constructor Summary | |
|---|---|
ContentletFactoryDBImpl()
|
|
| Method Summary | |
|---|---|
protected void |
cleanField(java.lang.String structureInode,
Field field)
|
protected void |
cleanHostField(java.lang.String structureInode)
|
protected void |
cleanIdentifierHostField(java.lang.String structureInode)
Set the system host in the identifier of all the contents of the specified structure. |
protected long |
contentletCount()
gets the number of contentlets in the system. |
protected long |
contentletIdentifierCount()
gets the number of contentlet identifiers in the system. |
Contentlet |
convertContentletToFatContentlet(Contentlet cont,
Contentlet fatty)
Deprecated. |
Contentlet |
convertFatContentletToContentlet(Contentlet fatty)
Deprecated. |
protected java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> |
DBSearch(GenericQueryFactory.Query query,
java.util.List<Field> fields,
java.lang.String structureInode)
|
protected void |
delete(java.util.List<Contentlet> contentlets)
deletes all passed in contentlets. |
protected int |
deleteOldContent(java.util.Date deleteFrom,
int offset)
|
protected Contentlet |
find(java.lang.String inode)
This method gets a Contentlet object given the inode |
protected java.util.List<Contentlet> |
findAllCurrent()
Use to get all contentlets live/working contentlets |
protected java.util.List<Contentlet> |
findAllCurrent(int offset,
int limit)
Use to get all contentlets live/working contentlets |
protected java.util.List<Contentlet> |
findAllUserVersions(Identifier identifier)
Retrieves all versions for a contentlet identifier checked in by a real user meaning not the system user |
protected java.util.List<Contentlet> |
findAllVersions(Identifier identifier)
Retrieves all versions for a contentlet identifier |
protected java.util.List<Contentlet> |
findByStructure(java.lang.String structureInode,
int limit,
int offset)
Returns all Contentlets for a specific structure |
protected Contentlet |
findContentletByIdentifier(java.lang.String identifier,
java.lang.Boolean live,
java.lang.Long languageId)
Retrieves a contentlet from the database based on its identifier |
protected Contentlet |
findContentletForLanguage(long languageId,
Identifier contentletId)
Returns a live Contentlet Object for a given language |
protected java.util.List<Contentlet> |
findContentlets(java.util.List<java.lang.String> inodes)
Gets a list of Contentlets from a passed in list of inodes. |
protected java.util.List<Contentlet> |
findContentletsByIdentifier(java.lang.String identifier,
java.lang.Boolean live,
java.lang.Long languageId)
Retrieves a contentlet from the database based on its identifier |
protected java.util.List<Contentlet> |
findContentletsWithFieldValue(java.lang.String structureInode,
Field field)
This method return all the contentlets with the specified structureInode and the specified Field cannot be null. |
protected java.util.List<Contentlet> |
findPageContentlets(java.lang.String HTMLPageIdentifier,
java.lang.String containerIdentifier,
java.lang.String orderby,
boolean working,
long languageId)
Returns the contentlets on a given page. |
protected java.util.List<Contentlet> |
getContentletsByIdentifier(java.lang.String identifier)
Retrieves all contentlets from the database based on its identifier (including multilingual versions) |
protected java.util.List<Contentlet> |
getContentletsByIdentifier(java.lang.String identifier,
java.lang.Boolean live)
Retrieves all contentlets from the database based on its identifier (including multilingual versions) |
protected java.util.List<Contentlet> |
getReferencingContentlet(File file,
boolean live)
Gets all contentlets referenced by this file |
protected java.util.List<File> |
getRelatedFiles(Contentlet contentlet)
Gets all related files |
protected Identifier |
getRelatedIdentifier(Contentlet contentlet,
java.lang.String relationshipType)
Gets a file with a specific relationship type to the passed in contentlet |
protected java.util.List<Link> |
getRelatedLinks(Contentlet contentlet)
Gets all related links |
protected LuceneHits |
indexSearch(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy)
The search here takes a lucene query and pulls LuceneHits for you. |
protected void |
lock(java.lang.String contentletInode,
com.liferay.portal.model.User user)
Usually you would use the save method to alter the contentlet from the API but in the unlock case there are concurrency issues where you can get 2 working contentlets in the DB until you checkin again. |
protected void |
removeUserReferences(java.lang.String userId)
Method will remove User References of the given userId in Contentlet |
protected Contentlet |
save(Contentlet contentlet)
Saves a Contentlet |
protected java.util.List<Contentlet> |
search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy)
The search here takes a lucene query and pulls Contentlets for you. |
protected void |
unlock(java.lang.String contentletInode,
com.liferay.portal.model.User user)
Usually you would use the save method to alter the contentlet from the API but in the unlock case there are concurrency issues where you can get 2 working contentlets in the DB until you checkin again. |
protected void |
UpdateContentWithSystemHost(java.lang.String hostIdentifier)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentletFactoryDBImpl()
| Method Detail |
|---|
protected java.util.List<Contentlet> findAllCurrent()
throws DotDataException
ContentletFactory
findAllCurrent in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> findAllCurrent(int offset,
int limit)
throws DotDataException
ContentletFactory
findAllCurrent in class ContentletFactoryDotDataException
protected Contentlet find(java.lang.String inode)
throws DotDataException
ContentletFactory
find in class ContentletFactoryDotDataException
protected Contentlet findContentletForLanguage(long languageId,
Identifier contentletId)
throws DotDataException
findContentletForLanguage in class ContentletFactorylanguageId - inode -
DotDataException
protected Contentlet findContentletByIdentifier(java.lang.String identifier,
java.lang.Boolean live,
java.lang.Long languageId)
throws DotDataException
ContentletFactory
findContentletByIdentifier in class ContentletFactorylive - Retrieves the live version if false retrieves the working version
DotDataException
protected java.util.List<Contentlet> findContentletsByIdentifier(java.lang.String identifier,
java.lang.Boolean live,
java.lang.Long languageId)
throws DotDataException
ContentletFactory
findContentletsByIdentifier in class ContentletFactorylive - Retrieves the live version if false retrieves the working version
DotDataException
protected java.util.List<Contentlet> findContentlets(java.util.List<java.lang.String> inodes)
throws DotDataException
ContentletFactory
findContentlets in class ContentletFactoryDotDataException
protected Contentlet save(Contentlet contentlet)
throws DotDataException
ContentletFactory
save in class ContentletFactoryDotDataException
protected void lock(java.lang.String contentletInode,
com.liferay.portal.model.User user)
throws DotDataException
ContentletFactory
lock in class ContentletFactoryDotDataException
protected void unlock(java.lang.String contentletInode,
com.liferay.portal.model.User user)
throws DotDataException
ContentletFactory
unlock in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy)
throws ParseException,
DotDataException
ContentletFactory
search in class ContentletFactoryParseException
DotDataException
protected LuceneHits indexSearch(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy)
throws ParseException
ContentletFactory
indexSearch in class ContentletFactoryParseException
protected java.util.List<Contentlet> findByStructure(java.lang.String structureInode,
int limit,
int offset)
throws DotDataException
ContentletFactory
findByStructure in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> findPageContentlets(java.lang.String HTMLPageIdentifier,
java.lang.String containerIdentifier,
java.lang.String orderby,
boolean working,
long languageId)
throws DotDataException
ContentletFactory
findPageContentlets in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> getContentletsByIdentifier(java.lang.String identifier,
java.lang.Boolean live)
throws DotDataException
ContentletFactory
getContentletsByIdentifier in class ContentletFactorylive - Retrieves the live version if false retrieves the working version
DotDataException
protected java.util.List<Contentlet> getContentletsByIdentifier(java.lang.String identifier)
throws DotDataException
ContentletFactory
getContentletsByIdentifier in class ContentletFactoryDotDataException
protected Identifier getRelatedIdentifier(Contentlet contentlet,
java.lang.String relationshipType)
throws DotDataException
ContentletFactory
getRelatedIdentifier in class ContentletFactoryDotDataException
protected java.util.List<File> getRelatedFiles(Contentlet contentlet)
throws DotDataException
ContentletFactory
getRelatedFiles in class ContentletFactoryDotDataException
protected java.util.List<Link> getRelatedLinks(Contentlet contentlet)
throws DotDataException
ContentletFactory
getRelatedLinks in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> getReferencingContentlet(File file,
boolean live)
throws DotDataException
ContentletFactory
getReferencingContentlet in class ContentletFactoryfile - asset.live - mode or not.
DotDataException
protected void delete(java.util.List<Contentlet> contentlets)
throws DotDataException
ContentletFactory
delete in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> findAllUserVersions(Identifier identifier)
throws DotDataException
ContentletFactory
findAllUserVersions in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> findAllVersions(Identifier identifier)
throws DotDataException
ContentletFactory
findAllVersions in class ContentletFactoryDotDataException
public Contentlet convertFatContentletToContentlet(Contentlet fatty)
throws DotDataException
convertFatContentletToContentlet in class ContentletFactoryfatty -
DotDataException
public Contentlet convertContentletToFatContentlet(Contentlet cont,
Contentlet fatty)
throws DotDataException
convertContentletToFatContentlet in class ContentletFactoryfatty -
DotDataException
protected void cleanHostField(java.lang.String structureInode)
throws DotDataException
cleanHostField in class ContentletFactoryDotDataException
protected void cleanIdentifierHostField(java.lang.String structureInode)
throws DotDataException
ContentletFactory
cleanIdentifierHostField in class ContentletFactoryDotDataException
protected void cleanField(java.lang.String structureInode,
Field field)
throws DotDataException
cleanField in class ContentletFactoryDotDataException
protected int deleteOldContent(java.util.Date deleteFrom,
int offset)
throws DotDataException
deleteOldContent in class ContentletFactoryDotDataException
protected java.util.List<Contentlet> findContentletsWithFieldValue(java.lang.String structureInode,
Field field)
throws DotDataException
findContentletsWithFieldValue in class ContentletFactorystructureInode - field -
DotDataException
protected long contentletCount()
throws DotDataException
ContentletFactory
contentletCount in class ContentletFactoryDotDataException
protected long contentletIdentifierCount()
throws DotDataException
ContentletFactory
contentletIdentifierCount in class ContentletFactoryDotDataException
protected java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> DBSearch(GenericQueryFactory.Query query,
java.util.List<Field> fields,
java.lang.String structureInode)
throws ValidationException,
DotDataException
DBSearch in class ContentletFactoryValidationException
DotDataException
protected void UpdateContentWithSystemHost(java.lang.String hostIdentifier)
throws DotDataException
UpdateContentWithSystemHost in class ContentletFactoryDotDataException
protected void removeUserReferences(java.lang.String userId)
throws DotDataException
ContentletFactory
removeUserReferences in class ContentletFactoryDotDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||