Package org.geogrid.aist.tsukubagama.services.request.form

Examples of org.geogrid.aist.tsukubagama.services.request.form.AccountRequestAttrCollection


        throws PortletException {
        log.debug("Entering newRequestAction");
        ActionRequest req = event.getActionRequest();
        PortletSession session = req.getPortletSession();

        AccountRequestAttrCollection attrs =
            (AccountRequestAttrCollection)session.getAttribute("attrs");
        if (attrs != null) {
            log.info("Clear Account Request Form");
            session.removeAttribute("attrs");
        }
View Full Code Here


        PortletSession session = req.getPortletSession();

        String account_type = AccountRequest.TYPE_PASSWORD;
        session.setAttribute(ACCOUNT_TYPE, account_type);

        AccountRequestAttrCollection attrs =
            (AccountRequestAttrCollection) session.getAttribute("attrs");
        if (attrs == null) {
            attrs = accountService.newAccountRequestAttrCollection(account_type);
        }
        if ( log.isDebugEnabled() ) {
View Full Code Here

        log.debug("Entering confirmRequest");
        PortletRequest req = event.getActionRequest();
        PortletSession session = req.getPortletSession();

        boolean valid = true;
        AccountRequestAttrCollection attrs =
            (AccountRequestAttrCollection) session.getAttribute("attrs");
        if (attrs == null) {
            log.error("Account Request Form is NULL");
            setNextState(req, DEFAULT_VIEW_PAGE);
            return;
        }
        String account_type = (String)session.getAttribute(ACCOUNT_TYPE);
        if (account_type == null) {
            log.error("Account Type is NULL");
            setNextState(req, DEFAULT_VIEW_PAGE);
            return;
        }

        valid = AccountRequestAttrManager.construct(attrs, req,
                                                    account_type,
                                                    accountService);

        session.setAttribute("attrs", attrs);
        if ( log.isDebugEnabled() ) {
            log.debug( attrs.toString() );
        }

        if ( valid ) {
            setNextState(req, CONFIRM_REQUEST_JSP);
        } else {
View Full Code Here

        if (account_type == null) {
            log.error("Account Type is NULL");
            setNextState(req, DEFAULT_VIEW_PAGE);
            return;
        }
        AccountRequestAttrCollection attrs =
            (AccountRequestAttrCollection) session.getAttribute("attrs");
        if ( attrs == null) {
            log.error("Account Request Form is NULL");
            setNextState(req, DEFAULT_VIEW_PAGE);
            return;
        }

        log.info("Request confirmed by user.");
        Map attrMap = attrs.getMapNonNull();
        attrMap.put(ACCOUNT_TYPE, account_type);

        accountService.saveAccount(attrMap);

        // remove attributes from session scope
View Full Code Here

        session.setAttribute(NEXT_REQUEST, nextOid);

        if (log.isDebugEnabled()) {
            log.debug("account_type: " + accountRequest.getAccountType());
        }
        AccountRequestAttrCollection attrs =
            accountService.newAccountRequestAttrCollection(accountRequest.getAccountType());
        Map attributes = accountRequest.getAttributes();
        for (Iterator itr = attrs.iterator(); itr.hasNext(); ) {
            AccountRequestAttr attr = (AccountRequestAttr)itr.next();
            Object valueObj = attributes.get(attr.getName());
            if (valueObj != null) {
                attr.setValue((String)valueObj);
            }
View Full Code Here

        this.adminComments.append( header );
        this.adminComments.append( comment );
    }

    public AccountRequestAttrCollection getAttrCollection(PortletContext ctx) {
        AccountRequestAttrCollection attrs =
            AccountRequestAttrDescriptor.load(ctx);
        Iterator it = attrs.getAttrList().iterator();
        AccountRequestAttr attr = null;
        while (it.hasNext()) {
            attr = (AccountRequestAttr) it.next();
            Object valueObj = attributes.get(attr.getName());
            if (valueObj != null) {
View Full Code Here

    }

    private String getInstitution(AccountRequest request) {
        String organization = request.getAttribute("organization");

        AccountRequestAttrCollection attrCollection =
            newAccountRequestAttrCollection(request.getAccountType());

        AccountRequestAttr attr = attrCollection.findByName("organization");
        if ( attr.isTypeOfSelectBox() ) {
            AccountRequestAttr.SelectOption option =
                attr.findOptionByValue(organization);
            if (option != null) {
                String vomrsValue = option.getVomrsValue();
View Full Code Here

TOP

Related Classes of org.geogrid.aist.tsukubagama.services.request.form.AccountRequestAttrCollection

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.