use of com.liferay.portlet.expando.model.ExpandoBridge in project liferay-ide by liferay.
the class AlbumModelImpl method setExpandoBridgeAttributes.
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
use of com.liferay.portlet.expando.model.ExpandoBridge in project liferay-ide by liferay.
the class ArtistModelImpl method setExpandoBridgeAttributes.
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
use of com.liferay.portlet.expando.model.ExpandoBridge in project liferay-ide by liferay.
the class SongModelImpl method setExpandoBridgeAttributes.
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
use of com.liferay.portlet.expando.model.ExpandoBridge in project liferay-ide by liferay.
the class KBCommentModelImpl method setExpandoBridgeAttributes.
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
use of com.liferay.portlet.expando.model.ExpandoBridge in project liferay-ide by liferay.
the class SerializerUtil method toExpandoAttributes.
public static Map<String, Serializable> toExpandoAttributes(Object bean, Object[] fields, long companyId, String className) throws PortalException {
ExpandoBridge expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(companyId, className);
for (Object field : fields) {
String fieldName = field.toString();
String value = BeanPropertiesUtil.getString(bean, fieldName);
if ((value != null) && !expandoBridge.hasAttribute(fieldName)) {
expandoBridge.addAttribute(fieldName);
}
}
Map<String, Serializable> expandoBridgeAttributes = new LinkedHashMap<String, Serializable>();
copyProperties(bean, expandoBridgeAttributes, fields);
return expandoBridgeAttributes;
}
Aggregations