Skip navigation links

BSAccount

BSAccount is a library that managers users on a Web system.

See: Description

Packages 
Package Description
com.buckosoft.BSAccount
BSAccount primary API
com.buckosoft.BSAccount.db
Dao database interfaces
com.buckosoft.BSAccount.domain
Domain Objects
com.buckosoft.BSAccount.web
Web interface

BSAccount is a library that managers users on a Web system.

This library handles logging in users in a Spring Framework environment.

See BSAccountMan for an overview of the entire BSAccount system.

Integrating BSAccount:

Add the BuckoSoft nexus repository.

<repository>
    <id>BuckoSoft</id>
    <snapshots><enabled>true</enabled></snapshots>
    <releases><enabled>true</enabled></releases>
    <name>BuckoSoft</name>
    <url>http://nexus.buckosoft.com:8081/nexus/content/groups/public</url>
</repository>

Add it to your pom

<dependency>
    <groupId>com.buckosoft</groupId>
    <artifactId>BSAccount</artifactId>
    <version>2.1.1</version>
</dependency>

In your spring config, scan the BSAccount jar for the webservice

<context:component-scan base-package="com.buckosoft.BSAccount.web"/>

Publish BSAccount's javascript directory

<mvc:resources mapping="/bsaccount/**" location="/, classpath:/bsaccount-web/"/>

Create an optional UserFactory. If you won't be having custom user attributes, you can skip this and the built-in SimpleUserFactory will be used.

<!-- BSAccount optional userFactory -->
<bean id="userFactory" class="com.example.MyApplication.business.UserFactory">
    <property name="bsAccountMan" ref="bsAccountMan" />
</bean>

Instantiate the BSAccount Manager

<!-- Instantiate the BSAccount Manager. -->
<bean id="bsAccountMan" class="com.buckosoft.BSAccount.BSAccountManImpl">
    <property name="userFactory" ref="userFactory"/>
    <property name="init" value="1"/>
</bean>

Javadoc generated on Tue Aug 29 2017, 01:30:13 EDT

Skip navigation links