Extending JBoss EPP and          Site Publisher your wayRafael LiuTechnical Account Manager, Red Hat06.27.12
Agenda●   5 minutes intro●   JBoss EPP     ●   Customizing EPP          ●   Kernel          ●   Portal Containers     ●   ...
A comprehensive portal solution●   JBoss Enterprise Portal Platform     ●   Reusable drag & drop portlets     ●   Authn/au...
Customizing EPP●   Services / components     ●   Provide some functionality          ●   e.g.: JCR access, user management...
Kernel●   IoC container (PicoContainer)     ●   Declare services     ●   Plugin configurations     ●   classpath:/conf/con...
Kernel – Declaring new sevices<component>   <key>org.exoplatform.container.definition.PortalContainerConfig</key>   <type>...
Kernel – Plugin configuration<external-component-plugins>   <target-component>o.e.c.d.PortalContainerConfig</target-compon...
Kernel – Using servicespublic class SimpleResourceBundleService extends BaseResourceBundleService{   public SimpleResource...
Kernel – Some EPP services●   TemplateService         ●   UserPortalConfigService●   SkinService             ●   Navigatio...
What are Portal Containers?●   Servlet Context     ●   http://localhost:8080/<portalcontainer>/<site>●   Rest context     ...
What are Portal Containers really?●   EAR packages     ●   Configuration (extension)     ●   Libraries (services)     ●   ...
Demo EPP
Customizing SP●   A big extension!     ●   A set o new Portlets & Services     ●   Reuses EPPs base services     ●   A dif...
Customization features●   Administration     ●   Nodetypes          ●   Inheritance, aggregation, mixins, properties     ●...
Demo SP
Conclusion●   You can extend EPP & SP through Portal Extensions●   ... or create whole new Portal Containers●   Access cor...
Stay connected through Red Hat Customer Portal             Site Publisher User Guide  Docs             How to install EPP ...
Extending JBoss EPP and Site Publisher your way
Extending JBoss EPP and Site Publisher your way
Upcoming SlideShare
Loading in …5
×

Extending JBoss EPP and Site Publisher your way

685 views

Published on

JBoss World 2012
Boston, 27/06/2012

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
685
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Extending JBoss EPP and Site Publisher your way

  1. 1. Extending JBoss EPP and Site Publisher your wayRafael LiuTechnical Account Manager, Red Hat06.27.12
  2. 2. Agenda● 5 minutes intro● JBoss EPP ● Customizing EPP ● Kernel ● Portal Containers ● Demo● JBoss SP ● Customizing SP ● Customization features ● Demo
  3. 3. A comprehensive portal solution● JBoss Enterprise Portal Platform ● Reusable drag & drop portlets ● Authn/authz and user management ● Use standards ● Pluggable● JBoss Site Publisher ● Content Management System ● All through GUI: no code, no file editing, no deploy ● Content publishing, versioning, collaboration, etc.
  4. 4. Customizing EPP● Services / components ● Provide some functionality ● e.g.: JCR access, user management ● Configurable ● Reusable ● Built on top of a kernel● Changing or creating Portal Containers
  5. 5. Kernel● IoC container (PicoContainer) ● Declare services ● Plugin configurations ● classpath:/conf/configuration.xml● NOTE: restricted support
  6. 6. Kernel – Declaring new sevices<component> <key>org.exoplatform.container.definition.PortalContainerConfig</key> <type>o.e.c.d.PortalContainerConfigImpl</type> <init-params> <value-param> <name>default.portal.container</name> <value>portal</value> </value-param> <value-param> <name>default.rest.context</name> <value>rest</value> </value-param> <value-param> <name>default.realm.name</name> <value>gatein-domain</value> </value-param>... </init-params></component>
  7. 7. Kernel – Plugin configuration<external-component-plugins> <target-component>o.e.c.d.PortalContainerConfig</target-component> <component-plugin> <name>Change PortalContainer Definitions</name> <set-method>registerChangePlugin</set-method> <type>o.e.c.d.PortalContainerDefinitionChangePlugin</type> <init-params> <values-param> <name>apply.specific</name> <value>portal</value> </values-param>... </init-params> </component-plugin></external-component-plugins>
  8. 8. Kernel – Using servicespublic class SimpleResourceBundleService extends BaseResourceBundleService{ public SimpleResourceBundleService( InitParams params, CacheService cService, LocaleConfigService localeService) throws Exception { log_ = ExoLogger.getLogger("org.exoplatform.services.resources"); localeService_ = localeService; cache_ = cService.getCacheInstance(ResourceBundleData.class); initParams(params); }...}
  9. 9. Kernel – Some EPP services● TemplateService ● UserPortalConfigService● SkinService ● NavigationService● RepositoryService ● ApplicationRegistryService● UploadService ● PicketLinkIDMCacheService● LocaleConfigService ● PicketLinkIDMService● ResourceBundleService ● ApplicationStatisticService● GadgetRegistryService ● AccountService● CatalogService ● GateInService ● ...
  10. 10. What are Portal Containers?● Servlet Context ● http://localhost:8080/<portalcontainer>/<site>● Rest context ● http://localhost:8080/<restcontainer>● Realm / Security Domain
  11. 11. What are Portal Containers really?● EAR packages ● Configuration (extension) ● Libraries (services) ● Web Content (files)● Create Portal Containers ● Resource overriding● Extend Portal Containers ● Different IoC container, isolated set of services
  12. 12. Demo EPP
  13. 13. Customizing SP● A big extension! ● A set o new Portlets & Services ● Reuses EPPs base services ● A different Portal Container: /ecmdemo ● Configure services, import portlets and create pages● All EPP customizations are here● Customization features ● Extension points
  14. 14. Customization features● Administration ● Nodetypes ● Inheritance, aggregation, mixins, properties ● Templates ● Groovy ● View & Edit ● Actions ● Groovy ● org.exoplatform.services.cms.scripts.CmsScript
  15. 15. Demo SP
  16. 16. Conclusion● You can extend EPP & SP through Portal Extensions● ... or create whole new Portal Containers● Access core features using built-in services● Besides, SP lets you: ● Create new types of contents ● Create or change how content is presented ● Script actions to handle content lifecycle events● Sources: github.com/rafaelliu
  17. 17. Stay connected through Red Hat Customer Portal Site Publisher User Guide Docs How to install EPP and SitePublisher using a single Postgres databaseTech Brief access.redhat.com

×