Search in sources :

Example 6 with KBFolderImpl

use of com.liferay.knowledgebase.model.impl.KBFolderImpl in project liferay-ide by liferay.

the class KBFolderPersistenceImpl method create.

/**
 * Creates a new k b folder with the primary key. Does not add the k b folder to the database.
 *
 * @param kbFolderId the primary key for the new k b folder
 * @return the new k b folder
 */
@Override
public KBFolder create(long kbFolderId) {
    KBFolder kbFolder = new KBFolderImpl();
    kbFolder.setNew(true);
    kbFolder.setPrimaryKey(kbFolderId);
    String uuid = PortalUUIDUtil.generate();
    kbFolder.setUuid(uuid);
    return kbFolder;
}
Also used : KBFolder(com.liferay.knowledgebase.model.KBFolder) KBFolderImpl(com.liferay.knowledgebase.model.impl.KBFolderImpl)

Aggregations

KBFolderImpl (com.liferay.knowledgebase.model.impl.KBFolderImpl)6 KBFolder (com.liferay.knowledgebase.model.KBFolder)5 NoSuchFolderException (com.liferay.knowledgebase.NoSuchFolderException)4 Session (com.liferay.portal.kernel.dao.orm.Session)4 SystemException (com.liferay.portal.kernel.exception.SystemException)4