本文整理汇总了Java中com.liferay.portal.model.ModelListener类的典型用法代码示例。如果您正苦于以下问题:Java ModelListener类的具体用法?Java ModelListener怎么用?Java ModelListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelListener类属于com.liferay.portal.model包,在下文中一共展示了ModelListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the eb partner ship persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.EbPartnerShip")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<EbPartnerShip>> listenersList = new ArrayList<ModelListener<EbPartnerShip>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<EbPartnerShip>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例2: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the payment file persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.PaymentFile")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<PaymentFile>> listenersList = new ArrayList<ModelListener<PaymentFile>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<PaymentFile>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例3: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the doc template persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DocTemplate")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DocTemplate>> listenersList = new ArrayList<ModelListener<DocTemplate>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DocTemplate>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
docTemplateToDossierDocTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
"docTemplateId", "dossierDocId", this, dossierDocPersistence);
}
示例4: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the lms prefs persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.com.liferay.lms.model.LmsPrefs")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<LmsPrefs>> listenersList = new ArrayList<ModelListener<LmsPrefs>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<LmsPrefs>)InstanceFactory.newInstance(
listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例5: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the user certificate download persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.com.liferay.lms.model.UserCertificateDownload")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<UserCertificateDownload>> listenersList = new ArrayList<ModelListener<UserCertificateDownload>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<UserCertificateDownload>)InstanceFactory.newInstance(
listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例6: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the doc file persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DocFile")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DocFile>> listenersList = new ArrayList<ModelListener<DocFile>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DocFile>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例7: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the dossier proc bookmark persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DossierProcBookmark")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DossierProcBookmark>> listenersList = new ArrayList<ModelListener<DossierProcBookmark>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DossierProcBookmark>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例8: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the payment request persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.PaymentRequest")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<PaymentRequest>> listenersList = new ArrayList<ModelListener<PaymentRequest>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<PaymentRequest>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例9: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the dossier proc2 agent persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DossierProc2Agent")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DossierProc2Agent>> listenersList = new ArrayList<ModelListener<DossierProc2Agent>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DossierProc2Agent>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例10: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the dossier folder2 role persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DossierFolder2Role")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DossierFolder2Role>> listenersList = new ArrayList<ModelListener<DossierFolder2Role>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DossierFolder2Role>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例11: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the survey result persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.com.liferay.lms.model.SurveyResult")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<SurveyResult>> listenersList = new ArrayList<ModelListener<SurveyResult>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<SurveyResult>)InstanceFactory.newInstance(
listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例12: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the profile data persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.ProfileData")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<ProfileData>> listenersList = new ArrayList<ModelListener<ProfileData>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<ProfileData>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例13: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the statistic by agency persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.StatisticByAgency")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<StatisticByAgency>> listenersList = new ArrayList<ModelListener<StatisticByAgency>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<StatisticByAgency>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例14: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the dossier folder persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DossierFolder")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DossierFolder>> listenersList = new ArrayList<ModelListener<DossierFolder>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DossierFolder>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
}
示例15: afterPropertiesSet
import com.liferay.portal.model.ModelListener; //导入依赖的package包/类
/**
* Initializes the dossier doc persistence.
*/
public void afterPropertiesSet() {
String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
com.liferay.util.service.ServiceProps.get(
"value.object.listener.org.oep.core.dossiermgt.model.DossierDoc")));
if (listenerClassNames.length > 0) {
try {
List<ModelListener<DossierDoc>> listenersList = new ArrayList<ModelListener<DossierDoc>>();
for (String listenerClassName : listenerClassNames) {
listenersList.add((ModelListener<DossierDoc>)InstanceFactory.newInstance(
getClassLoader(), listenerClassName));
}
listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
}
catch (Exception e) {
_log.error(e);
}
}
dossierDocToDocTemplateTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
"dossierDocId", "docTemplateId", this, docTemplatePersistence);
}