Clover coverage report - Acegi Security System for Spring - Annotations sample - 1.0.0-RC1
Coverage timestamp: Mon Dec 5 2005 09:09:40 EST
file stats: LOC: 52   Methods: 0
NCLOC: 9   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BankService.java - - - -
coverage
 1    /* Copyright 2004, 2005 Acegi Technology Pty Limited
 2    *
 3    * Licensed under the Apache License, Version 2.0 (the "License");
 4    * you may not use this file except in compliance with the License.
 5    * You may obtain a copy of the License at
 6    *
 7    * http://www.apache.org/licenses/LICENSE-2.0
 8    *
 9    * Unless required by applicable law or agreed to in writing, software
 10    * distributed under the License is distributed on an "AS IS" BASIS,
 11    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12    * See the License for the specific language governing permissions and
 13    * limitations under the License.
 14    */
 15   
 16    package sample.annotations;
 17   
 18    import org.acegisecurity.annotation.Secured;
 19   
 20    /**
 21    * <code>BankService</code> sample using Java 5 Annotations.
 22    *
 23    * @author Mark St.Godard
 24    * @version $Id: BankService.java,v 1.2 2005/11/17 00:56:29 benalex Exp $
 25    *
 26    * @see org.acegisecurity.annotation.Secured
 27    */
 28   
 29    @Secured({"ROLE_TELLER" })
 30    public interface BankService {
 31    //~ Methods ================================================================
 32   
 33    /**
 34    * Get the account balance.
 35    *
 36    * @param accountNumber The account number
 37    *
 38    * @return The balance
 39    */
 40   
 41    @Secured({"ROLE_PERMISSION_BALANCE" })
 42    public float balance(String accountNumber);
 43   
 44    /**
 45    * List accounts
 46    *
 47    * @return The list of accounts
 48    */
 49   
 50    @Secured({"ROLE_PERMISSION_LIST" })
 51    public String[] listAccounts();
 52    }