@@ -50,6 +50,7 @@ public void setIssueDate(String issueDate) {
public void setHighInvestmentRate(String highInvestmentRate) {this.highInvestmentRate = highInvestmentRate;}


//added a toString method to help with logging
@Override
public String toString(){return String.format("( %s : %s : %s)", getIssueDate(), getSecurityTerm(), getHighInvestmentRate());}

@@ -6,6 +6,8 @@
import org.springframework.data.repository.PagingAndSortingRepository;

/**
* Connects the User and Account where the account can be found by the user ID (look in class MvcAccountController)
*
* Created by nathanielellsworth on 11/14/16.
*/

@@ -4,6 +4,8 @@
import org.springframework.data.repository.PagingAndSortingRepository;

/**
* This permissions repository is used to help page and sort the permissions in the database
*
* Created by nathanielellsworth on 11/14/16.
*/

@@ -11,7 +11,7 @@
public class FilterRegistrations {

/**
*
* Apply RestSecurityFilter filter to any request that matches --> "/rest/*"
* @return
*/
@Bean
@@ -22,7 +22,7 @@ public FilterRegistrationBean restApiFilter() {
}

/**
*
* Apply MvcSecurityFilter filter to any request that matches --> "/mvc/secure/*"
* @return
*/
@Bean
@@ -27,7 +27,7 @@ private static boolean keyMatches(String checkme){
/**
* This will generate and encrypted token that can be used with all JSON APIs.
* Ensure the token is set as a header parameter with a key of 'x-authorization-key'
* <p>Example: "asldjalsdjfasdfjoasdjfadsfj123"</p>
* <p>Example: "M6+4hTmtBqTBNRqGSEM7JtfDlSU/qh9R"</p>
*
* @return a string object with the encrypted token
* @throws Throwable
@@ -99,10 +99,10 @@



<!-- When More than 10 historical transactions have occurred, the user will be able to page through
the transactions by 10 transactions at a time-->
<!-- When More than 8 transactions have occurred, the user will be able to page through
the transactions 8 at a time-->
<c:if test="${account_pager.previous}">
<a class="btn btn-default btn-sm"
<!--turns link into button--> <a class="btn btn-default btn-sm"
href="/mvc/secure/account/savings?page=<c:out value="${account_pager.previousPage}"/>">Previous</a>
</c:if>
</div>
@@ -174,7 +174,8 @@
<footer class="footer">
<div class="pull-center">
Current Page: <c:out value="${account_pager.currentPage}"/>
Total Transactions: <c:out value="${account_pager.totalPages}"/>
Total Pages: <c:out value="${account_pager.totalPages}"/>
Total Transactions: <c:out value="${account_pager.totalTransactions}"/>
</div>