Identifying methods

hai all,
          iam new to webdynpro abap as well as for OOPS.here iam working on PDO layer.I have already Identified the req.d Structures in which fields are used to O/P display.and for the SRM 5.0 screens in Monitor shopping Cart , I have to identify the Search aswellas Update_messages  methods.could you please suggest me how can i identify the req.d methods. iam doing version upgradation of SrM 5.0 to SRM 6.0 please help me

getDeclaredMethods() - I believe this might do what you want. It throws a SecurityException, but I'm not sure exactly under what circumstances! Oh, and it doesn't return methods defined on any superclasses.

Similar Messages

  • Parsing java source files - identifying method signature

    Im doing a project in which i need to parse java source file and identifying java method signature to take the methods parameters name as tokens, does anyone know how to do this with regular expression? I really appreciate your help.
    regards,
    gr33nl1nk

    i'm still working on it, but still doesn't work :'(
    // Regular expression used to find the result type and the name of a method
    //String s1 = "\\s-*\\(\\(public\\|protected\\|private\\|const\\|abstract\\|synchronized\\|final\\|static\\|threadsafe\\|transient\\|native\\|volatile\\)\\s-+\\)*\\(.*\\)";
    String s1 = "\\s-*((public|protected|private|const|abstract|synchronized|final|static|threadsafe|transient|native|volatile)\\s-+)*\\(.*\\)";
    // Regular expression used to find the method arguments
    String s2 = "([ ]*\\(.*\\)[ ]*)";
    // Regular expression used to find the method exceptions.
    String s3 = "throws[ ]+\\(.*\\)[ ]*[{;]";
    // Regular expression for white spaces separator
    String sp = "[ \t\r\n]+";
    //String mspat = s1+sp+s2;
    String mspat = s1;
    compile(mspat);

  • Coordinate of map in identify?

    HI,,,,
    today in my application I use the coordinate of screen in method identify, would like to know if it is possible to use coordinate of map in the method of identify, zoomIn, zoomOut and pan?

    Hi Junior,
    the identify methods use values in screen coordinates. But with the AffineTransformation of the MapResponse class you may be able to handle the map coordinate on your application. You can convert it to screen before calling the identify, zoomIn, and other methods.
    This post may help:
    Re: MapViewer and getScreenCoordinate
    Joao

  • Mapviewer identify problem

    Hallo,
    We have just shifted to 9i. In 8.1.7 I was able to use identify method and show data of the houseno selected by using the method
    info = mv.identify(dataSrc, "HOUSENO", colsToSelect, "GEOLOC", 8220, x + 5,y + 5 , x-5, y-5, true);
    In 9i, after I change the pre9i parameter of the identify method to false,
    I am getting the following error. Any idea if I have to change any setting or give rights to any package or something..
    [oracle.sdovis.DBMapMaker, INFO] **** time spent on loading features: 0ms.
    [oracle.sdovis.DBMapMaker, INFO] **** time spent on rendering: 16ms
    [oracle.lbs.mapserver.core.InfoWorker, ERROR] java.sql.SQLException: ORA-29902:
    Fehler bei der Ausf³hrung von Routine ODCIIndexStart()
    ORA-01476: Divisor ist Null
    ORA-06512: in "MDSYS.SDO_CS", Zeile 222
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:241)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1477)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:
    677)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
    a:2346)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2635)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
    753)
    at oracle.lbs.mapserver.core.InfoWorker.processDirectInfoRequest(InfoWor
    ker.java:188)
    at oracle.lbs.mapserver.core.InfoWorker.process(InfoWorker.java:124)
    at oracle.lbs.mapserver.oms.processInfoRequest(oms.java:1366)
    at oracle.lbs.mapserver.oms.doPost(oms.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:803)
    at java.lang.Thread.run(Unknown Source)

    This seems like it is a coordinate system problem.
    Are you specifying the query window in a different coordinate system then the layer?
    It might be helpful to turn tracing on through mapviewer to see what query is being sent to the database (or turn on tracing in the database, using sql_trace=true).

  • Database link creation problem

    localhost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orcl
    remotehost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orac
    These two servers in network and in the same workgroup like peer to peer.There is no concept of domain here.
    Here in this environment i am getting the response from both of the servers at the time of using tnsping.
    C:\>tnsping orac
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:30:54
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=azad)(PORT=1521))
    OK (70 msec)
    C:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:31:02
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=pvs)(PORT=1521))
    OK (70 msec)
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using connect_user method:
    SQL> create database link REMOTE_CONNECT connect to current_user using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT;
    select * from emp@REMOTE_CONNECT
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kspgsp2], [64978272], [265], [ent_domain_name], [0],
    [1], [], []
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using identified method:
    SQL> create database link REMOTE_CONNECT2 connect to scott identified by tiger using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT2;
    select * from emp@REMOTE_CONNECT2
    ERROR at line 1:
    ORA-02085: database link REMOTE_CONNECT2 connects to ORACLE
    help me to create the database link in between these two databases..........

    Hi, I have read carefully your letter.
    Firt of all, when you use 'current_user' statement you must guarantee that such users have in both databases.If users exist in both databases and the error will appear again than try create database link with the option 'PUBLIC' as follow:
    CREATE PUBLIC DATABASE LINK REMOTE_CONNECT connect to scott identified by tiger using 'ORAC';
    and check the creation:
    SQL> COL OWNER FORMAT a10
    SQL> COL USERNAME FORMAT A8 HEADING "USER"
    SQL> COL DB_LINK FORMAT A30
    SQL> COL HOST FORMAT A7 HEADING "SERVICE"
    SQL> SELECT * FROM DBA_DB_LINKS;
    OWNER DB_LINK USER SERVICE CREATED
    PUBLIC REMOTE_CONNECT.US.ORACLE.COM SCOTT ORAC 17.04.06
    if the error appear again than checks parameter 'open_links' for your database instance. Default is 4. Increase that number. Good luck.Let me know if something go wrong.

  • How to use SEARCH-API provided by portal30 default schema

    I want information about the search api provided by the
    default portal30 schema.
    How can i use that for my specific requirement.
    i want to manipulate it's search limits
    is it possible ???
    Can i customize the specification provided in this api

    Hi,
    about the addDataSource using the Java API, for now you have to disable the security
    in order to add the data source using the MapViewer client API.
    You can do that editing the MapViewer config file:
    <mv_security enforce_sec_role="false" />
    Assuming that you have added your data source, and you have rendered some map,
    you can get the attribute information using the "identify" methods of the
    MapViewer client API.
    1) To identify one individual geometry:
    String [][] result = mapviewer.identify(dataSource,table_name,columns,
    geometry_column,srid, x, y);
    where: "columns" contains the table attribute names that
    you want to retrieve
         x,y represents the device coordinate.
    2) To identify geometries inside a rectangle:
    String [][]result = mapviewer.identify(dataSource,table_name,columns,
    geometry_column,srid, xlowleft,ylowleft,
    xupright,yupright,false);
    where the rectangle coordinates are defined by xlowleft,ylowleft,
    xuprigth, and yuprigth values in device unit.
    3) The resulted String array contains on the first row the attribute
    names, and on the remaining rows the attribute values for each geometry.
    int nlin = result.length; // return the number of lines
    int col = result[0].length; // number of columns
    To get the attribute names:
    // attribute names
    Object []tableattrs = new Object[ncol];
    for(int j=0;j<ncol;j++)
    tableattrs[j] = result[0][j];
    To get the attribute values:
    Object [][]tablevalues = new Object[nlin-1][];
    for(int lin=1;lin<nlin;lin++)
    tablevalues[lin-1] = new Object[ncol];
    for(int col=0;col<ncol;col++)
    tablevalues[lin-1][col] = result[lin][col];
    Regards.

  • How to use MapViewer API?

    Hi,
    I have a problem that is acturally regarded to java programming. I want to use MapViewer JavaBean-Based API. I did the preparing work described in Mapviewer doc §4.2.
    I saved the demo jsp page "mapclient.jsp" in my own application folder (under oc4j\j2ee\home\default-web-app). The other jsp pages written by myself can be displayed. But this mapclient.jsp can not be retrieved. "HTTP 500 internal server error The page cannot be displayed." It seems that I don't have J2EE container that contains the MapViewer service.
    I also changed the codes of mapclient.jsp. I use
    import oracle.spatial.mapclient.MapViewer;
    MapViewer mv = new MapViewer("http://localhost ...");
    It does not work, either. "The page cannot be displayed."
    I don't know how to invoke the MapViewer service. I use oc4j standalone. I don't know how to get the error message, either.
    I hope somebody can give me some suggestions. Thanks in advance.

    Hi,
    about the addDataSource using the Java API, for now you have to disable the security
    in order to add the data source using the MapViewer client API.
    You can do that editing the MapViewer config file:
    <mv_security enforce_sec_role="false" />
    Assuming that you have added your data source, and you have rendered some map,
    you can get the attribute information using the "identify" methods of the
    MapViewer client API.
    1) To identify one individual geometry:
    String [][] result = mapviewer.identify(dataSource,table_name,columns,
    geometry_column,srid, x, y);
    where: "columns" contains the table attribute names that
    you want to retrieve
         x,y represents the device coordinate.
    2) To identify geometries inside a rectangle:
    String [][]result = mapviewer.identify(dataSource,table_name,columns,
    geometry_column,srid, xlowleft,ylowleft,
    xupright,yupright,false);
    where the rectangle coordinates are defined by xlowleft,ylowleft,
    xuprigth, and yuprigth values in device unit.
    3) The resulted String array contains on the first row the attribute
    names, and on the remaining rows the attribute values for each geometry.
    int nlin = result.length; // return the number of lines
    int col = result[0].length; // number of columns
    To get the attribute names:
    // attribute names
    Object []tableattrs = new Object[ncol];
    for(int j=0;j<ncol;j++)
    tableattrs[j] = result[0][j];
    To get the attribute values:
    Object [][]tablevalues = new Object[nlin-1][];
    for(int lin=1;lin<nlin;lin++)
    tablevalues[lin-1] = new Object[ncol];
    for(int col=0;col<ncol;col++)
    tablevalues[lin-1][col] = result[lin][col];
    Regards.

  • Re: SQL Developer Problems and Feature Requests

    "no ocijdbc10 in java.library.path"... What should i do with it?
    I get it on the simplest of operations: changing (in fact setting) the connection password for the existing connection (defined by TNS/Connect Identifier). Oh, yes, there're workarounds, particularly export-edit-import, but don't you find it a bit weird?
    BTW, i do not find a Save button there either, won't it be just appropriate? (Not allways a connection one's setting up for is already available on the spot).
    Environment : OS: RHEL4, SQL Developer version: 1.0.0.15.57 (at least that's what About says), java - just stright form Sun, 1.5.0_09_b01; this was one i told SQL Developer to use. The default java in the system is Red Hat 3.4.6-3, though, i haven't changed that - should i?
    TIA,
    Uldis

    I have had this issue with the Connection window with the TNS Connection Identifier method, but it appears to be related in some way to the other Oracle installations you have. For me (I am on Win XP), the error went away after installing the Oracle 10g client with Discoverer 10g Administrator. It then came back when I needed to rebuild my computer and installed my Oracle clients (I have three for various different products) in a different order, but was fixed that time by reordering my Oracle Homes via the Universal Installer and making my 10g Client first (Oracle Universal Installer -> Installed Products -> Environment)
    Alternatives are to switch back to the TNS Network Alias method to record the password (unfortunately, even when entering the connection as a Network Alias it is saved as a Connection Identifier) or to just use the Basic tab instead of the TNS tab.

  • OVM 3.1.1 - Live migration not completed

    Hi,
    I'm facing an interesting case with the VM live migration.
    If I issue a migration from the manager, the VM is effectively moved to the new server but the job still in a "in progress" mode (0% completed) and the OVM servers still locked until I abort the job.
    Once the job is aborted, everything is back to normal and the VM is running on the targeted server.
    Any idea what's wrong?
    thanks for the help.
    Below is the log of the job:
    Job Construction Phase
    begin()
    Appended operation 'Bridge Configure Operation' to object '0004fb000020000051ceed7ebd6f2ad9 (network.BondPort (1) in oracle55)'.
    Appended operation 'Bridge Configure Operation' to object '0004fb000020000004cb599206575194 (network.EthernetPort (3) in oracle55)'.
    Appended operation 'Virtual Machine Migrate' to object '0004fb0000060000a4a1035c270b5f7b (RH63_PVM_XDC_Node2)'.
    commit()
    Completed Step: COMMIT
    Objects and Operations
    Object (IN_USE): [Server] 36:34:31:30:31:36:43:5a:33:32:32:32:4b:42:4b:35 (oracle55)
    Object (IN_USE): [EthernetPort] 0004fb000020000004cb599206575194 (network.EthernetPort (3) in oracle55)
    Operation: Bridge Configure Operation
    Object (IN_USE): [Server] 36:34:31:30:31:36:43:5a:33:32:32:32:4b:42:4b:33 (oracle54)
    Object (IN_USE): [VirtualMachine] 0004fb0000060000a4a1035c270b5f7b (RH63_PVM_XDC_Node2)
    Operation: Virtual Machine Migrate
    Object (IN_USE): [BondPort] 0004fb000020000051ceed7ebd6f2ad9 (network.BondPort (1) in oracle55)
    Operation: Bridge Configure Operation
    Job Running Phase at 14:02 on Thu, Jan 10, 2013
    Job Participants: [36:34:31:30:31:36:43:5a:33:32:32:32:4b:42:4b:33 (oracle54)]
    Actioner
    Starting operation 'Bridge Configure Operation' on object '0004fb000020000004cb599206575194 (network.EthernetPort (3) in oracle55)'
    Bridge [0004fb001054934] already exists (and should exist) on interface [eth2] on server [oracle55]; skipping bridge creation
    Completed operation 'Bridge Configure Operation' completed with direction ==> DONE
    Starting operation 'Virtual Machine Migrate' on object '0004fb0000060000a4a1035c270b5f7b (RH63_PVM_XDC_Node2)'
    Completed operation 'Virtual Machine Migrate' completed with direction ==> LATER
    Starting operation 'Bridge Configure Operation' on object '0004fb000020000051ceed7ebd6f2ad9 (network.BondPort (1) in oracle55)'
    Bridge [15.136.24.0] already exists (and should exist) on interface [bond0] on server [oracle55]; skipping bridge creation
    Completed operation 'Bridge Configure Operation' completed with direction ==> DONE
    Starting operation 'Virtual Machine Migrate' on object '0004fb0000060000a4a1035c270b5f7b

    Some other log info from the ovs-agent.log file:
    [2013-01-10 17:29:02 7647] DEBUG (notification:291) Connected to manager.
    [2013-01-10 17:29:17 7655] ERROR (notification:64) Unable to send notification: (2, 'No such file or directory')
    [2013-01-10 17:29:18 7647] ERROR (notification:333) Error in NotificationServer process: 'Invalid URL Request (receive) http://15.136.28.56:7001/ovm/core/OVMManagerCoreServlet'
    Traceback (most recent call last):
    File "/usr/lib64/python2.4/site-packages/agent/notification.py", line 308, in serve_forever
    foundry = cm.getFoundryContext()
    File "/usr/lib/python2.4/site-packages/com/oracle/ovm/mgr/api/manager/OvmManager.py", line 38, in getFoundryContext
    self.foundry = self.getModelManager().getFoundryContext()
    File "/usr/lib/python2.4/site-packages/com/oracle/ovm/mgr/api/manager/OvmManager.py", line 31, in getModelManager
    if self.modelMgr == None:
    File "/usr/lib/python2.4/site-packages/com/oracle/ovm/mgr/api/manager/ModelManager.py", line 364, in __cmp__
    return self.compareTo(obj)
    File "/usr/lib/python2.4/site-packages/com/oracle/ovm/mgr/api/manager/ModelManager.py", line 250, in compareTo
    return self.exchange.invokeMethodByName(self.identifier,"compareTo","java.lang.Object",args,5,False)
    File "/usr/lib/python2.4/site-packages/com/oracle/odof/OdofExchange.py", line 68, in invokeMethodByName
    return self._send_(InvokeMethodByNameCommand(identifier, method, params, args, access))
    File "/usr/lib/python2.4/site-packages/com/oracle/odof/OdofExchange.py", line 164, in send
    return self._sendGivenConnection_(connection, command, timeout)
    File "/usr/lib/python2.4/site-packages/com/oracle/odof/OdofExchange.py", line 170, in sendGivenConnection
    result = connection.receive(command, timeout)
    File "/usr/lib/python2.4/site-packages/com/oracle/odof/io/ServletConnection.py", line 88, in receive
    raise OdofException("Invalid URL Request (receive) %s" % self.url, sys.exc_info()[1])
    OdofException: 'Invalid URL Request (receive) http://15.136.28.56:7001/ovm/core/OVMManagerCoreServlet'
    [2013-01-10 17:29:38 7655] ERROR (notification:64) Unable to send notification: (2, 'No such file or directory')
    [2013-01-10 17:29:54 7647] DEBUG (notification:289) Trying to connect to manager.
    [2013-01-10 17:29:58 7655] ERROR (notification:64) Unable to send notification: (2, 'No such file or directory')
    [2013-01-10 17:30:19 7655] ERROR (notification:64) Unable to send notification: (2, 'No such file or directory')

  • EJB security

    Hello !
    I read that controlled access to EJB methods can be achieved by mean of defining security roles (in the EJB deployment descriptors). I also read that each time an EJB method is called, the EJB client's Principal is forwarded to the EJB context. What I dont't know is how to establish a link between the client's principal and EBJ security roles ? I guess it should be possible. If not how should the method isCallerInRole work ? Can anyone help me ?
    Pascal.

    The primary concept for EJB security is that of "roles"
    A user may be in one or more roles. It is only roles that have particular access rights, not users. So for instance, the "administrator" role might have certain access right, that the "client" roles might not. If a user is switched from being a "client" to an "administrator" (or is given both roles), that user will then have access to all the methods accessible to the "administrator" role.
    Each method can be restricted based upon roles. The restrictions are listed in the <assembly-descriptor> tag. First of all, all roles must be listed. Then for each method, the access rights are listed by role. An example is shown below:
    <assembly-descriptor>
    <security-role>
    <role-name>administrator</role-name>
    </security-role>
    <security-role>
    <role-name>client</role-name>
    </security-role>
    <method-permission>
    <role-name>administrator</role-name>
    <role-name>client</role-name>
    <method>
    <ejb-name>StockQuotes</ejb-name>
    <method-name>buy</method-name>
    </method>
    <method>
    <ejb-name>StockQuotes</ejb-name>
    <method-name>getPrice</method-name>
    </method>
    </method-permission>
    </assembly-descriptor>
    Each method-permission tag may list one or more role names, followed by one or more methods that are accessible for that role. The "*" character may be used to specify method names (indicating all methods.) For multiple methods with the same name, the EJB specifications allow detailed parameter lists and interface type to identify methods uniquely, but this is outsie the scope of this tutorial -- check reference material if you need to do this.
    The actual mapping from user names to security roles, and the specification of user names and passwords is application-server dependent.
    Hope this helps

  • Set the value of a shared secret in a custom auth class

    Hello All,
    We are trying to use a custom authentication class to gain
    additional parameter to pass along in a SAML assertion to a third party
    vendor. We have successfully added the new custom auth class, but we
    are unable to determine how to assign the value of this new parameter to
    anything that is accessible in the creation of the SAML profile.
    The first idea was to use a shared secret. Although we have been able
    to create the shared secret, it does not have any value assigned.
    Here's the code used based on the code used by the PwLookupLogin class
    in the ba-idp-auth.jar file:
    private void setUserTAG(String paramString) {
    SSSecret localSSSecret = new SSSecret();
    localSSSecret.setName(new SSName("tag_van"));
    SSSecretEntry localSSSecretEntry = new SSSecretEntry("tag_van",
    paramString);
    localSSSecret.addSecretEntry(localSSSecretEntry);
    addCredential(WSCQSSToken.SS_SecretName, localSSSecretEntry);
    The second idea was to make use of the "CustomizableStringOne" found in
    a posting in this forum on how to extend a X.509 auth class:
    http://forums.novell.com/novell-deve....html#poststop
    The code we have tried follows:
    private void setUserSSN(String paramString) {
    // Makes use of the "Customizable String One [Custom Profile]"
    try
    // Customizable attribute 1 is the one we use to contain
    customer data to send,
    // but this can change to another if necessary
    WSCMOPToken token =
    (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.getTokenUniqueId());
    // Build object for new data
    WSFModelEntry modelEntry = token.getModelEntry();
    IDSISCommonAttributeElement data =
    modelEntry.getSchemaClassInstance();
    if (data instanceof IDSISLeafAttributeElement) {
    ((IDSISLeafAttributeElement)data).setText(paramStr ing);
    WSCMDataToken dataToken = new WSCMDataToken(token, data);
    dataToken.setAllowOverride(true);
    catch (Exception ex) {}
    Again, the same problem. No value is found when the idpsend CGI tries
    to generate the assertion.
    We are really struggling to understand how this should work. The basic
    problem is this: How can we set a variable within a Java class that can
    be accessed by the idpsend CGI to be used as an attribute within the
    SAML assertion?
    Any ideas would be greatly appreciated. Thanks.
    keongregory
    keongregory's Profile: http://forums.novell.com/member.php?userid=40599
    View this thread: http://forums.novell.com/showthread.php?t=415440

    keongregory wrote:
    >
    > Hello All,
    > We are trying to use a custom authentication class to gain
    > additional parameter to pass along in a SAML assertion to a third
    > party vendor. We have successfully added the new custom auth class,
    > but we are unable to determine how to assign the value of this new
    > parameter to anything that is accessible in the creation of the SAML
    > profile.
    >
    > The first idea was to use a shared secret. Although we have been
    > able to create the shared secret, it does not have any value
    > assigned. Here's the code used based on the code used by the
    > PwLookupLogin class in the ba-idp-auth.jar file:
    >
    > private void setUserTAG(String paramString) {
    > SSSecret localSSSecret = new SSSecret();
    > localSSSecret.setName(new SSName("tag_van"));
    > SSSecretEntry localSSSecretEntry = new SSSecretEntry("tag_van",
    > paramString);
    > localSSSecret.addSecretEntry(localSSSecretEntry);
    > addCredential(WSCQSSToken.SS_SecretName, localSSSecretEntry);
    > }
    >
    >
    > The second idea was to make use of the "CustomizableStringOne" found
    > in a posting in this forum on how to extend a X.509 auth class:
    > http://forums.novell.com/novell-deve...ess-manager/37
    > 6654-using-x509-subject-identity-injection-post1826642.html#poststop
    >
    >
    > The code we have tried follows:
    >
    >
    > private void setUserSSN(String paramString) {
    > // Makes use of the "Customizable String One [Custom Profile]"
    > try
    > {
    > // Customizable attribute 1 is the one we use to contain
    > customer data to send,
    > // but this can change to another if necessary
    > WSCMOPToken token =
    > (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.g
    > etTokenUniqueId());
    >
    > // Build object for new data
    > WSFModelEntry modelEntry = token.getModelEntry();
    > IDSISCommonAttributeElement data =
    > modelEntry.getSchemaClassInstance();
    > if (data instanceof IDSISLeafAttributeElement) {
    > ((IDSISLeafAttributeElement)data).setText(paramStr ing);
    > }
    >
    > WSCMDataToken dataToken = new WSCMDataToken(token, data);
    > dataToken.setAllowOverride(true);
    > }
    > catch (Exception ex) {}
    > }
    >
    >
    > Again, the same problem. No value is found when the idpsend CGI
    > tries to generate the assertion.
    >
    > We are really struggling to understand how this should work. The
    > basic problem is this: How can we set a variable within a Java class
    > that can be accessed by the idpsend CGI to be used as an attribute
    > within the SAML assertion?
    >
    > Any ideas would be greatly appreciated. Thanks.
    We are using this successfully (the code looks stragely familiar ).
    Don't try to store it in the secret store. you can actually store it in
    the customizable string attributes.
    Try to use this:
    protected int doAuthenticate()
    String attribute1 = m_Request.getParameter("attribute1");
    //Custom Attribute 1
    try
    // Customizable attribute 1 is the one we use to contain customer
    data to send,
    // but this can change to another if necessary
    WSCMOPToken token =
    (WSCMOPToken)WSCToken.getToken(WSCMOPToken.OP_CS_C ustomizableString1.get
    TokenUniqueId());
    // Build object for new data
    WSFModelEntry modelEntry = token.getModelEntry();
    IDSISCommonAttributeElement data =
    modelEntry.getSchemaClassInstance();
    if (data instanceof IDSISLeafAttributeElement)
    ((IDSISLeafAttributeElement)data).setText(attribut e1);
    WSCMDataToken dataToken = new WSCMDataToken(token, data);
    dataToken.setAllowOverride(true);
    catch (Exception ex) {}
    String url =
    m_SessionData.appendIDToUrl(NIDPContext.getNIDPCon text().getBaseUrl() +
    getProperty("Protocol") + "/idpsend?PID=" + getProperty("ITS"));
    m_Request.setAttribute("url",url);
    // Going to top ensures we are not displaying in any frames
    ((NIDPServletContext)NIDPContext.getNIDPContext()) .goJSP(m_Request,m_Res
    ponse,"top");
    return HANDLED_REQUEST;
    The above code is a non-identifying method (it doesn't return a
    'authenticated'). YOu would chain it with another method that
    identifies the user before this is being processed.
    To check if a user is authenticated or not you could use:
    if (!m_Session.isAuthenticated())
    return NOT_AUTHENTICATED;
    Once the method is processed it should have created a
    LibertyUserProfile object within the eDir that comes with the admin
    console.
    You can find these in
    ou=libertyUserProfile0,ou=<clusterobject>,ou=clust er,ou=nids,ou=accessMa
    nagerContainer,o=novell
    Hopefully this helps.
    Cheers,
    Edward

  • How to modify LobSystemInstance properties after deployment

    Hi,
    I've added some properties to my LOBSystemInstance (like explained here:http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/01ad2bf2-7ebc-434f-beac-e2d934847b34)
    I cannot find where to modify the properties once the BDC is deployed.
    Is it possible to have an administrator change the property values once the BDC is deployed? For instance when a DB password changes?
    regards, Felix

    Hi Felix,
    You need to be using a custom connector to be able to use those properties and interfaces.
    I have managed to get those elusive properties you are after, I followed the book from Scot Hiller and also this blog:
    http://jardalu.blogspot.com/2010/03/writing-custom-connector-for-bcs.html
    I have written an internal document for us at Lightning Tools explaining how to transform a BCS Meta Man project to a Custom Connector. This is the full model I used
    <?xml version="1.0" encoding="utf-8"?>
    <Model Name="CustomConnectorMashupLobSystemModel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/windows/2007/BusinessDataCatalog">
    <LobSystems>
    <LobSystem Name="CustomConnectorMashupLobSystem" Type="Custom">
    <Properties>
    <Property Type="System.String" Name="SystemUtilityTypeName">CustomConnectorMashup.Custom.Connector, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080</Property>
    </Properties>
    <LobSystemInstances>
    <LobSystemInstance Name="CustomConnectorMashupLobSystemInstance">
    <Properties>
    <Property Name="ConnectionString" Type="System.String">Persist Security Info=False; Integrated Security=SSPI; Server=.\;Connect Timeout=30;Database=AdventureWorksLT;</Property>
    </Properties>
    </LobSystemInstance>
    </LobSystemInstances>
    <Entities>
    <Entity Name="Product" Namespace="CustomConnectorMashup.Model" Version="20.0.0.0">
    <Properties>
    <Property Name="OriginalTableName" Type="System.String">[SalesLT].[Product]</Property>
    <Property Name="IsCustomCode" Type="System.Boolean">false</Property>
    <Property Name="Class" Type="System.String">CustomConnectorMashup.Model.ProductEntityService, CustomConnectorMashupLobSystem</Property>
    <Property Name="Title" Type="System.String">Name</Property>
    </Properties>
    <Identifiers>
    <Identifier Name="ProductID" TypeName="System.Int32" />
    </Identifiers>
    <Methods>
    <Method Name="Test">
    <Parameters>
    <Parameter Name="returnParameter" Direction="Return">
    <TypeDescriptor Name="ProductList" TypeName="System.Collections.Generic.IEnumerable`1[[CustomConnectorMashup.Model.GetAllProductEntitysProperties, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080]]" IsCollection="true">
    <TypeDescriptors>
    <TypeDescriptor Name="Product" TypeName="CustomConnectorMashup.Model.GetAllProductEntitysProperties, CustomConnectorMashup, Version=1.0.0.0, Culture=neutral, PublicKeyToken=02df3463d06f0080">
    <TypeDescriptors>
    <TypeDescriptor Name="ProductID" TypeName="System.Int32" IdentifierName="ProductID" ReadOnly="true" />
    <TypeDescriptor Name="Name" TypeName="System.String" />
    </TypeDescriptors>
    </TypeDescriptor>
    </TypeDescriptors>
    </TypeDescriptor>
    </Parameter>
    </Parameters>
    <MethodInstances>
    <MethodInstance Name="Test" DefaultDisplayName="FinderTest" Type="Finder" ReturnParameterName="returnParameter" />
    </MethodInstances>
    </Method>
    </Methods>
    </Entity>
    </Entities>
    </LobSystem>
    </LobSystems>
    </Model>
    This was my connector class
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using CustomConnectorMashup.Model;
    using Microsoft.BusinessData.Infrastructure;
    using Microsoft.BusinessData.MetadataModel;
    using Microsoft.BusinessData.Runtime;
    namespace CustomConnectorMashup.Custom
    public class Connector : ISystemUtility, IAdministrableSystem
    #region IAdministrableSystem Members
    public IList<AdministrableProperty> AdministrableLobSystemProperties
    get { return null; }
    public IList<AdministrableProperty> AdministrableLobSystemInstanceProperties
    get
    return new List<AdministrableProperty>
    // Add the Connection String to the Administrable Properties so it can be changed in Central Administration
    new AdministrableProperty("Connection String", "The Connection String", typeof (string), "ConnectionString", typeof (string), true)
    #endregion
    public IEnumerator CreateEntityInstanceDataEnumerator(object rawStream, ISharedEntityState sharedEntityState)
    var enumerableStream = rawStream as IEnumerable;
    if (enumerableStream != null)
    return enumerableStream.GetEnumerator();
    throw new InvalidOperationException("Invalid stream returned");
    public ITypeReflector DefaultTypeReflector
    get { return null; }
    public IConnectionManager DefaultConnectionManager
    get { return null; }
    public void ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, object[] args,
    IExecutionContext context)
    if (methodInstance == null)
    throw (new ArgumentNullException("methodInstance"));
    if (lobSystemInstance == null)
    throw (new ArgumentNullException("lobSystemInstance"));
    if (args == null)
    throw (new ArgumentNullException("args"));
    // Read Connection string from LobSystem Instance
    var connectionString = lobSystemInstance.GetProperties()["ConnectionString"] as string;
    switch (methodInstance.MethodInstanceType)
    case MethodInstanceType.Finder:
    // Added switch to allow multiple instances of each type
    switch (methodInstance.Name)
    case "Test":
    ExecuteTestMethod(connectionString, args);
    break;
    break;
    default:
    throw new NotImplementedException("Only Finder Method Implemented");
    private static void ExecuteTestMethod(string connectionString, object[] args)
    // Call default method and assign to 0 index of args
    args[0] = ProductEntityService.TestMethod(connectionString);
    I hope this helps a bit, I do have a project that worked for me that I could send to you to pick apart if that would be helpful. I think I might need to write a blog post so others can benefit from it.
    All the best
    Phill
    helpful? …please mark it so!
    Lightning Tools Check out our SharePoint Tools and Web Parts
    BCS Meta Man Automatic BCS Model Generation
    BCS Tester Man Open Source BCS test client

  • Connecterra API to Start/Stop readers.

    Hello,
    Is there API support by connecterra to start and stop the readers?
    I googled but couldnt find any usefull stuff. If some one has worked on it, can you please tell em know where can i get the same..
    We are working on bea rfid_edge21 .
    API and also if possible sample examples.
    your help would be highly appreciated.
    Thanks in Advance.

    Hi Shridhar,
    RFID API guidline
    PIOS RFID API Guidelines
    Definition
    This document explains several guidelines for the PIOS RFID API, part of the MI Client API. Each of the guidelines is discussed below.
    Use
    These guidelines are intended for all the developers working on the SAP NetWeaver Developer Studio in a mobile application with RFID peripheral requirements. It helps the developer get the most out of the PIOS architecture. The developer can access these features provided by PIOSthrough the MI Client API.
           1.      Tag Configuration File
    The RFID API programs, reads, and/or writes tag types that have been predefined in the tag configuration file. The tags can be edited, added to, or removed from the file using the tag configuration manager, part of the RFID API.
    The RFID reader can only work (read, write, and so on) those tag types defined in the tag configuration file and supported by the hardware. Supported tag types depend on the RFID reader make and model.
    Tags that are not defined in the tag configuration file will be ignored by the API even if they are supported by the RFID reader.
           2.      List Tag Types method
    This method returns all the tag types that have been configured in the API. An array of tag types is returned. The configured tag types are returned in an array. This method must be called before an identify by tag type is called, this assures using a valid tag type when calling the identify.
           3.      Tag configuration manager
    To receive a list of all the configured tag types for a specific RFID reader, use the listTagTypes method. To edit the list by adding or removing a tag type, or to edit a particular tag type use the TagConfigurationManager class.
           4.      Identify method
    To get a list of all the tags (that are defined in the API) inside the RFID reader's range, use the identify method with no parameters. To get a list of all the tags in range of a specific tag type, pass the tag type as a parameter to the identify method.
           5.      Read and write operations
    The API can read from or write data to one tag at any given time. The tag to be accessed must be inside the RFID reader's range. To accomplish this, call the identify method before invoking either the read or the write. This guarantees the use of a valid (in range) tag.
           6.      Tag structure awareness
    An RFID tag may be divided in several areas. These areas can be one the following:
                                a.      Reserved - This data is written by the tag manufacturer. The data in this area may be used internally by the tag.
                                b.      Read only - A portion of the data that was both written and locked, or was written in a single-use tag. The information in this area is accessible but cannot be changed.
                                c.      Writable - This area may be written and read using the API.
    It is important to be aware of the different areas and to avoid trying to write to reserved or read-only areas. Otherwise an exception will be thrown.
           7.      Writing without exceptions
    The following procedure is recommended to write to a tag without raising an exception:
                                a.      Identify the tags in the RFID reader's range, either with a tag type as a parameter or without a tag type. It depends on what needs to be done. A list of available tags is returned.
                                b.      Select the tag that will be written to from the list and get its tag type.
                                c.      Use the tag type writable areas for the tag to determine what section or sections of the tag can be written to.
    Hope this helps
    Thanks N Regards
    Santosh
    Reward if helpful !!!

  • Saved preferences in safari and desktop settings completely erased

    I opened up Safari and suddenly realized that all of the saved bookmarks and preferences were gone, and the same thing happened when I opened up Firefox. So I thought restarting the computer might help.
    However, after the computer (an eMac running 10.4.6) finished booting up, I noticed that all of the desktop preferences had been erased as well. Saved passwords, keychains, etc. all disappeared. The desktop background image was replaced with the default blue background. All of the saved dock preferences were gone and replaced with the default dock settings.
    I was wondering what happened, if it is at all possible to fix, and/or if there is possibly a bug going around. Any help or information would be extremely appreciated. It would be awful if this happened the other macs at our office.

    ducanedesigns,
    How much free space is available on the hard disk? Is Filevault in use?
    It is imperative that you have at least 10-15% of your hard disk available as free space in order that OS X can function without the threat of data loss.
    Freeing space on your Mac OS X startup disk, also by Dr. Smoke will help you identify methods which you can use to increase the free space on your startup disk.
    ;~)

  • Adding javadoc in netbeans

    I have download apache commons [net library|http://commons.apache.org/downloads/download_net.cgi] from apache website , I extracted contents into a folder now the folder have licese.txt
    notice.txt a jar file and a docs folder
    I added jar file to netbeans library but whenever I accessed a method autocompletion feature identify methods and classes correctly but says javadoc not found
    can someone tyell me how to add javadoc for that particular software library
    I am using netbeans 6.5 M1
    with jdk 6

    Download the latest version of Firefox and give a try
    Download here
    *www.mozilla.org

Maybe you are looking for

  • My iphone is no longer able to be controlled by speaker dock or car stereo

    I have a speaker dock and also an iphone connection in my car. My iphone 4 still connects to both and I can charge and play music through them, the problem is that the control functionality of both docks no longer works. I can connect friends' iphone

  • PHP/MySQL incommunicado since upgrading OS X Server 10.4.2 - 10.4.3

    Back when 10.4 first came out and I foolishly upgraded my server right away, I spent hours trying to reconfigure PHP because Apple had monkeyed with with the configuration (since 10.3) and shipped it such that PHP/MySQL wouldn't speak out of the box.

  • Scheduled Tasks problem after midnight

    I am running CFMX 7.0.2 and am experiencing an issue where scheduled tasks run correctly until roughly midnight. After midnight they cease to run. In the logs I can see that the task is being incorrectly rescheduled for a later time. Instead of being

  • Portal - Maximum file name size

    Anybody knows how to find the maximum file name size allowed for file item on the Portal. I am on Portal version 10.1.4.0.0. Database version is 10.1.0.5.0. Thank you, Yonas

  • Invalid signatures installing itunes 10.6.1

    I cannot update to itunes 10.6.1, due to invalid signatures, have 10.5.3.3, using hp laptop running windows 7, tried switching off firewall, also allowing invalid signatures in IE advanced settings but still having same problem. any ideas what to try