use of com.liferay.portlet.wiki.NoSuchNodeException in project liferay-ide by liferay.
the class WikiNodePersistenceImpl method findByG_S_First.
/**
* Returns the first wiki node in the ordered set where groupId = ? and status = ?.
*
* @param groupId the group ID
* @param status the status
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching wiki node
* @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public WikiNode findByG_S_First(long groupId, int status, OrderByComparator orderByComparator) throws NoSuchNodeException, SystemException {
WikiNode wikiNode = fetchByG_S_First(groupId, status, orderByComparator);
if (wikiNode != null) {
return wikiNode;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("groupId=");
msg.append(groupId);
msg.append(", status=");
msg.append(status);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchNodeException(msg.toString());
}
use of com.liferay.portlet.wiki.NoSuchNodeException in project liferay-ide by liferay.
the class WikiNodePersistenceImpl method findByCompanyId_First.
/**
* Returns the first wiki node in the ordered set where companyId = ?.
*
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching wiki node
* @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public WikiNode findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchNodeException, SystemException {
WikiNode wikiNode = fetchByCompanyId_First(companyId, orderByComparator);
if (wikiNode != null) {
return wikiNode;
}
StringBundler msg = new StringBundler(4);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("companyId=");
msg.append(companyId);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchNodeException(msg.toString());
}
use of com.liferay.portlet.wiki.NoSuchNodeException in project liferay-ide by liferay.
the class WikiNodePersistenceImpl method findByC_S_First.
/**
* Returns the first wiki node in the ordered set where companyId = ? and status = ?.
*
* @param companyId the company ID
* @param status the status
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching wiki node
* @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public WikiNode findByC_S_First(long companyId, int status, OrderByComparator orderByComparator) throws NoSuchNodeException, SystemException {
WikiNode wikiNode = fetchByC_S_First(companyId, status, orderByComparator);
if (wikiNode != null) {
return wikiNode;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("companyId=");
msg.append(companyId);
msg.append(", status=");
msg.append(status);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchNodeException(msg.toString());
}
use of com.liferay.portlet.wiki.NoSuchNodeException in project liferay-ide by liferay.
the class WikiNodePersistenceImpl method findByG_S_Last.
/**
* Returns the last wiki node in the ordered set where groupId = ? and status = ?.
*
* @param groupId the group ID
* @param status the status
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching wiki node
* @throws com.liferay.portlet.wiki.NoSuchNodeException if a matching wiki node could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public WikiNode findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator) throws NoSuchNodeException, SystemException {
WikiNode wikiNode = fetchByG_S_Last(groupId, status, orderByComparator);
if (wikiNode != null) {
return wikiNode;
}
StringBundler msg = new StringBundler(6);
msg.append(_NO_SUCH_ENTITY_WITH_KEY);
msg.append("groupId=");
msg.append(groupId);
msg.append(", status=");
msg.append(status);
msg.append(StringPool.CLOSE_CURLY_BRACE);
throw new NoSuchNodeException(msg.toString());
}
use of com.liferay.portlet.wiki.NoSuchNodeException in project liferay-ide by liferay.
the class WikiNodePersistenceImpl method findByUuid_C_PrevAndNext.
/**
* Returns the wiki nodes before and after the current wiki node in the ordered set where uuid = ? and companyId = ?.
*
* @param nodeId the primary key of the current wiki node
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next wiki node
* @throws com.liferay.portlet.wiki.NoSuchNodeException if a wiki node with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public WikiNode[] findByUuid_C_PrevAndNext(long nodeId, String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchNodeException, SystemException {
WikiNode wikiNode = findByPrimaryKey(nodeId);
Session session = null;
try {
session = openSession();
WikiNode[] array = new WikiNodeImpl[3];
array[0] = getByUuid_C_PrevAndNext(session, wikiNode, uuid, companyId, orderByComparator, true);
array[1] = wikiNode;
array[2] = getByUuid_C_PrevAndNext(session, wikiNode, uuid, companyId, orderByComparator, false);
return array;
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);
}
}
Aggregations