本文整理汇总了Java中com.liferay.portal.NoSuchModelException类的典型用法代码示例。如果您正苦于以下问题:Java NoSuchModelException类的具体用法?Java NoSuchModelException怎么用?Java NoSuchModelException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NoSuchModelException类属于com.liferay.portal包,在下文中一共展示了NoSuchModelException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTrashEntry
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
@Override
public TrashEntry getTrashEntry() throws PortalException {
if (!isInTrash()) {
return null;
}
TrashEntry trashEntry = TrashEntryLocalServiceUtil.fetchEntry(getModelClassName(),
getTrashEntryClassPK());
if (trashEntry != null) {
return trashEntry;
}
TrashHandler trashHandler = getTrashHandler();
if (!Validator.isNull(trashHandler.getContainerModelClassName())) {
ContainerModel containerModel = null;
try {
containerModel = trashHandler.getParentContainerModel(this);
}
catch (NoSuchModelException nsme) {
return null;
}
while (containerModel != null) {
if (containerModel instanceof TrashedModel) {
TrashedModel trashedModel = (TrashedModel)containerModel;
return trashedModel.getTrashEntry();
}
trashHandler = TrashHandlerRegistryUtil.getTrashHandler(trashHandler.getContainerModelClassName());
if (trashHandler == null) {
return null;
}
containerModel = trashHandler.getContainerModel(containerModel.getParentContainerModelId());
}
}
return null;
}
示例2: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the legal details with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the legal details
* @return the legal details
* @throws com.liferay.portal.NoSuchModelException if a legal details with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public LegalDetails findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例3: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the multi media with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the multi media
* @return the multi media
* @throws com.liferay.portal.NoSuchModelException if a multi media with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public MultiMedia findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例4: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the category with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the category
* @return the category
* @throws com.liferay.portal.NoSuchModelException if a category with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Category findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例5: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the region with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the region
* @return the region
* @throws com.liferay.portal.NoSuchModelException if a region with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Region findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例6: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the entitlement with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the entitlement
* @return the entitlement
* @throws com.liferay.portal.NoSuchModelException if a entitlement with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Entitlement findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例7: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the logging with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the logging
* @return the logging
* @throws com.liferay.portal.NoSuchModelException if a logging with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Logging findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例8: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the application with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the application
* @return the application
* @throws com.liferay.portal.NoSuchModelException if a application with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Application findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例9: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the language with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the language
* @return the language
* @throws com.liferay.portal.NoSuchModelException if a language with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Language findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例10: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the link with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the link
* @return the link
* @throws com.liferay.portal.NoSuchModelException if a link with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Link findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例11: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the related applications with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the related applications
* @return the related applications
* @throws com.liferay.portal.NoSuchModelException if a related applications with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public RelatedApplications findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例12: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the application_ entitlement with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the application_ entitlement
* @return the application_ entitlement
* @throws com.liferay.portal.NoSuchModelException if a application_ entitlement with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Application_Entitlement findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例13: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the concern with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the concern
* @return the concern
* @throws com.liferay.portal.NoSuchModelException if a concern with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public Concern findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long) primaryKey).longValue());
}
示例14: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the lms prefs with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the lms prefs
* @return the lms prefs
* @throws com.liferay.portal.NoSuchModelException if a lms prefs with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public LmsPrefs findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long)primaryKey).longValue());
}
示例15: findByPrimaryKey
import com.liferay.portal.NoSuchModelException; //导入依赖的package包/类
/**
* Returns the learning activity with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
*
* @param primaryKey the primary key of the learning activity
* @return the learning activity
* @throws com.liferay.portal.NoSuchModelException if a learning activity with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public LearningActivity findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException, SystemException {
return findByPrimaryKey(((Long)primaryKey).longValue());
}