Package org.archfirst.bfoms.domain.security

Examples of org.archfirst.bfoms.domain.security.User


        LoggerFactory.getLogger(BrokerageAccountService.class);

    // ----- Commands -----
    public Long openNewAccount(String username, String accountName) {

        User user = getUser(username);
        BrokerageAccount account =
            brokerageAccountFactory.createIndividualAccountWithFullAccess(
                accountName,
                user.getPerson(),
                user);
        return account.getId();
    }
View Full Code Here


        return brokerageAccountRepository.findOrder(id);
    }
   
    public List<BrokerageAccountSummary> getAccountSummaries(String username) {
       
        User user = getUser(username);
       
        // Get a list of viewable accounts
        List<BrokerageAccount> viewableAccounts =
            brokerageAccountRepository.findAccountsWithPermission(
                    user, BrokerageAccountPermission.View);
View Full Code Here

        return externalAccountRepository.findAccount(id);
    }
   
    public List<ExternalAccountSummary> getAccountSummaries(String username) {
       
        User user = getUser(username);
       
        // Get a list of accessible accounts
        List<ExternalAccount> accessibleAccounts =
            externalAccountRepository.findAccountsWithPermission(
                    user, ExternalAccountPermission.FullAccess);
View Full Code Here

TOP

Related Classes of org.archfirst.bfoms.domain.security.User

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.