Examples of ADFContext


Examples of oracle.adf.share.ADFContext

    private static final String ldapLastLogonAttribute = "LASTLOGONTIMESTAMP";
    private static final String ldapPwdLastSetAttribute = "PWDLASTSET";

    public OpssBean() {

        ADFContext adfCtx = ADFContext.getCurrent();
        SecurityContext secCntx = adfCtx.getSecurityContext();

        this.username = secCntx.getUserName();

        for (String role : secCntx.getUserRoles()) {
            this.roles = this.roles + role + ", ";
View Full Code Here

Examples of oracle.adf.share.ADFContext

    private String resolveExpression(final String expression) {
        if (!ADFContext.hasCurrent()) { // No context available, we are prob. in the design mode of JDev.
            return null;
        }
        ADFContext adfCtxt = ADFContext.getCurrent();
        Environment env = adfCtxt.getEnvironment();
        Object ctxt = env == null ? null : env.getContext();
        if (ctxt instanceof ServletContext) {
            ServletContext sCtxt = (ServletContext) ctxt;
            return sCtxt.getInitParameter(expression);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.