Fórumok
How to override Liferay core PortalLDAPImporterImpl class
Frantisek Simon, módosítva 11 év-val korábban
How to override Liferay core PortalLDAPImporterImpl class
New Member Bejegyzések: 5 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
Hello,
I have problem to import users from LDAP to Liferay. I need to debug / change function of Liferay core class PortalLDAPImporterImpl.
Can somebody please post exact way how to override this class with use of SDK plugins / ext ? (directory structure, xml files, java class file - empty skeleton just to know where to put class).
I tried many combinations but still I am not able to override this class.
Thank you very much.
I have problem to import users from LDAP to Liferay. I need to debug / change function of Liferay core class PortalLDAPImporterImpl.
Can somebody please post exact way how to override this class with use of SDK plugins / ext ? (directory structure, xml files, java class file - empty skeleton just to know where to put class).
I tried many combinations but still I am not able to override this class.
Thank you very much.
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: How to override Liferay core PortalLDAPImporterImpl class
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
PortalLDAPImporterImpl.java is in \portal-impl\src\com\liferay\portal\security\ldap
Just override this class in your ext plugin.
Just override this class in your ext plugin.
Frantisek Simon, módosítva 11 év-val korábban
RE: How to override Liferay core PortalLDAPImporterImpl class
New Member Bejegyzések: 5 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
Hello,
I know where is original class. I put my class on plugins path:
I run ant deploy for this plugin and restart tomcat. Its still use original class.
Any help would be great.
I know where is original class. I put my class on plugins path:
plugins\ext\%name-of-plugin%\docroot\WEB-INF\ext-impl\src\com\liferay\portal\security\ldap
I run ant deploy for this plugin and restart tomcat. Its still use original class.
Any help would be great.
Frantisek Simon, módosítva 11 év-val korábban
RE: How to override Liferay core PortalLDAPImporterImpl class
New Member Bejegyzések: 5 Csatlakozás dátuma: 2013.02.07. Legújabb bejegyzések
Nobody knows how to override core Liferay class or where should be a problem?
Jitendra Rajput, módosítva 11 év-val korábban
RE: How to override Liferay core PortalLDAPImporterImpl class
Liferay Master Bejegyzések: 875 Csatlakozás dátuma: 2011.01.07. Legújabb bejegyzések
Override using ext-plugin.
1) Create ext-spring.xml inside ext-impl\src\META-INF\
2) Add below bean entry inside ext-spring.xml
Create your CustomPortalLDAPImporterImpl and override original class.
1) Create ext-spring.xml inside ext-impl\src\META-INF\
2) Add below bean entry inside ext-spring.xml
<bean id="com.liferay.portal.security.ldap.PortalLDAPImporterUtil" class="com.liferay.portal.security.ldap.PortalLDAPImporterUtil">
<property name="portalLDAPImporter">
<bean class="com.my.portal.security.ldap.CustomPortalLDAPImporterImpl">
<property name="LDAPToPortalConverter" ref="ldapToPortalConverter" />
</bean>
</property>
</bean>
Create your CustomPortalLDAPImporterImpl and override original class.