Get all visitor roles in an admin extension

Hi,
i want to extend my portal administration console.
It is possible to get a list of all visitor roles in my extension?
Markus

look at RolePolicyManager
e.g.
import com.bea.p13n.management.ApplicationHelper;
import com.bea.p13n.entitlements.common.EntitlementConstants;
import com.bea.p13n.entitlements.management.RolePolicyManager;
String entAppName=ApplicationHelper.getApplicationName();
String webAppName = ApplicationHelper.getWebAppName(request);
String[] policies = RolePolicyManager.listRolesForResource(entAppName, webAppName, EntitlementConstants.P13N_ROLE_POLICY_POOL);

Similar Messages

  • Where can I get the visitor role definition?

    Hi, In the portal database I see P13N_ENTITLEMENT_ROLE have all the roles. But I don't see how the roles are defined. Is there a way to query how the roles are defined? I would like to clean up some of my unused properties. Thanks!

    in MAPVIEWER_HOME/web/WEB-INF/admin/mcsdefinition.sql
    Use that file. Run the relevant commands as sys or a privileged user.

  • Visitor entitlements in a admin extension

    Hi,
    i want to extend my portal administration console.
    Is there a way to get a list of all visitor entitlements?
    Thanks!
    Markus

    look at RolePolicyManager
    e.g.
    import com.bea.p13n.management.ApplicationHelper;
    import com.bea.p13n.entitlements.common.EntitlementConstants;
    import com.bea.p13n.entitlements.management.RolePolicyManager;
    String entAppName=ApplicationHelper.getApplicationName();
    String webAppName = ApplicationHelper.getWebAppName(request);
    String[] policies = RolePolicyManager.listRolesForResource(entAppName, webAppName, EntitlementConstants.P13N_ROLE_POLICY_POOL);

  • J2EE, get all security roles

    On a J2EE application server (preferable from in a Servlet, but EJB is also fine), how do I get an array or list of all security roles?
    I want to present the user who creates for example a forum topic to define which roles can view it.

    On a J2EE application server (preferable from in a
    Servlet, but EJB is also fine), how do I get an array
    or list of all security roles?
    I want to present the user who creates for example a
    forum topic to define which roles can view it.Short answer: You cant, because there is no such functionality mandated by either the servlet or the ejb specs.
    Long answer: You can, but it will be particular to the registry implementation you use, and will also mandate some naming scheme to map between for example ldap groups and authentication roles.
    Br - J

  • Disaply the all the roles for page, iview and workset

    Hi Guys,
                  I have a strange requirement. i need to display all the users that have access to a particular iview, page and workset. can anyone help me out with this.
    -Thanks

    Hi,
      Any iview or page or workset should be part of role. SO if user has access to a particular role, he will have access to the portal objects inside that role as well. So the way to go is you can get all the roles, check iViews, pages etc. If iViews or pages match, then save the role to arraylist. Now check the users who are assigned to these roles in arraylist. That may work.
    Regards,
    Harini S
    Don't forget to reward if you find the answer helpful

  • Get all roles from an organization

    Hello,
    i want to get all roles 'AMRoles) from an organizations. I have Portal Server 2005Q4 on a machine and Access Manager and Directory on another and i want to extract all display profiles from all roles in different files (more than 100).
    I found the dpadmin command line to extract a Display Profile from a dn but, how can i get the list of roles with the amadmin command line tool ?
    thanks for help.
    Philippe

    Hello,
    I take a look, found differents xml files but : no help, no "howto", no thing very interesting.
    I try this command :
    /opt/SUNWam/bin/amadmin -u "cn=Directory Manager" -w ******* -e "dc=isere-savoie,dc=fr" -o /export/home/jes/test.xmland with other values in the -e parameter but always the same message :
    Erreur 9 : �chec de l'op�ration : Failed to export entityDescriptor to a file.Any idea ?
    any link to some help on this command other than Access Manager amadmin Command Line ?
    a complement : in the debug files, I have this errors :
    ==> /var/opt/SUNWam/debug/amFederation <==
    01/30/2008 04:40:59:324 PM CET: Thread[main,5,main]
    ERROR: FSAllianceManager::getEntity entityID: dc=isere-savoie,dc=fris invalid
    ==> /var/opt/SUNWam/debug/amMeta <==
    01/30/2008 04:40:59:510 PM CET: Thread[main,5,main]
    ERROR: Failed to export entityDescriptor to a file
    --------------------------------------Got Federation Exception
    Message: Invalid Provider ID.
            at com.sun.identity.federation.alliance.FSAllianceManager.getEntity(FSAllianceManager.java:1815)
            at com.sun.identity.liberty.ws.meta.LibertyMetaHandler.SMToMeta(LibertyMetaHandler.java:109)
            at com.iplanet.am.admin.cli.Main.outputLibertyData(Main.java:889)
            at com.iplanet.am.admin.cli.Main.runCommand(Main.java:730)
            at com.iplanet.am.admin.cli.Main.main(Main.java:1124)thanks
    Philippe
    Edited by: beutin on Jan 30, 2008 4:43 PM

  • Visitor Roles creation - NoClassDefFoundError

    Hi,
    I want to use visitor entitlement for my portal application, deployed as an EAR. I've a Session property set defined in my Datasync project within WL Workshop.
    The application has been successfully deployed on the WLS (8.1 SP3), and I've bootstrapped portal data using META-INF/data as the source.
    But anytime I want to create a Visitor role with the Portal admin console to use this property set, I get the following exception :
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError
         at com.bea.jsptools.vent.backing.VEntBackingPageFilter.isValidInput(VEntBackingPageFilter.java:374)
         at com.bea.jsptools.vent.backing.VEntBackingPageFilter.preRender(VEntBackingPageFilter.java:116)
         at com.bea.netuix.servlets.controls.content.JspContent.preRender(JspContent.java:314)
         at com.bea.netuix.nf.ControlLifecycle$5.visit(ControlLifecycle.java:405)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:618)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:629)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:137)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:158)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:360)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:198)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:711)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    This seems odd, 'cause VEntBackingPageFilter comes from adminPortal.war, and I know it is embedded in my EAR.
    Wasn't really lucky with my search in these newsgroups.
    Well, as I'm quite new to portal dev and admin, I wonder if I'm missing something.
    Do someone have any clue on this ?
    Thanks for your help.
    CG

    Hi Jonathan
    I faced the similar problem and will share my observations.
    1. Redeploying a portal applicaton (specailly .EAR mode), can be done in 2 ways. Update existing Deployement like in Weblogic Console, we select Update button and upload latest version of .EAR and click next next etc. Another option is to Completely Delete the Existing deployment and start from fresh deploying the same .EAR file.
    2. I tried second option couple of times, I Deleted the existing portal application from weblogic console. The reason was some of my portlets were not showing up properly. Then I uploaded the latest .EAR file. I could see all my portal changes. BUT lost all my Visitor Entitlemenst, DA stuff on existing portal resources like Pages, Books, Portlets etc. Then I thought this does make sense. When I delete my portal ear completely, internal framework does delete all this security stuff. Reason is Visitor Entitlements, DAs etc are all tied to these portal resources. I lost all entitlements to all my Content stuff also.
    3. But in Update mode, I never lost any existing Entitlements or DA stuff. So I always use Update to upload new version of my portal EAR. And I never lost any existing entitlements or DA stuff etc in this mode.
    Thanks
    Ravi Jegga

  • Weblogic 8.1.6-  how to export/import  visitors role

    Hi,
    I am using weblogic 8.1.6. I have 2 web application in the same portal admin . one of the web application is fully configured and running. I want to use the same visitor role of the first web application in the second one .
    so please guide me how to export visitor role from one web application and import into the another web application in the same environment/same portal admin.
    Thanks in Adnvance..... :)

    Hi All,
    I did analysis on application code migration from 8.1 t o11g.
    If Application developed using JPF framework of Weblogic 8.1 workshop then there is no direct migration to 11g. Since the JPF Beehive controls are deprecated in 11g and ADF or JSF is suggested to use. In this case we can migrate Weblogic 81. Application code to 10g using upgrade tool which is available in 10g(10.3.0).
    Weblogic 10g workshop -> Import -> Others -> Weblogic 8.1 workshop application.
    Oracle is suggesting to migrate JPF applications into JSF or ADF framework but if application is big and you can migrate to 10g for sometime and then slowly you can migrate into other frameworks.
    Thanks,
    Ranganathan.

  • Every time I install an update of itunes, I get an error message saying: "/System/Library/Extensions/WkClassicNotSeizeDriver.Kext" was not installed Correctly. Has any one had it? Can you help me?

    Every time I install an update of itunes, I get an error message saying: "/System/Library/Extensions/WkClassicNotSeizeDriver.Kext" was not installed Correctly. Has any one had it? Can you help me?

    Find out what that third party software the kext file belongs to and update or use the developers method to uninstall the third party software responsible for it.
    I suspect it's a iTunes extension perhaps?
    You also can use the manual method of Finder > Go > Computer and opening your drive, then your  System/Library/Extensions folder and looking for the file and moving it out onto the desktop, you will need to be in Admin user and use your password, then reboot to clear the random access memory. However this method doesn't remove the parent program you still need to do that.
    How to uninstall/install software on your Mac
    The kext file wasn't loaded, so it's not running, but removing it from the Extensions folder or uninstalling what put it there will solve your notification problem as that's all it appears to be.

  • Not Getting all the icons in the Toolbar while using using ALV with OOPS

    Hello,
    But I am not able to get all the Keys in the toolbar for which i have called the method from class  cl_salv_functions_list, by using the following logic.
    Though i am getting all except Word Processing, ABC Analysis, Save layout, Information, Get Layout.
    FORM ALV_DISPLAY .
      data: lr_functions type ref to cl_salv_functions_list,    "toolbar
            lr_columns type ref to cl_salv_columns,
            LI_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TABLE,    "columns instance
            LI_COL TYPE REF TO CL_SALV_COLUMN_TABLE,        "column instance
            LR_EVENTS TYPE REF TO CL_SALV_EVENTS_TABLE,
            GR_EVENTS TYPE REF TO LCL_HANDLE_EVENTS.
      TRY.                                               "method for ALV display
          CALL METHOD CL_SALV_TABLE=>FACTORY
            EXPORTINg
              LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE
            IMPORTING
              R_SALV_TABLE = li_alv
            CHANGING
              T_TABLE      = it_po_final.
        CATCH CX_SALV_MSG .
          message e001(00) with text-011.
      ENDTRY.
    *calling methods for toolbar
      lr_functions = li_alv->get_functions( ).
      lr_functions->set_default( abap_true ).
      lr_functions->set_print_preview( abap_true ).
      lr_functions->set_view_excel( abap_true ).
      lr_functions->SET_EXPORT_WORDPROCESSOR( abap_true ).
      lr_functions->set_export_localfile( abap_true ).
      lr_functions->SET_EXPORT_MAIL( abap_true ).
      lr_functions->SET_EXPORT_SEND( abap_true ).
      lr_functions->SET_ABC_ANALYSIS( abap_true ).
      lr_functions->SET_GRAPHICS( abap_true )
      lr_functions->SET_LAYOUT_SAVE( abap_true ).
      lr_functions->SET_DETAIL( abap_true ).
      lr_functions->SET_LAYOUT_MAINTAIN( abap_true )
    *... set the columns technical
      lr_columns = li_alv->get_columns( ).
      lr_columns->set_optimize( abap_true ).
    **get ALV columns
      CALL METHOD LI_ALV->GET_COLUMNS  "get all columns
        RECEIVING
          VALUE = LI_COLUMNS.
      IF LI_COLUMNS IS NOT INITIAL.
    *Get EBELN column
        TRY.
            LI_COL ?= LI_COLUMNS->GET_COLUMN( 'EBELN' ). "get EBELN columns to insert hotspot
          CATCH CX_SALV_NOT_FOUND.
          MESSAGE i001(00) with text-012.
        ENDTRY.
    * Set the HotSpot for ebeln Column
        TRY.
            CALL METHOD LI_COL->SET_CELL_TYPE "set cell type hotspot
              EXPORTING
                VALUE = IF_SALV_C_CELL_TYPE=>HOTSPOT.
          CATCH CX_SALV_DATA_ERROR .
          MESSAGE i001(00) with text-012.
        ENDTRY.
      ENDIF.
    *Register events
    *Event handler method for ALV
    ***handle hotspot click
      LR_EVENTS = LI_ALV->GET_EVENT( ). "get event
      CREATE OBJECT GR_EVENTS.
      SET HANDLER GR_EVENTS->ON_LINE_CLICK FOR LR_EVENTS. "register event handler method
      IF li_alv IS BOUND.        "calling display method for ALV
        li_alv->display( ).
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY

    Hi Neha,
    If you didn't get the answer then follow this one. Yeah and sorry, i checked and found that really you were not getting every icons. I am giving here a sample program.
    REPORT  zdc_factory_alv_test
    TYPES: BEGIN OF ty_vbak,
               vbeln TYPE vbak-vbeln,
               erdat TYPE erdat,
               auart TYPE auart,
               kunnr TYPE kunnr,
            END OF ty_vbak.
    DATA: gt_vbak        TYPE STANDARD TABLE OF ty_vbak,
           gs_vbak        LIKE LINE OF gt_vbak,
           gr_salv         TYPE REF TO cl_salv_table,
           gr_container   TYPE REF TO cl_gui_docking_container.
    START-OF-SELECTION.
       CALL SCREEN '3000'.
    *&      Module  STATUS_3000  OUTPUT
    *       text
    MODULE status_3000 OUTPUT.
       SET PF-STATUS '3000'.
       SET TITLEBAR 'FACTORY'.
    ENDMODULE.                 " STATUS_3000  OUTPUT
    *&      Module  ALV_OUTPUT  OUTPUT
    *       text
    MODULE alv_output OUTPUT.
       PERFORM get_data.
       PERFORM create_container.
       PERFORM display_alv.
    ENDMODULE.                 " ALV_OUTPUT  OUTPUT
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_data .
       SELECT vbeln erdat auart kunnr
          INTO  TABLE gt_vbak
          FROM  vbak
          UP TO 20 ROWS.
    ENDFORM.                    " GET_DATA
    *&      Form  CREATE_CONTAINER
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_container .
       IF gr_container IS NOT BOUND.
         IF cl_salv_table=>is_offline( ) EQ if_salv_c_bool_sap=>false.
           CREATE OBJECT gr_container
             EXPORTING
               side      = cl_gui_docking_container=>dock_at_top
               extension = 2000
             EXCEPTIONS
               others    = 1.
         ENDIF.
       ENDIF.
    ENDFORM.                    " CREATE_CONTAINER
    *&      Form  DISPLAY_ALV
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM display_alv .
       DATA : lr_columns     TYPE REF TO cl_salv_columns_table.
       DATA : lr_functions   TYPE REF TO  cl_salv_functions_list,
              lr_layout      TYPE REF TO cl_salv_layout,
              ls_layout_key  TYPE salv_s_layout_key.
       TRY.
           CALL METHOD cl_salv_table=>factory
             EXPORTING
               r_container  = gr_container
             IMPORTING
               r_salv_table = gr_salv
             CHANGING
               t_table      = gt_vbak.
         CATCH cx_salv_msg .
       ENDTRY.
       lr_functions = gr_salv->get_functions( ).
       lr_functions->set_all( abap_true ).
       lr_columns = gr_salv->get_columns( ).
       lr_columns->set_optimize( 'X' ).
       lr_layout = gr_salv->get_layout( ).
       ls_layout_key-report = sy-repid.
       lr_layout->set_key( ls_layout_key ).
       lr_layout->set_save_restriction( ).
       gr_salv->display( ).
    ENDFORM.                    " DISPLAY_ALV
    Note:- Double click on screen name '3000' and it will ask you option of creating screen.
    There i have created one module..
    After clicking 3000 under output module create MODULE alv_output.
    That will look like...
    PROCESS BEFORE OUTPUT.
       MODULE status_3000.
       MODULE alv_output.
    PROCESS AFTER INPUT.
    * MODULE USER_COMMAND_3000.
    This is the sample result..
    Still if you have any problem, then feel free to ask..
    Regards
    Dhananjay

  • Not getting all the attributes value from Trusted Recon in eventhandler

    Hi,
    I am not getting the values of all the attributes in hashmap from Trusted recon in eventhandler.
    Following is the hashmap value I am getting :
    Parameter Hashmap value is {re_key=1869, Email=[email protected], Role=Full-Time, act_key=22, User Login=TUser43, Xellerate Type=End-User, Last Name=User43, First Name=Test}
    Please let me know how to get all the attributes value in eventhandler. I need to take some decisions based on these attributes.
    Thanks

    You should be getting all the values in the recon event.
    To get the current user states for all the records in the bulk event use this:
    Identity[] currentUserStates = (Identity[]) eventDataHashMap.get("CURRENT_USER");
    Now when you are looping through your bulkParametersp[], you can use the same get from the currentUserStates:
    Identity currentUser = null;
    currentUser = currentUserStates[counter];
    Now if the attribute is not in your hashmap, you can use:
    currentUserState.getAttributes().get(attribute)
    -Kevini

  • How to get all the values in the Select-option.

    Hi,
    I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week)  in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
    My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
    Regards,
    Anbu.

    Hello,
    I will prefer Max's solution. But just for the sake of this req.
    i need to get 200923, 200924,200925, 200926
    i am proposing my soln:
    DATA: V_WEEK TYPE RSCALWEEK.
    SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
    AT SELECTION-SCREEN.
      DATA:
      V_COUNT TYPE I,
      V_ADD   TYPE I,
      RT_WEEK TYPE RANGE OF RSCALWEEK,
      RS_WEEK LIKE LINE OF RT_WEEK.
      V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
      DO V_COUNT TIMES.
        RS_WEEK-SIGN = 'I'.
        RS_WEEK-OPTION = 'EQ'.
        RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
        APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
        CLEAR RS_WEEK.
        V_ADD = V_ADD + 1.
      ENDDO.
    @Max: I was stupid enough not to think of your solution. Need to leave office
    Cheers,
    Suhas

  • How to get all possible values of a property

    I have a single-valued restricted property which has a number of predefined values.
    I want to be able to get all of these values to use to populate a drop down list in my portlet.
    Does anyone know how I can do this?

    Hello Angela,
    Here is an example portlet that I wrote for WLPS 2.0. It should work for WLPS 3.1 also, but it
    didn't verify it on 3.1 yet. The key is that you have to use the SchemaManager to get a Schema
    which will allow you to get get PropertyMetaData. See the javadoc for more information.
    Here you go:
    <%-- This JSP page lists the restricted values for a multiple restricted property --%>
    <%@ page import="java.util.*" %>
    <%@ page import="com.beasys.commerce.axiom.util.helper.JNDIHelper,
    com.beasys.commerce.foundation.property.SchemaManagerHome,
    com.beasys.commerce.foundation.property.SchemaManager,
    com.beasys.commerce.foundation.property.Schema,
    com.beasys.commerce.foundation.property.SchemaManagerConstants,
    com.beasys.commerce.foundation.property.PropertyMetaData,
    com.beasys.commerce.axiom.util.ToolkitException,
    java.rmi.RemoteException,
    javax.ejb.CreateException" %>
    <%@ page extends="com.beasys.commerce.axiom.jsp.JspBase" %>
    <%
    I used the admin tool to create a "test" property set with
    a multiple, restricted text property called "restrictedWords". The
    allowable values are "how", "now", "brown", "cow". I selected one
    default value ("brown").
    SchemaManagerHome smh = null;
    try
    smh = (SchemaManagerHome) JNDIHelper.getHome("com.beasys.commerce.foundation.property.SchemaManager");
    catch (ToolkitException e)
    e.printStackTrace();
    PropertyMetaData metaData = null;
    try
    SchemaManager sm = smh.create();
    // Get the schema for the user/group property set called "test"
    Schema schema = sm.getSchema("test", SchemaManagerConstants.USER_TYPE);
    // Get the meta data for the "restrictedWords" property
    metaData = schema.getPropertyMetaData("restrictedWords");
    catch (CreateException e)
    e.printStackTrace();
    catch (RemoteException e)
    e.printStackTrace();
    Collection restrictedValues = metaData.getRestrictedValues();
    Iterator restrictedIter = restrictedValues.iterator();
    while (restrictedIter.hasNext())
    out.println("<br>restricted value is: " + restrictedIter.next());
    %>
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com
    [att1.html]

  • How to get all TextFrame from ImportedPage INDD Files?

    Hi everyone!
    Do you know the javascript scripts to get all textFrames in importedPage (.indd file)? Is it posible to do that or have some trick to do it?

    Use
    JDR_UTILS.LISTDOCUMENTS
    Use this API to list of all OA Framework the documents in a path/module. This script is very handy, as it provides a list of all the desired documents/extensions/personalizations in one go.
    DECLARE
    BEGIN
    jdr_utils.listdocuments('/oracle/apps/po/setup', TRUE);
    END;
    Thanks
    --Anil
    oracleanil.blogspot.com

  • How to get all users from the server....?

    Hi all,
    in my application i want to get all possible users present in the PORTAL-EP Server
    and set them into the drop down.
    is there need to login in the portal as a admin or other user to get the all users present in the Server.
    Regards,
    Deepak

    Hi! Deepak,
       you can use UME API to get all the users of EP in WebDynpro appl.
    Herewith i am giving you the UME API link --
    <a href="http://help.sap.com/javadocs/NW04/current/um/index.html">http://help.sap.com/javadocs/NW04/current/um/index.html</a>
    i am giving the code also to get all the users from LDAP.
       IPublic<ComponentName>.IUserIDElement userIDNodeElement = null;
    IUserAccountFactory accountFact = UMFactory.getUserAccountFactory();
    MessageManager msgMgr = (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();
    try {     
    IUserAccountSearchFilter accountSearchFilter  =  accountFact.getUserAccountSearchFilter();
    accountSearchFilter.setLogonUid("*",ISearchAttribute.LIKE_OPERATOR,false);
    ISearchResult srchRslt = accountFact.search(accountSearchFilter);
       while(srchRslt.hasNext()) {                    
                    userIDNodeElement = wdContext.createUserIDElement();          String uniqueID = (String)srchRslt.next();
         IUserAccount userAccount = accountFact.getUserAccount(uniqueID);
         String LogonUid = userAccount.getLogonUid();
         userIDNodeElement.setCtx_UserID(LogonUid);
         wdContext.nodeUserID().addElement(userIDNodeElement);
        } catch(Exception exc) {
                  msgMgr.reportWarning(umException.toString());
    regards,
    Mithilehwar

Maybe you are looking for

  • Since installing mountain lion on my late 2008 macbook the cd/dvd drive isn't working won't ejects cd.

    since installing mountain lion on my late 2008 aluminum macbook the cd/dvd super drive isnt working won't play or import media/music just ejects cd. Any Ideas ?

  • Selection-Screen in Dynpro

    Hi experts, I'm trying to createa selection-screen in a dynpro, but i'm not capable. I've followed the next steps: 1. I created a dynpro (100) Type: Normal 2. I created a subarea  (Sub_area) inside the dynpro 100 3. I created the selection-screen in

  • Where Are My Missing Master Images?

    I keep my Aperture Library as a "managed" library rather than "referenced, so every master image is kept inside the Aperture Library icon. Today I decided to look inside my Aperture Library (by selecting Show Package Contents), and I can only find ma

  • SQL Query criteria eliminates too many records

    This SQL query results in zero out of 268 records due to the criteria of (((Products.ProductFamily)<=0)) SELECT images.url_img, images.alt_img, images.productid_img, Products.ProductFamily, Products.ID FROM images LEFT JOIN Products ON images.product

  • Authorization groups in MM01

    I'm trying to restrict material creation by material type, but with no positive results. First I created an authorization group via SE54 and then asigned it to the material type via T134. Then I add the authorization group in object M_MATE_MAR to the