当前位置: 首页>>代码示例>>Java>>正文


Java ExpandoBridge类代码示例

本文整理汇总了Java中com.liferay.portlet.expando.model.ExpandoBridge的典型用法代码示例。如果您正苦于以下问题:Java ExpandoBridge类的具体用法?Java ExpandoBridge怎么用?Java ExpandoBridge使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExpandoBridge类属于com.liferay.portlet.expando.model包,在下文中一共展示了ExpandoBridge类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getExpandoBridge

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge();
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:3,代码来源:DossierProc2ProcessModel.java

示例2: setExpandoBridgeAttributes

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:3,代码来源:DocFile2ProcessOrderModel.java

示例3: setExpandoBridgeAttributes

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
    ExpandoBridge expandoBridge = getExpandoBridge();

    expandoBridge.setAttributes(serviceContext);
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:7,代码来源:AHContactModelImpl.java

示例4: getExpandoBridge

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
	return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
		PaymentConfig.class.getName(), getPrimaryKey());
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:6,代码来源:PaymentConfigModelImpl.java

示例5: getExpandoBridge

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
	return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
		DossierStep.class.getName(), getPrimaryKey());
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:6,代码来源:DossierStepModelImpl.java

示例6: getExpandoBridge

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
    return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
        AHContact.class.getName(), getPrimaryKey());
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:6,代码来源:AHContactModelImpl.java

示例7: setExpandoBridgeAttributes

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
	ExpandoBridge expandoBridge = getExpandoBridge();

	expandoBridge.setAttributes(serviceContext);
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:7,代码来源:DictCollectionModelImpl.java

示例8: getExpandoBridge

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
    return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
        AHSubscription.class.getName(), getPrimaryKey());
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:6,代码来源:AHSubscriptionModelImpl.java

示例9: doGetDocument

import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
protected Document doGetDocument(Object obj) throws Exception {
	Course entry = (Course)obj;
	AssetEntry asset=AssetEntryLocalServiceUtil.getEntry(Course.class.getName(), entry.getCourseId());
	long companyId = entry.getCompanyId();
	long groupId = getParentGroupId(entry.getGroupId());
	long scopeGroupId = entry.getGroupId();
	long userId = entry.getUserId();
	User user=UserLocalServiceUtil.getUser(userId);
	String userName = user.getFullName();
	long entryId = entry.getCourseId();
	String title = entry.getTitle();
	String content = HtmlUtil.extractText(entry.getDescription());
	Date displayDate = asset.getPublishDate();

	long[] assetCategoryIds =AssetCategoryLocalServiceUtil.getCategoryIds(Course.class.getName(), entryId);
	String[] assetTagNames =AssetTagLocalServiceUtil.getTagNames(Course.class.getName(), entryId);

	ExpandoBridge expandoBridge = entry.getExpandoBridge();

	Document document = new DocumentImpl();

	document.addUID(PORTLET_ID, entryId);

	document.addModifiedDate(displayDate);

	document.addKeyword(Field.COMPANY_ID, companyId);
	document.addKeyword(Field.PORTLET_ID, PORTLET_ID);
	document.addKeyword(Field.GROUP_ID, groupId);
	document.addKeyword(Field.SCOPE_GROUP_ID, scopeGroupId);
	document.addKeyword(Field.USER_ID, userId);
	document.addText(Field.USER_NAME, userName);

	document.addText(Field.TITLE, title);
	document.addText(Field.CONTENT, content);
	document.addKeyword(Field.ASSET_CATEGORY_IDS, assetCategoryIds);
	document.addKeyword(Field.ASSET_TAG_NAMES, assetTagNames);

	document.addKeyword(Field.ENTRY_CLASS_NAME, LearningActivity.class.getName());
	document.addKeyword(Field.ENTRY_CLASS_PK, entryId);

	ExpandoBridgeIndexerUtil.addAttributes(document, expandoBridge);

	return document;
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:46,代码来源:CourseIndexer.java


注:本文中的com.liferay.portlet.expando.model.ExpandoBridge类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。