本文整理汇总了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();
示例2: setExpandoBridgeAttributes
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
示例3: setExpandoBridgeAttributes
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
示例4: getExpandoBridge
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
PaymentConfig.class.getName(), getPrimaryKey());
}
示例5: getExpandoBridge
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
DossierStep.class.getName(), getPrimaryKey());
}
示例6: getExpandoBridge
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
AHContact.class.getName(), getPrimaryKey());
}
示例7: setExpandoBridgeAttributes
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
示例8: getExpandoBridge
import com.liferay.portlet.expando.model.ExpandoBridge; //导入依赖的package包/类
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
AHSubscription.class.getName(), getPrimaryKey());
}
示例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;
}