accountservicelocal.java

来自「EJB3 Annotation Sample」· Java 代码 · 共 44 行

JAVA
44
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.s7turn.security.session;import com.s7turn.common.CommonService;import com.s7turn.security.entity.Account;import com.s7turn.security.entity.AccountGroup;import com.s7turn.security.entity.AccountRole;import com.s7turn.security.entity.Group;import com.s7turn.security.entity.Role;import java.rmi.RemoteException;import java.util.List;import javax.ejb.Local;/** * * @author Long */@Localpublic interface AccountServiceLocal extends CommonService<Account> {        Account getAccount( String userName ) throws RemoteException;        List<AccountRole> getAccountRole( String userName ) throws RemoteException;        List<AccountRole> getAccountRole(Account user) throws RemoteException;        List<Group> getAllGroups(Account g);            List getRoles(Account user) throws RemoteException;        void addAccountRole( Account acc, Role r );    void removeAccountRole( AccountRole r );    void addAccountToGroup(Account acc, Group group);    void removeAccountFromGroup(AccountGroup gp);        List<Role> getRolesNotOf(Account acc);    List<Group> getGroupNotOf(Account acc);    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?