Package oracle.adf.share.security

Examples of oracle.adf.share.security.SecurityContext


    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 + ", ";
        }

        try {
            jpsCtx = JpsContextFactory.getContextFactory().getContext();
            IdentityStoreService service =
                  jpsCtx.getServiceInstance(IdentityStoreService.class);
           
            idStore = service.getIdmStore();

            User user = idStore.searchUser(secCntx.getUserName());
            if (user != null) {
                userProfile = user.getUserProfile();
                PropertySet propSet = userProfile.getAllUserProperties();

                Iterator it = propSet.getAll();
View Full Code Here

TOP

Related Classes of oracle.adf.share.security.SecurityContext

Copyright © 2018 www.massapicom. 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.