|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor
public class ContentletAPIInterceptor
| Constructor Summary | |
|---|---|
ContentletAPIInterceptor()
|
|
| Method Summary | |
|---|---|
void |
addFileToContentlet(Contentlet contentlet,
java.lang.String fileInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Adds a relationship to a contentlet |
void |
addImageToContentlet(Contentlet contentlet,
java.lang.String imageInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Adds a relationship to a contentlet |
void |
addLinkToContentlet(Contentlet contentlet,
java.lang.String linkInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Adds a relationship to a contentlet |
void |
addPostHook(java.lang.Object postHook)
Adds a hook to the end of the chain |
void |
addPostHook(java.lang.String className)
Adds a hook to the end of the chain |
void |
addPostHook(java.lang.String className,
int indexToAddAt)
Adds a hook to the list at the specified index |
void |
addPreHook(java.lang.Object preHook)
Adds a hook to the end of the chain |
void |
addPreHook(java.lang.String className)
Adds a hook to the end of the chain |
void |
addPreHook(java.lang.String className,
int indexToAddAt)
Adds a hook to the list at the specified index |
void |
archive(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method archives the given contentlet |
void |
archive(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method archives the given contentlets |
boolean |
canLock(Contentlet contentlet,
com.liferay.portal.model.User user)
Tests whether a user can potentially lock a piece of content (needed to test before publish, etc). |
Contentlet |
checkin(Contentlet currentContentlet,
ContentletRelationships relationshipsData,
java.util.List<Category> cats,
java.util.List<Permission> selectedPermissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a new version of you contentlet. |
Contentlet |
checkin(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
java.util.List<Category> cats)
Will check in a new version of you contentlet. |
Contentlet |
checkinWithoutVersioning(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will check in a update of your contentlet without generating a new version. |
java.util.List<Contentlet> |
checkout(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Allows you to checkout contents so it can be altered and checked in. |
Contentlet |
checkout(java.lang.String contentletInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Allows you to checkout a content so it can be altered and checked in Note that this method is only intended for use with Checkin methods. |
java.util.List<Contentlet> |
checkout(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int offset,
int limit)
Allows you to checkout contents based on a lucene query so it can be altered and checked in, in a paginated fashion Note that this method is only intended for use with Checkin methods. |
java.util.List<Contentlet> |
checkoutWithQuery(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Allows you to checkout contents based on a lucene query so it can be altered and checked in. |
void |
cleanField(Structure structure,
Field field,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will get all the contentlets for a structure and set the default values for a field on the contentlet. |
void |
cleanHostField(Structure structure,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will get all the contentlets for a structure and set the system host and system folder for the host values Will check Write/Edit permissions on the Contentlet. |
long |
contentletCount()
gets the number of contentlets in the system. |
long |
contentletIdentifierCount()
gets the number of contentlet identifiers in the system. |
Contentlet |
convertContentletToFatContentlet(Contentlet cont,
Contentlet fatty)
Converts a "light" contentlet into a "fat" (legacy) contentlet. |
Contentlet |
convertFatContentletToContentlet(Contentlet fatty)
Converts a "fat" (legacy) contentlet into a new contentlet. |
Contentlet |
copyContentlet(Contentlet contentlet,
Folder folder,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Copies a contentlet, including all its fields including binary files, image and file fields are pointers and the are preserved as the are so if source contentlet points to image A and resulting new contentlet will point to same image A as well, also copies source permissions. |
Contentlet |
copyContentlet(Contentlet contentlet,
Folder folder,
com.liferay.portal.model.User user,
boolean appendCopyToFileName,
boolean respectFrontendRoles)
Copies a contentlet, including all its fields including binary files, image and file fields are pointers and the are preserved as the are so if source contentlet points to image A and resulting new contentlet will point to same image A as well, also copies source permissions. |
Contentlet |
copyContentlet(Contentlet contentlet,
Host host,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Copies a contentlet, including all its fields including binary files, image and file fields are pointers and the are preserved as the are so if source contentlet points to image A and resulting new contentlet will point to same image A as well, also copies source permissions. |
Contentlet |
copyContentlet(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Copies a contentlet, including all its fields including binary files, image and file fields are pointers and the are preserved as the are so if source contentlet points to image A and resulting new contentlet will point to same image A as well, also copies source permissions. |
void |
copyProperties(Contentlet contentlet,
java.util.Map<java.lang.String,java.lang.Object> properties)
Copies properties from the map to the contentlet |
java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> |
DBSearch(GenericQueryFactory.Query query,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will search the DB. |
void |
delete(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method completely deletes the given contentlet from the system |
void |
delete(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
boolean allVersions)
This method completely deletes the given contentlet from the system. |
void |
delete(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method completely deletes the given contentlet from the system |
void |
delete(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
boolean allVersions)
This method completely deletes the given contentlet from the system. |
void |
deleteAllVersionsandBackup(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method completely deletes the given contentlet from the system and make a xml file backup |
int |
deleteOldContent(java.util.Date deleteFrom)
|
void |
deleteRelatedContent(Contentlet contentlet,
Relationship relationship,
boolean hasParent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Deletes all related content from passed in contentlet and relationship |
void |
deleteRelatedContent(Contentlet contentlet,
Relationship relationship,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Deletes all related content from passed in contentlet and relationship |
void |
deleteVersion(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Deletes the given version of the contentlet from the system |
void |
delPostHook(int indexToRemAt)
Removes a hook from the list at the specified index |
void |
delPostHook(java.lang.Object postHook)
Removes a given hook from the list |
void |
delPreHook(int indexToRemAt)
Removes a hook from the list at the specified index |
void |
delPreHook(java.lang.Object preHook)
Removes a given hook from the list |
java.util.List<Contentlet> |
find(Category category,
long languageId,
boolean live,
java.lang.String orderBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will return all content assigned to a specified Category |
java.util.List<Contentlet> |
find(java.util.List<Category> categories,
long languageId,
boolean live,
java.lang.String orderBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will return all content assigned to a specified Categories |
Contentlet |
find(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Finds a Contentlet Object given the inode |
java.util.List<Contentlet> |
findAllContent(int offset,
int limit)
Use to retrieve all version of all content in the database. |
java.util.List<Contentlet> |
findAllUserVersions(Identifier identifier,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves all versions for a contentlet identifier checked in by a real user meaning not the system user |
java.util.List<Contentlet> |
findAllVersions(Identifier identifier,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves all versions for a contentlet identifier Note this method should not be used currently because it could pull too many versions. |
java.util.List<Contentlet> |
findByStructure(java.lang.String structureInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int limit,
int offset)
Returns all Contentlets for a specific structure |
java.util.List<Contentlet> |
findByStructure(Structure structure,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int limit,
int offset)
Returns all Contentlets for a specific structure |
Contentlet |
findContentletByIdentifier(java.lang.String identifier,
boolean live,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves a contentlet from the Lucene index + cache first, then falls back to the database if not found based on its identifier |
Contentlet |
findContentletForLanguage(long languageId,
Identifier contentletId)
Returns a live Contentlet Object for a given language |
java.util.List<Contentlet> |
findContentlets(java.util.List<java.lang.String> inodes)
Gets a list of Contentlets from a passed in list of inodes. |
java.util.List<Contentlet> |
findContentletsByFolder(Folder parentFolder,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets a list of Contentlets from a given parent folder |
java.util.List<Contentlet> |
findContentletsByHost(Host parentHost,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets a list of Contentlets from a given parent host, retrieves the working version of content |
java.util.List<Contentlet> |
findContentletsByIdentifiers(java.lang.String[] identifiers,
boolean live,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves a contentlet list from the database based on a identifiers array |
java.util.Map<Relationship,java.util.List<Contentlet>> |
findContentRelationships(Contentlet contentlet,
com.liferay.portal.model.User user)
Returns the ContentRelationships Map for the specified content. |
java.util.List<java.lang.String> |
findFieldValues(java.lang.String structureInode,
Field field,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
|
java.util.List<Contentlet> |
findPageContentlets(java.lang.String HTMLPageIdentifier,
java.lang.String containerIdentifier,
java.lang.String orderby,
boolean working,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Returns the contentlets on a given page. |
java.util.List<Contentlet> |
getAllLanguages(Contentlet contentlet,
java.lang.Boolean isLiveContent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Returns a contentlet's siblings for a given contentlet object. |
ContentletRelationships |
getAllRelationships(Contentlet contentlet)
Returns all contentlet's relationships for a given contentlet object |
ContentletRelationships |
getAllRelationships(java.lang.String contentletInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Returns all contentlet's relationships for a given contentlet inode |
java.io.File |
getBinaryFile(java.lang.String contentletInode,
java.lang.String velocityVariableName,
com.liferay.portal.model.User user)
Fetches the File Name stored under the contentlet and field |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getContentletReferences(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves all references for a Contentlet. |
java.lang.Object |
getFieldValue(Contentlet contentlet,
Field theField)
Gets the value of a field with a given contentlet |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getMostViewedContent(java.lang.String structureVariableName,
java.lang.String startDate,
java.lang.String endDate,
com.liferay.portal.model.User user)
Gets the top viewed contents identifiers and numberOfViews for a particular structure for a specified date interval |
java.lang.String |
getName(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Meant to get the title or name of a contentlet |
java.util.Date |
getNextReview(Contentlet content,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Finds the next date that a contentlet must be reviewed |
java.util.List<java.lang.String> |
getPostHooks()
All class names of the hooks |
java.util.List<java.lang.String> |
getPreHooks()
All class names of the hooks |
java.util.List<Contentlet> |
getRelatedContent(Contentlet contentlet,
Relationship rel,
boolean pullByParent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets all related content from a same structures (where the parent and child structures are the same type) The parameter pullByParent if set to true tells the method to pull all children where the passed contentlet is the parent, if set to false then the passed contentlet is the child and you want to pull parents If this method is invoked for a no same structures kind of relationships then the parameter pullByParent will be ignored, and the side of the relationship will be figured out automatically |
java.util.List<Contentlet> |
getRelatedContent(Contentlet contentlet,
Relationship rel,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets all related content, if this method is invoked with a same structures (where the parent and child structures are the same type) kind of relationship then all parents and children of the given contentlet will be retrieved in the same returned list |
java.util.List<File> |
getRelatedFiles(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Get all the files relates to the contentlet |
Identifier |
getRelatedIdentifier(Contentlet contentlet,
java.lang.String relationshipType,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets a file with a specific relationship type to the passed in contentlet |
java.util.List<Link> |
getRelatedLinks(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Gets all related links to the contentlet |
java.util.List<Contentlet> |
getSiblings(java.lang.String identifier)
|
java.lang.String |
getUrlMapForContentlet(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Return the URL Map for the specified content if the structure associated to the content has the URL Map Pattern set. |
long |
indexCount(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Allows to count how many records match the specified lucene query and user |
boolean |
isContentEqual(Contentlet contentlet1,
Contentlet contentlet2,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
boolean |
isContentlet(java.lang.String inode)
Use to check if the inode id is a contentlet |
boolean |
isFieldTypeBoolean(Field field)
Use to determine if if the field value is a Boolean value withing the contentlet object |
boolean |
isFieldTypeDate(Field field)
Use to determine if if the field value is a Date value withing the contentlet object |
boolean |
isFieldTypeFloat(Field field)
Use to determine if if the field value is a Float value withing the contentlet object |
boolean |
isFieldTypeLong(Field field)
Use to determine if if the field value is a Long value withing the contentlet object |
boolean |
isFieldTypeString(Field field)
Use to determine if if the field value is a String value withing the contentlet object |
boolean |
isInodeIndexed(java.lang.String inode)
Method will time out after 30 seconds returning false |
boolean |
isInodeIndexed(java.lang.String inode,
boolean live)
this version optionaly adds a +live:true to the search if parameter live is true. |
boolean |
isInodeIndexed(java.lang.String inode,
int secondsToWait)
Method will time out after 30 seconds returning false |
java.lang.Object |
loadField(java.lang.String inode,
Field field)
Reads the field from storage. |
void |
lock(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Use to lock a contentlet |
void |
publish(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Publishes a piece of content. |
void |
publish(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Publishes a piece of content. |
void |
publishRelatedHtmlPages(Contentlet contentlet)
Publishes all related HTMLPage |
void |
refresh(Contentlet contentlet)
Reindexes a single content + refreshes it from cache |
void |
refresh(Structure structure)
Reindexes content for a given structure + refreshes the content from cache |
void |
refreshAllContent()
Reindexes all content + clear the content caches |
void |
refreshContentUnderFolder(Folder folder)
Reindexes content under a given folder + refreshes the content from cache |
void |
refreshContentUnderHost(Host host)
Reindexes content under a given host + refreshes the content from cache |
void |
reindex()
Reindex all content |
void |
reindex(Contentlet contentlet)
reindex a single content |
void |
reindex(Structure structure)
reindex content for a given structure |
void |
relateContent(Contentlet contentlet,
ContentletRelationships.ContentletRelationshipRecords related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Associates the given list of contentlets using the relationship this methods removes old associated content and reset the relatioships based on the list of content passed as parameter |
void |
relateContent(Contentlet contentlet,
Relationship rel,
java.util.List<Contentlet> related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Associates the given list of contentlets using the relationship this methods removes old associated content and reset the relatioships based on the list of content passed as parameter |
void |
removeFolderReferences(Folder folder)
Will update contents that reference the given folder to point to it's parent folder, if it's a top folder it will set folder to be SYSTEM_FOLDER |
void |
removeUserReferences(java.lang.String userId)
Method will remove User References of the given userId in Contentlet |
void |
restoreVersion(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Will make the passed in contentlet the working copy. |
Contentlet |
saveDraft(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Checks if the version you are saving is live=false. |
java.util.List<Contentlet> |
search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
The search here takes a lucene query and pulls Contentlets for you. |
java.util.List<Contentlet> |
search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission)
The search here takes a lucene query and pulls Contentlets for you. |
java.util.List<Contentlet> |
searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
The search here takes a lucene query and pulls Contentlets for you, using the identifier of the contentlet.You can pass sortBy as null if you do not have a field to sort by. |
java.util.List<Contentlet> |
searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission)
The search here takes a lucene query and pulls Contentlets for you, using the identifier of the contentlet.You can pass sortBy as null if you do not have a field to sort by. |
java.util.List<Contentlet> |
searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission,
boolean anyLanguage)
The search here takes a lucene query and pulls Contentlets for you, using the identifier of the contentlet.You can pass sortBy as null if you do not have a field to sort by. |
java.util.List<ContentletSearch> |
searchIndex(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
The search here takes a lucene query and pulls LuceneHits for you. |
void |
setContentletProperty(Contentlet contentlet,
Field field,
java.lang.Object value)
Use to set contentlet properties. |
void |
unarchive(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method unarchives the given contentlet |
void |
unarchive(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method unarchives the given contentlets |
void |
unlock(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
|
void |
unpublish(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method unpublishes the given contentlet |
void |
unpublish(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method unpublishes the given contentlet |
void |
UpdateContentWithSystemHost(java.lang.String hostIdentifier)
Method will update hostInode of content to systemhost |
void |
validateContentlet(Contentlet contentlet,
ContentletRelationships contentRelationships,
java.util.List<Category> cats)
Use to validate your contentlet. |
void |
validateContentlet(Contentlet contentlet,
java.util.List<Category> cats)
Use to validate your contentlet. |
void |
validateContentlet(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats)
Use to validate your contentlet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentletAPIInterceptor()
| Method Detail |
|---|
public void addFileToContentlet(Contentlet contentlet,
java.lang.String fileInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
addFileToContentlet in interface ContentletAPIDotDataException
DotSecurityException
public void addImageToContentlet(Contentlet contentlet,
java.lang.String imageInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
addImageToContentlet in interface ContentletAPIDotSecurityException
DotDataException
public void addLinkToContentlet(Contentlet contentlet,
java.lang.String linkInode,
java.lang.String relationName,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
addLinkToContentlet in interface ContentletAPIDotSecurityException
DotDataException
public void archive(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
archive in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public void archive(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
archive in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public Contentlet checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.contentRelationships - - throws IllegalArgumentException if null. Used to set relationships to new contentlet versioncats - - throws IllegalArgumentException if null. Used to set categories to new contentlet versionpermissions - - throws IllegalArgumentException if null. Used to set permissions to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet currentContentlet,
ContentletRelationships relationshipsData,
java.util.List<Category> cats,
java.util.List<Permission> selectedPermissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcurrentContentlet - - The inode of your contentlet must be 0.relationshipsData - -
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException
DotContentletValidationException
public Contentlet checkin(Contentlet contentlet,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.cats - - throws IllegalArgumentException if null. Used to set categories to new contentlet versionpermissions - - throws IllegalArgumentException if null. Used to set permissions to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet contentlet,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.permissions - - throws IllegalArgumentException if null. Used to set permissions to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
java.util.List<Category> cats)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.cats - - throws IllegalArgumentException if null. Used to set categories to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.contentRelationships - - throws IllegalArgumentException if null. Used to set relationships to new contentlet versioncats - - throws IllegalArgumentException if null. Used to set categories to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkin(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkin in interface ContentletAPIcontentlet - - The inode of your contentlet must be 0.contentRelationships - - throws IllegalArgumentException if null. Used to set relationships to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode not = to 0
DotContentletValidationException - If content is not valid
public Contentlet checkinWithoutVersioning(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
checkinWithoutVersioning in interface ContentletAPIcontentlet - - The inode of your contentlet must be different from 0.contentRelationships - - Used to set relationships to updated contentlet version
DotDataException
DotSecurityException
DotContentletStateException - If exist another contentlet working or live
DotContentletValidationException - If content is not valid
public Contentlet checkout(java.lang.String contentletInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
checkout in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if contentlet is not already persisted
public java.util.List<Contentlet> checkout(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
checkout in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public java.util.List<Contentlet> checkoutWithQuery(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
checkoutWithQuery in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
org.apache.lucene.queryParser.ParseException
public java.util.List<Contentlet> checkout(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int offset,
int limit)
throws DotDataException,
DotSecurityException,
DotContentletStateException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
checkout in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
org.apache.lucene.queryParser.ParseException
public void cleanField(Structure structure,
Field field,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
cleanField in interface ContentletAPIDotSecurityException
DotDataException
public void cleanHostField(Structure structure,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotMappingException
ContentletAPI
cleanHostField in interface ContentletAPIDotSecurityException
DotDataException
DotMappingException
public Contentlet convertContentletToFatContentlet(Contentlet cont,
Contentlet fatty)
throws DotDataException
ContentletAPI
convertContentletToFatContentlet in interface ContentletAPIDotDataException
public Contentlet convertFatContentletToContentlet(Contentlet fatty)
throws DotDataException,
DotSecurityException
ContentletAPI
convertFatContentletToContentlet in interface ContentletAPIDotDataException
DotSecurityException
public void copyProperties(Contentlet contentlet,
java.util.Map<java.lang.String,java.lang.Object> properties)
throws DotContentletStateException,
DotSecurityException
ContentletAPI
copyProperties in interface ContentletAPIcontentlet - contentlet to copy to
DotContentletStateException - if the map passed in has properties that don't match the contentlet
DotSecurityException
public void delete(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
delete in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public void delete(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
boolean allVersions)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
delete in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public void delete(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
delete in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public void delete(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
boolean allVersions)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
delete in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public int deleteOldContent(java.util.Date deleteFrom)
throws DotDataException
deleteOldContent in interface ContentletAPIDotDataException
public void deleteRelatedContent(Contentlet contentlet,
Relationship relationship,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
deleteRelatedContent in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if contentlet doesn't have passed in relationship
public void deleteRelatedContent(Contentlet contentlet,
Relationship relationship,
boolean hasParent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
deleteRelatedContent in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if contentlet doesn't have passed in relationship
public Contentlet find(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
find in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> find(Category category,
long languageId,
boolean live,
java.lang.String orderBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotContentletStateException,
DotSecurityException
ContentletAPI
find in interface ContentletAPIcategory - Category to look forlanguageId - language to pull content for. If 0 will return all languageslive - should return live or working contentorderBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
DotDataException
DotContentletStateException
DotSecurityException
public java.util.List<Contentlet> find(java.util.List<Category> categories,
long languageId,
boolean live,
java.lang.String orderBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotContentletStateException,
DotSecurityException
ContentletAPI
find in interface ContentletAPIcategories - - List of categories to look forlanguageId - language to pull content for. If 0 will return all languageslive - should return live or working contentorderBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
DotDataException
DotContentletStateException
DotSecurityException
public java.util.List<Contentlet> findAllContent(int offset,
int limit)
throws DotDataException
ContentletAPI
findAllContent in interface ContentletAPIoffset - can be 0 if no offsetlimit - can be 0 of no limit
DotDataException
public java.util.List<Contentlet> findAllUserVersions(Identifier identifier,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotStateException
ContentletAPI
findAllUserVersions in interface ContentletAPIDotSecurityException
DotDataException
DotStateException - if the identifier is for contentlet
public java.util.List<Contentlet> findAllVersions(Identifier identifier,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotStateException
ContentletAPI
findAllVersions in interface ContentletAPIDotSecurityException
DotDataException
DotStateException - if the identifier is for contentlet
public java.util.List<Contentlet> findByStructure(Structure structure,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int limit,
int offset)
throws DotDataException,
DotSecurityException
ContentletAPI
findByStructure in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> findByStructure(java.lang.String structureInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int limit,
int offset)
throws DotDataException,
DotSecurityException
ContentletAPI
findByStructure in interface ContentletAPIDotDataException
DotSecurityException
public Contentlet findContentletByIdentifier(java.lang.String identifier,
boolean live,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
findContentletByIdentifier in interface ContentletAPIlive - Retrieves the live version if false retrieves the working version
DotDataException
DotSecurityException
DotContentletStateException
public Contentlet findContentletForLanguage(long languageId,
Identifier contentletId)
throws DotDataException,
DotSecurityException
ContentletAPI
findContentletForLanguage in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> findContentlets(java.util.List<java.lang.String> inodes)
throws DotDataException,
DotSecurityException
ContentletAPI
findContentlets in interface ContentletAPIDotSecurityException
DotDataException
public java.util.List<Contentlet> findContentletsByFolder(Folder parentFolder,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
findContentletsByFolder in interface ContentletAPIDotSecurityException
DotDataException
public java.util.List<Contentlet> findContentletsByHost(Host parentHost,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
findContentletsByHost in interface ContentletAPIDotSecurityException
DotDataException
public java.util.List<Contentlet> findContentletsByIdentifiers(java.lang.String[] identifiers,
boolean live,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
findContentletsByIdentifiers in interface ContentletAPIidentifiers - Array of identifierslive - Retrieves the live version if false retrieves the working version
DotDataException
DotSecurityException
DotContentletStateException
public java.util.List<java.lang.String> findFieldValues(java.lang.String structureInode,
Field field,
com.liferay.portal.model.User user,
boolean respectFrontEndRoles)
throws DotDataException
findFieldValues in interface ContentletAPIDotDataException
public java.util.List<Contentlet> findPageContentlets(java.lang.String HTMLPageIdentifier,
java.lang.String containerIdentifier,
java.lang.String orderby,
boolean working,
long languageId,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
findPageContentlets in interface ContentletAPIDotSecurityException
DotDataException
public java.util.List<Contentlet> getAllLanguages(Contentlet contentlet,
java.lang.Boolean isLiveContent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getAllLanguages in interface ContentletAPIDotDataException
DotSecurityException
public ContentletRelationships getAllRelationships(java.lang.String contentletInode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getAllRelationships in interface ContentletAPIDotDataException
DotSecurityException
public ContentletRelationships getAllRelationships(Contentlet contentlet)
throws DotDataException
ContentletAPI
getAllRelationships in interface ContentletAPIDotDataException
public java.io.File getBinaryFile(java.lang.String contentletInode,
java.lang.String velocityVariableName,
com.liferay.portal.model.User user)
throws DotDataException,
DotSecurityException
ContentletAPI
getBinaryFile in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getContentletReferences(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotContentletStateException
ContentletAPI
getContentletReferences in interface ContentletAPIDotSecurityException
DotDataException
DotContentletStateException - - if teh contentlet is null or has an inode of 0
public java.lang.Object getFieldValue(Contentlet contentlet,
Field theField)
ContentletAPI
getFieldValue in interface ContentletAPI
public java.lang.String getName(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotContentletStateException,
DotDataException
ContentletAPI
getName in interface ContentletAPIDotSecurityException
DotContentletStateException
DotDataException
public java.util.Date getNextReview(Contentlet content,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException
ContentletAPI
getNextReview in interface ContentletAPIDotSecurityException
public java.util.List<Contentlet> getRelatedContent(Contentlet contentlet,
Relationship rel,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getRelatedContent in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> getRelatedContent(Contentlet contentlet,
Relationship rel,
boolean pullByParent,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getRelatedContent in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<File> getRelatedFiles(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getRelatedFiles in interface ContentletAPIDotDataException
DotSecurityException
public Identifier getRelatedIdentifier(Contentlet contentlet,
java.lang.String relationshipType,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getRelatedIdentifier in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Link> getRelatedLinks(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
getRelatedLinks in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<ContentletSearch> searchIndex(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws org.apache.lucene.queryParser.ParseException,
DotSecurityException,
DotDataException
ContentletAPI
searchIndex in interface ContentletAPIsortBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
org.apache.lucene.queryParser.ParseException
DotSecurityException - if user is null and respectFrontendRoles is false
DotDataException
public boolean isContentEqual(Contentlet contentlet1,
Contentlet contentlet2,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
isContentEqual in interface ContentletAPIDotSecurityException
DotDataException
public boolean isContentlet(java.lang.String inode)
throws DotDataException,
DotRuntimeException
ContentletAPI
isContentlet in interface ContentletAPIinode - id to check
DotDataException
DotRuntimeExceptionpublic boolean isFieldTypeBoolean(Field field)
ContentletAPI
isFieldTypeBoolean in interface ContentletAPIpublic boolean isFieldTypeDate(Field field)
ContentletAPI
isFieldTypeDate in interface ContentletAPIpublic boolean isFieldTypeFloat(Field field)
ContentletAPI
isFieldTypeFloat in interface ContentletAPIpublic boolean isFieldTypeLong(Field field)
ContentletAPI
isFieldTypeLong in interface ContentletAPIpublic boolean isFieldTypeString(Field field)
ContentletAPI
isFieldTypeString in interface ContentletAPI
public void lock(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
lock in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - - if the contentlet is null
public void publish(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotContentletStateException,
DotContentletStateException,
DotStateException
ContentletAPI
publish in interface ContentletAPIDotSecurityException
DotDataException
DotContentletStateException
DotStateException
public void publish(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException,
DotContentletStateException,
DotStateException
ContentletAPI
publish in interface ContentletAPIDotSecurityException
DotDataException
DotContentletStateException
DotStateExceptionpublic void publishRelatedHtmlPages(Contentlet contentlet)
ContentletAPI
publishRelatedHtmlPages in interface ContentletAPI
public void reindex()
throws DotReindexStateException
ContentletAPI
reindex in interface ContentletAPIDotReindexStateException
public void reindex(Structure structure)
throws DotReindexStateException
ContentletAPI
reindex in interface ContentletAPIDotReindexStateException
public void reindex(Contentlet contentlet)
throws DotReindexStateException,
DotDataException
ContentletAPI
reindex in interface ContentletAPIDotReindexStateException
DotDataException
public void refresh(Structure structure)
throws DotReindexStateException
ContentletAPI
refresh in interface ContentletAPIDotReindexStateException
public void refresh(Contentlet contentlet)
throws DotReindexStateException,
DotDataException
ContentletAPI
refresh in interface ContentletAPIDotReindexStateException
DotDataException
public void refreshAllContent()
throws DotReindexStateException
ContentletAPI
refreshAllContent in interface ContentletAPIDotReindexStateException
public void refreshContentUnderHost(Host host)
throws DotReindexStateException
ContentletAPI
refreshContentUnderHost in interface ContentletAPIDotReindexStateException
public void relateContent(Contentlet contentlet,
Relationship rel,
java.util.List<Contentlet> related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
relateContent in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if one of the contentlets doesn't have passed in relationship. The method will still try to handle the other relationships
public void relateContent(Contentlet contentlet,
ContentletRelationships.ContentletRelationshipRecords related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
relateContent in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if one of the contentlets doesn't have passed in relationship. The method will still try to handle the other relationships
public void restoreVersion(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotContentletStateException,
DotDataException
ContentletAPI
restoreVersion in interface ContentletAPIDotSecurityException
DotContentletStateException
DotDataException
public java.util.List<Contentlet> search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
search in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> search(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission)
throws DotDataException,
DotSecurityException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
search in interface ContentletAPIsortBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
DotDataException
DotSecurityException
org.apache.lucene.queryParser.ParseException
public void setContentletProperty(Contentlet contentlet,
Field field,
java.lang.Object value)
throws DotContentletStateException
ContentletAPI
setContentletProperty in interface ContentletAPIDotContentletStateException - if the object isn't the proper type or cannot be converted to the proper type
public void unarchive(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
unarchive in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - If one or more of the contentlets are not archived. It will unarchive all that it can though
public void unarchive(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
unarchive in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if the contentlet is not archived
public void unlock(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
unlock in interface ContentletAPIDotDataException
DotSecurityException
public void unpublish(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
unpublish in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - if the contentent cannot be unlocked by the user
public void unpublish(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
unpublish in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - If one or more contentlets are locked and the user is not the one who locked it. It will unpublish all that are possible though
public void validateContentlet(Contentlet contentlet,
java.util.List<Category> cats)
throws DotContentletValidationException
ContentletAPI
validateContentlet in interface ContentletAPIDotContentletValidationException - will be thrown if the contentlet is not valid.
Use the notValidFields property of the exception to get which fields where not valid
public void validateContentlet(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats)
throws DotContentletValidationException
ContentletAPI
validateContentlet in interface ContentletAPIDotContentletValidationException - will be thrown if the contentlet is not valid.
Use the notValidFields property of the exception to get which fields where not valid
public void validateContentlet(Contentlet contentlet,
ContentletRelationships contentRelationships,
java.util.List<Category> cats)
throws DotContentletValidationException
ContentletAPI
validateContentlet in interface ContentletAPIDotContentletValidationException - will be thrown if the contentlet is not valid.
Use the notValidFields property of the exception to get which fields where not valid
public void addPreHook(java.lang.String className)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPreHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void addPreHook(java.lang.Object preHook)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPreHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void addPostHook(java.lang.String className,
int indexToAddAt)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPostHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void addPostHook(java.lang.String className)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPostHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void addPostHook(java.lang.Object postHook)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPostHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public void addPreHook(java.lang.String className,
int indexToAddAt)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Interceptor
addPreHook in interface Interceptorjava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundExceptionpublic void delPreHook(int indexToRemAt)
Interceptor
delPreHook in interface Interceptorpublic void delPreHook(java.lang.Object preHook)
Interceptor
delPreHook in interface Interceptorpublic void delPostHook(int indexToRemAt)
Interceptor
delPostHook in interface Interceptorpublic void delPostHook(java.lang.Object postHook)
Interceptor
delPostHook in interface Interceptorpublic java.util.List<java.lang.String> getPreHooks()
Interceptor
getPreHooks in interface Interceptorpublic java.util.List<java.lang.String> getPostHooks()
Interceptor
getPostHooks in interface Interceptor
public long contentletCount()
throws DotDataException
ContentletAPI
contentletCount in interface ContentletAPIDotDataException
public long contentletIdentifierCount()
throws DotDataException
ContentletAPI
contentletIdentifierCount in interface ContentletAPIDotDataException
public void deleteAllVersionsandBackup(java.util.List<Contentlet> contentlets,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
deleteAllVersionsandBackup in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public java.util.List<Contentlet> getSiblings(java.lang.String identifier)
throws DotDataException,
DotSecurityException
getSiblings in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> DBSearch(GenericQueryFactory.Query query,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws ValidationException,
DotDataException
ContentletAPI
DBSearch in interface ContentletAPIValidationException
DotDataException
public Contentlet copyContentlet(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
copyContentlet in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException - throws this exception if the new contentlet requires a
destination host or folder mandated by its structure
public Contentlet copyContentlet(Contentlet contentlet,
Host host,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
copyContentlet in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public Contentlet copyContentlet(Contentlet contentlet,
Folder folder,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
copyContentlet in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateException
public Contentlet copyContentlet(Contentlet contentlet,
Folder folder,
com.liferay.portal.model.User user,
boolean appendCopyToFileName,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
DotContentletStateException
ContentletAPI
copyContentlet in interface ContentletAPIDotDataException
DotSecurityException
DotContentletStateExceptionpublic boolean isInodeIndexed(java.lang.String inode)
ContentletAPI
isInodeIndexed in interface ContentletAPI
public boolean isInodeIndexed(java.lang.String inode,
boolean live)
ContentletAPI
isInodeIndexed in interface ContentletAPI
public boolean isInodeIndexed(java.lang.String inode,
int secondsToWait)
ContentletAPI
isInodeIndexed in interface ContentletAPIsecondsToWait - - how long to wait before timing out
public void UpdateContentWithSystemHost(java.lang.String hostIdentifier)
throws DotDataException,
DotSecurityException
ContentletAPI
UpdateContentWithSystemHost in interface ContentletAPIDotSecurityException
DotDataException
public void removeUserReferences(java.lang.String userId)
throws DotDataException,
DotSecurityException
ContentletAPI
removeUserReferences in interface ContentletAPIDotSecurityException
DotDataException
public java.lang.String getUrlMapForContentlet(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
ContentletAPI
getUrlMapForContentlet in interface ContentletAPIDotSecurityException
DotDataException
public void deleteVersion(Contentlet contentlet,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
deleteVersion in interface ContentletAPIDotDataException
DotSecurityException
public Contentlet saveDraft(Contentlet contentlet,
java.util.Map<Relationship,java.util.List<Contentlet>> contentRelationships,
java.util.List<Category> cats,
java.util.List<Permission> permissions,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws java.lang.IllegalArgumentException,
DotDataException,
DotSecurityException,
DotContentletStateException,
DotContentletValidationException
ContentletAPI
saveDraft in interface ContentletAPIcontentlet - - The inode of your contentlet must not be null.contentRelationships - - throws IllegalArgumentException if null. Used to set relationships to new contentlet versioncats - - throws IllegalArgumentException if null. Used to set categories to new contentlet versionpermissions - - throws IllegalArgumentException if null. Used to set permissions to new contentlet version
java.lang.IllegalArgumentException
DotDataException
DotSecurityException
DotContentletStateException - If inode null
DotContentletValidationException - If content is not valid
public java.util.List<Contentlet> searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
searchByIdentifier in interface ContentletAPIDotDataException
DotSecurityException
org.apache.lucene.queryParser.ParseException
public java.util.List<Contentlet> searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission)
throws DotDataException,
DotSecurityException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
searchByIdentifier in interface ContentletAPIsortBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
DotDataException
DotSecurityException
org.apache.lucene.queryParser.ParseException
public java.util.List<Contentlet> searchByIdentifier(java.lang.String luceneQuery,
int limit,
int offset,
java.lang.String sortBy,
com.liferay.portal.model.User user,
boolean respectFrontendRoles,
int requiredPermission,
boolean anyLanguage)
throws DotDataException,
DotSecurityException,
org.apache.lucene.queryParser.ParseException
ContentletAPI
searchByIdentifier in interface ContentletAPIsortBy - indexName(previously known as dbColumnName) to order by. Can be null or empty string
DotDataException
DotSecurityException
org.apache.lucene.queryParser.ParseException
public void refreshContentUnderFolder(Folder folder)
throws DotReindexStateException
ContentletAPI
refreshContentUnderFolder in interface ContentletAPIDotReindexStateException
public void removeFolderReferences(Folder folder)
throws DotDataException,
DotSecurityException
ContentletAPI
removeFolderReferences in interface ContentletAPIDotDataException
DotSecurityException
public boolean canLock(Contentlet contentlet,
com.liferay.portal.model.User user)
throws DotLockException
ContentletAPI
canLock in interface ContentletAPIDotLockException
public java.util.Map<Relationship,java.util.List<Contentlet>> findContentRelationships(Contentlet contentlet,
com.liferay.portal.model.User user)
throws DotDataException,
DotSecurityException
ContentletAPI
findContentRelationships in interface ContentletAPIDotDataException
DotSecurityException
public java.lang.Object loadField(java.lang.String inode,
Field field)
throws DotDataException
ContentletAPI
loadField in interface ContentletAPIDotDataException
public long indexCount(java.lang.String luceneQuery,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
ContentletAPI
indexCount in interface ContentletAPIDotDataException
DotSecurityException
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getMostViewedContent(java.lang.String structureVariableName,
java.lang.String startDate,
java.lang.String endDate,
com.liferay.portal.model.User user)
ContentletAPI
getMostViewedContent in interface ContentletAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||