Need an API to retrieve the sessiontimeout attribute wcSessionTimeoutPeriod WebCenter Portal

Hello

Can someone let me know any WebCenter APIs for querying attribute to session timeout WebCenter portal 'wcSessionTimeoutPeriod' on the Portal Server. I need the value of this attribute in a Custom HttpServlet and so cannot use a simple EL as #{WCAppContext.application.applicationConfig.customAttributes ['wcSessionTimeoutPeriod'].

If there is no api REST also available to retrieve this attribute, that should be fine.

Thank you

Jean Claude

Hello.

I have the code to get easily into the MDS and also a wrapper that can be used.

In the meantime, try the following in your servlet:

Import oracle.webcenter.webcenterapp.internal.model.WebCenterUtils;

String timeout = WebCenterUtils.getAppCustomAttributeValue("wcSessionTimeoutPeriod");
System.out.println(timeout);

Kind regards.

Tags: Fusion Middleware

Similar Questions

  • SQL to retrieve the specific attributes of an x 509 digital certificate

    I'm curious to know if there is a way to use SQL to retrieve the specific attributes of an x 509 digital certificate. I know how to make using openssl - no problem. But what happens if the pem file is stored in a datebase column and I need to extract the expiration date. Since the openssl command line, I can just do this to extract the date of expiry of the certificate:

    OpenSSL x 509 - noout - in certificate.pem - dates | grep notAfter | AWK-f = '{print $2} '.
    (retrieves only the dates | take only the line with the expiration date | print only the second column of the row delimited =)

    But if certificate.pem is stored in an Oracle database on the ground, how to achieve the same result? Y at - it something like "DBMS_OPENSSL"?

    I got to thinking of V$ PORTFOLIO in an Oracle database. Only columns here are CERT_ID, DN, serial_num, TRANSMITTER, KEYSIZE and STATE - no certificate, which suggests that it is stored elsewhere. As you can tell, I am new to this.

    Thanks for your help!

    You can use a small procedure stored Java to extract the required fields.

    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/CertificateFactory.html
    http://docs.Oracle.com/javase/6/docs/API/Java/security/cert/X509Certificate.html

    SQL> create table cert_storage (id integer, cert clob);
    
    Table created
    
    SQL> insert into cert_storage values (1,
      2  '-----BEGIN CERTIFICATE-----
      3  MIIDljCCAn4CCQD2F4J0d4f7rTANBgkqhkiG9w0BAQQFADCBjDEMMAoGA1UEChMD
      4  V0dVMQ0wCwYDVQQLEwRNU0lBMR4wHAYJKoZIhvcNAQkBFg90d2lsbDYzQHdndS5l
      5  ZHUxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MQswCQYDVQQIEwJVVDELMAkGA1UE
      6  BhMCVVMxGjAYBgNVBAMTEVRob21hcyBDIFdpbGxpYW1zMB4XDTEyMTExNjA2NTEx
      7  OFoXDTEzMTExNjA2NTExOFowgYwxDDAKBgNVBAoTA1dHVTENMAsGA1UECxMETVNJ
      8  QTEeMBwGCSqGSIb3DQEJARYPdHdpbGw2M0B3Z3UuZWR1MRcwFQYDVQQHEw5TYWx0
      9  IExha2UgQ2l0eTELMAkGA1UECBMCVVQxCzAJBgNVBAYTAlVTMRowGAYDVQQDExFU
     10  aG9tYXMgQyBXaWxsaWFtczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
     11  ALzwniQTgM79kwIOIqo2GE+Ufl56F0E/Rg956Ho6FoT9tBhvvQfI1SDvRzsrMGYP
     12  2VDAT7I7HEUnwFPMF7YAiLbK/6LlKDv0D+JyP3q9k/ENsZd0Z33KZ3HrJV1sdZZK
     13  iCv7isHKJ7xJgxQq+9ecpBG2Y9Vr5rLg8WPqnjvnaI60PN+NEsWnFNr/u6rBfv9R
     14  CQBtbLG6nhq5rxd67cWYR1hLpQg/S40AYcJBMIOApDN96YzDFXUM269JdHLSMgbt
     15  ZN8F4XeGljNbuVT8BTKOSydDUWWNJA593GLMSQ+OJVzVuwF99JzUwG0TcmPYgcQn
     16  Vav2t9igeXq7bUspcFTHQX8CAwEAATANBgkqhkiG9w0BAQQFAAOCAQEAAoOfoSSo
     17  sN78pSuDAAD95AgATzmCFxLvV9LWrIkFOF6mLwpnvR9UvjoOfQRWjVNnHKZ+1SPw
     18  oRo9KnMaWBltnXgKktfNYsSqCgZ889VaFlZfOL7TTq+jWqG9sRNXcJHkC+o07cxS
     19  IZSXNwjV+c6NMXUJWTf6OWKLcBmQ3Ze0hwiyW06QZvSd7psYqAH4AJHyiOXROG44
     20  eNtbFWxQ5Gg/tgXnEr/vbr2twXuflmmoNkjh94mR9Vf0QJY6/1I6qYkJ4n+xX2kR
     21  yisfvWztlYT+1m/z8jzeJtAkxRIloTIacLrIjaQKpKKsL4rAb0Fd0SUPP6HkIt72
     22  +vQ4jwHbxRhV7g==
     23  -----END CERTIFICATE-----')
     24  ;
    
    1 row inserted
    
    SQL> commit;
    
    Commit complete
     
    
    SQL> create or replace and compile java source named testx509src as
      2  import java.security.cert.*;
      3  import java.io.*;
      4  import java.sql.*;
      5  import oracle.sql.CLOB;
      6  import oracle.sql.TIMESTAMPTZ;
      7
      8  public class TestX509 {
      9      public static TIMESTAMPTZ getExpirationDate(CLOB cert)
     10              throws SQLException, IOException, CertificateException {
     11
     12          Connection conn = (Connection) DriverManager.getConnection("jdbc:default:connection:");
     13          BufferedInputStream is = new BufferedInputStream(cert.getAsciiStream());
     14
     15          CertificateFactory cf = CertificateFactory.getInstance("X.509");
     16          X509Certificate c = (X509Certificate) cf.generateCertificate(is);
     17          is.close();
     18
     19          return new TIMESTAMPTZ( conn, new Timestamp(c.getNotAfter().getTime()) );
     20
     21      }
     22  }
     23  /
    
    Java created
    
    SQL> CREATE OR REPLACE FUNCTION CERT_GetExpirationDate(cert in clob)
      2  RETURN timestamp with time zone
      3  AS LANGUAGE JAVA
      4  NAME 'TestX509.getExpirationDate(oracle.sql.CLOB) return oracle.sql.TIMESTAMPTZ';
      5  /
    
    Function created
     
    
    SQL> select CERT_GetExpirationDate(cert)
      2  from cert_storage
      3  where id = 1;
    
    CERT_GETEXPIRATIONDATE(CERT)
    --------------------------------------------------------------------------------
    16-NOV-13 07.51.18.000000000 AM +01:00
     
    

    If you need to access the fields again, it would be best to wrap them in an Oracle object type and have the Java method return an instance of this object.

  • What api to update the additional attributes of the employee

    Hi all

    I created all of my employees using hr_employee_api.create_employee, now I need to update in bulk the additional attributes for each employee (e.g. attribut1, attribut2... etc). What api should I use to do.

    Thanks and greetings

    Zulfiqar haider

    Hello
    I think you can use HR_PERSON_API. UPDATE_US_PERSON to update the attribute columns. Please check in your test before proceeding
    You can use it for your final update in bulk. Hope this helps you.

    Thank you
    Satin

  • There the rest APIs to retrieve the metadata for entity for eloqua objects?

    There is a list of all the objects that are accessible by the REST for CRUD in this link: REST API - Documentation for kernel objects in the objects of the core section.

    For each of the objects listed in the objects of the core section are there is a metadata field in the Properties section.

    For example, for the purpose of the e-mail message, The REST API - to access Emails , under the Properties section, there entered corresponding to the fields of the object of the emails under the
    Name, Type, Description and validation topics.

    Is there a REST API to retrieve the same information, i.e. metadata field for an object programmatically eloqua?
    Otherwise, this is a serious obstacle to building systems that are the metadata engine and support for SOAP is removed...

    The closest to what you are looking for would be endpoints of assistance for a description of the fields. Example of /api/bulk/1.0/contact/fields

    {

    "items": [{}

    'name': "E-mail address",

    "internalName": "C_EmailAddress",

    'dataType': 'emailAddress;

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': true,

    'Déclaration': '{{Contact.Field (C_EmailAddress)}}.

    "uri": "/ contact/field/100001",

    "converted': ' / Date (-2208970800000) /"

    'updatedAt': ' / Date (-2208970800000) / ".

    },

    {

    'name': "First name",

    "internalName": "C_FirstName",

    'dataType': "string",.

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': false,

    'Déclaration': '{{Contact.Field (C_FirstName)}}.

    "uri": "/ contact/field/100002."

    "converted': ' / Date (-2208970800000) /"

    "updatedBy": "MgrzzzOracleCloudSupportP01E10",

    'updatedAt': ' / Date (1408993722380) / ".

    },.....

    If so, it will also include an element "defaultValue". How many characters you can store in a field (precision) is documented here: Type of data (data and Digital Formats). The same endpoint exist in bulk 2.0, and there are variants for the account fields and Objetpersonnalise. Another exists in the REST through Api/rest/2.0/assets/contact/fields?depth=complete... It does not include the declaration of ML, but there other useful information such as the type of default update and a flag 'isAccountLinkageField '.

    Similarly, if you describe a form via SOAP or REST, it also will give you the fields and their type.

    Kind regards

    Bojan

  • I need any api to find the running of application events web flex to manage

    I need any api to find the running of application events web flex to manage

    Why do you ask in the forum of the Installation of Acrobat...? Do you need help to find a Flex forum?

  • The workflow API to retrieve the parameters programmatically?

    Under JDev 11.1.1.2.0 + and the controller of the ADF, we have a requirement regarding access or exit from any defined task flow (BTF), to save the user, the BTF name and BTF key/value parameter.

    The most ideal, I identified for this seems to be via method calls to bean on the properties of initializer/finalizer BTF. For purposes of keeping this simple message, I look at the code of the initializer.

    Within the initializer, I can easily access the username and the name of the workflow is only a little more complicated by using the following code:
      ADFContext adfContext = ADFContext.getCurrent();
      SecurityContext securityContext = adfContext.getSecurityContext();
      String userName = securityContext.getUserName();
    
      ControllerContext controllerContext = ControllerContext.getInstance();
      ViewPortContext currentViewPort = controllerContext.getCurrentViewPort();
      TaskFlowContext taskFlowContext = currentViewPort.getTaskFlowContext();
      TaskFlowId taskFlowId = taskFlowContext.getTaskFlowId();
      String taskFlowName = taskFlowId.getFullyQualifiedName();
    However generically retrieving incoming parameters proves more difficult. A solution hard is for the initializer code just 'know' the incoming parameters and extract them 1 by 1 by making explicit reference to each incoming parameter. Yet this hardcoded solution will be a pain in the butt that I'll need to check that all of my programmers BTF correctly extract and log each parameter, which will become a double-pain-in-the-stock maintenance, if other parameters are added at a later stage.

    Ideally I'm wanting an API which reveals the list of parameters in order to browse and extract the values. Searching through TaskFlowContext, TaskFlowId and other classes, I don't see anything to do.

    Another solution is to extract all the objects of the BTF #{pageFlowScope}. Yet it is a red herring, the initializer is called after the BTF own controlled beans are instantiated, implying that the pageFlowScope will include additional objects beyond the BTF parameter set that we want. As such, we need a way to distinguish beans controlled pageFlowScope for this useful parameters BTF method solution.

    What is someone is aware of an API or a solution to retrieve the settings that do not require I hardcod the names of parameters extracted please?

    With our thanks,

    CM.

    Hi Chris and all,.

    Sorry for not being very active lately as this pretty much fall in my area of expertise. Would the following works for you:

    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    TaskFlowDefinition definition = MetadataService.getInstance().getTaskFlowDefinition(taskFlowId);
    Map parameters = definition.getInputParameters();
    for (TaskFlowInputParameter parameter : parameters.values())
    {
        String name = parameter.getName();
        String expression = parameter.getValueExpression();
        Object value = application.evaluateExpressionGet(context, expression, Object.class);
        // Do something with the parameter
    }
    

    I hope that's what you're looking for as I am scanning the thread very fast atm and speed of reading often missing some subtleties.

  • Is there an API to retrieve the news related to the dynamic object bound to the ExtendScript Toolkit PS CS6 Core script? for example: linked to the Original file name?

    For example, title...

    I found the info of layer in the photoshop file format data document.

    But not found any API to retrieve in the scripts.

    Thank you, in advance!

    I see that you managed to post on the forum script.

    To find a specific Adobe forum, when you're on the Welcome screen,

    https://forums.Adobe.com/welcome

    look at the menus on the top right of the screen: "see all our products and services ', click on and choose from the dropdown menu, then 'Go '.

  • API to retrieve the id of the person of the IOM

    Hello

    I added a UDF PersonID in IOM. Based on this PersonID I need to run a custom target recon. To do this, I want to search for users with that PersonID. Theis UDF does not accept the api findallUsers. It will accept only the predefined fields. Can someone help me realize this research, based on the PersonID.

    Who said that the API does not accept the UDF. Pass it as USR_UDF_PERSONID or what you have. It will work.

  • my computer will load any upward. you will need to delete or retrieve the software?

    My sister has deleted some files in the windows folder and now computer wont charge up, so I can't reset the hard drive of the computer. How can I clear the computer when it won't start?

    Hello

    Here are the different ways to reinstall Vista

    Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

  • Using Web Services query retrieves the lookup ID

    Hello
    I noticed that querying via webservices retrieves the lookup ID value and not the value indicated in the application (if the ID is different from the value). Could not retrieve the value? I need this emergency information as its impact on some of our Web based service applications.

    Thank you
    m

    Hello

    It's true on the question of field lookup on an object, it retrieves only the Ids and not values, but if you intend to match it with display value that you can use GetPicklistValues of the Service API that retrieves the ID and display value that can be sought for a particular ID.

    Messer

  • Retrieves a custom attribute and store it in a workflow attribute?

    Hello.

    Maybe I'm confused on this subject, but from the looks of it, I can't take the custom attribute that is retrieved using

    com.vmware.library.vc.customattribute.getCustomField)

    and assign it to an attribute of workflow for use later, or even check the value.

    From the looks of the workflow, it records only the value.

    Is it possible to natively in vRO?

    Thank you!

    Anoop

    Are you trying to retrieve the custom attribute using the workflow "toget the attribute custom" (in the folder library/vCenter/Custom attributes )?

    If so, then Yes, this workflow only saves the retrieved attribute and does not return as an output parameter. You have the following options:

    • Write your own workflow to help "get the attribute custom" as a starting point. You can duplicate, then add a new parameter of type string and set it to the value of customAttributeValue.
    • Directly call the com.vmware.library.vc.customattribute.getCustomField () action in your script code and use its return value of string.
  • Error occurred in retrieving the provided user bindDN.The user must have attribute/s firstName, lastName, email BindDN.

    When I go through the wizard and setting to the top of my base and bind DN, I get the following error. What Miss me? Error saving configuration of the directory. Error occurred in retrieving the provided user bindDN.The user must have attribute/s firstName, lastName, email BindDN.

    The usename you use AD administrator (IE CN = admin) must have the required attributes with non-empty values - firstName, lastName, email.

    When HW connect to AD with bindDN he added that makes the system user who applies the required properties.

    These properties are required for each user that needs to be added/synchronized to the workspace of horizon.

    To correct this error, you must go to AD and adds these admin user attributes.

  • Need help to retrieve the Satellite Pro C850 - 1 k 3

    Hello

    I'm new to this forum, but I really need someone's help that my laptop has had a virus on it, and I have to do a complete uninstall of windows 8, (it was preinstalled, so I don't have a restore disc)

    Every time I try to uninstall windows it says that some files are missing and to insert a disc of recovery of some sort that I did not.

    How can I do this?

    Thanks in advance for assistance.
    PS: I tried to create a recovery with a blank dvd disk but it says insert USB pen, I did not.

    > I tried to create a recovery with a blank dvd disk but it says USB pen insert, I did not.
    Usually, you can choose between USB flash memory and the DVD disc.
    Did you change this option before trying to create the recovery media?

    > When I try to uninstall windows it says that some files are missing and insert a disc of recovery of some sort that I did not.

    I have no idea what you tried to do, but the fact is that if you want to retrieve the laptop, you must use either the Toshiba recovery media (USB key or DVD disc) or recovery of HARD drive option, you can try:
    More details [here: http://aps2.toshiba-tro.de/kb0/TSB2A03ES0000R01.htm]

  • Research of interface software for FlexRIOs using API c do I need LabVIEW once I use the C API generator?

    Current versions of software:

    LabVIEW 2014 SP1

    LabVIEW FPGA 2014

    Xilinx Vivado

    Hi all

    I plan to interface my FlexRIOs to the software programmed in C, then the C API FlexRIO is excellent.

    My question is more economy of memory sake.

    I have a PC with Visual Studio, I want to add the minimum amount of software development.

    If I have a station (a separate Visual Studio PC PC) FPGA development with all LabVIEW software necessary to take the step of the use of the generator of the C API to create the necessary files of C and H, should what software I on the development PC Visual Studio in interface with the files in the generated C API?

    If all goes well, it's just (from the help)

    What you need to get started

    • Drivers for devices OR RIO August 2013 or later

    However... The help of the C API, it gives me the full list of the software including LabVIEW and LabVIEW FPGA... (below)

    What you need to get started

    In addition to a RIO device like a CompactRIO reconfigurable chassis, a Single-Board RIO device or RIO PCI or PXI hardware, you need the following software to use FPGA Interface C API.

    • LabVIEW 2009 SP1 or later (32-bit only)
    • LabVIEW FPGA Module 2009 SP1 or later (32-bit only)
    • Drivers for devices OR RIO August 2013 or later
    • Operating system supported development
      • Windows 8 or 8.1 (32-bit or 64-bit)
      • Windows 7 Professional (32-bit or 64-bit)
      • Windows Vista Business (32-bit or 64-bit version)
      • Windows XP Professional SP2
      • Windows Server 2008 R2 (64-bit version)
      • Windows Server 2003 (64-bit version)
    • Target supported OS
    • Supported C/C++ compiler

    So I have LabVIEW and LabVIEW FPGA on the development PC?

    (If all goes well no....)

    Thank you

    Hey Colonel1013,

    With the C API, you only need LabVIEW to build a bitfile and run the generator of C API tool, but LabVIEW is not required to run. That is, you need all the software listed, but it must not all be on the same machine. You can transfer the file lvbitx and the .c and .h files generated on another machine where you need only NOR-RIO and Visual Studio installed.

    Sebastian

  • I need to write a vbscript script to retrieve the size of an access database

    Could someone help me write a vbscript script to retrieve the size of an access database. I need to put this in my schedular system to run every morning.

    Hi Rob,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Office IT Pro. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/officeitpro/threads

Maybe you are looking for