Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


oracle.adf.model.portlet.rc.security
Class PortletItemSecurityHelper

java.lang.Object
  extended by oracle.adf.model.portlet.rc.security.PortletItemSecurityHelper


public abstract class PortletItemSecurityHelper
extends java.lang.Object

Abstract implementation of the resource catalog's oracle.adf.rc.security.ItemSecurityHelper interface. Subclasses should implement canView(String, String) to control visibility of portlets in the resource catalog. The implementation class should then be registered in META-INF/rc_ext.xml using the following:

   <extension xmlns:="http://xmlns.oracle.com/adf/rc/extension"
                 id="your_extension_id"
                 name="Your_Extension_Name"
                 version="11.1.1.4.0">
     <item-security-helper class="your.implementation.class.name"/>
   </extension>
 

Constructor Summary
PortletItemSecurityHelper()
           

 

Method Summary
 boolean canView(CatalogItem item)
          Implementation of oracle.adf.rc.security.ItemSecurityHelper#canView that extracts the producer id and portlet id & delegates the call to canView(java.lang.String, java.lang.String)
abstract  boolean canView(java.lang.String producerId, java.lang.String portletId)
          Returns true if the current user has permission to view the specified portlet.
 java.lang.String[] getHandledClassNames()
          Returns an array containing the names of the portlet resource classes that should be handled by this helper.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PortletItemSecurityHelper

public PortletItemSecurityHelper()

Method Detail

canView

public abstract boolean canView(java.lang.String producerId,
                                java.lang.String portletId)
Returns true if the current user has permission to view the specified portlet. Subclasses should implement this method to control visibility of portlets in the resource catalog
Parameters:
producerId - ID of the producer owning the portlet
portletId - ID of the portlet
Returns:
true if the current user has permission to view the specified portlet. Otherwise false.

getHandledClassNames

public final java.lang.String[] getHandledClassNames()
Returns an array containing the names of the portlet resource classes that should be handled by this helper.
Returns:
Returns an array containing the fully qualified names of the CatalogItems handled by this helper

canView

public final boolean canView(CatalogItem item)
Implementation of oracle.adf.rc.security.ItemSecurityHelper#canView that extracts the producer id and portlet id & delegates the call to canView(java.lang.String, java.lang.String)
Parameters:
item - the CatalogItem to be checked
Returns:
true if the current user has permission to view the item. Otherwise false.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.