servicesmanager.java

来自「CAS在Tomcat中实现单点登录项目,单点登录(Single Sign On 」· Java 代码 · 共 68 行

JAVA
68
字号
/* * Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license * distributed with this file and available online at * http://www.uportal.org/license.html */package org.jasig.cas.services;import java.util.Collection;import org.jasig.cas.authentication.principal.Service;/** * Manages the storage, retrieval, and matching of Services wishing to use CAS * and services that have been registered with CAS. *  * @author Scott Battaglia * @version $Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $ * @since 3.1 */public interface ServicesManager {    /**     * Register a service with CAS, or update an existing an entry.     *      * @param registeredService the RegisteredService to update or add.     */    void save(RegisteredService registeredService);    /**     * Delete the entry for this RegisteredService.     *      * @param id the id of the registeredService to delete.     * @return the registered service that was deleted, null if there was none.     */    RegisteredService delete(long id);    /**     * Find a RegisteredService by matching with the supplied service.     *      * @param service the service to match with.     * @return the RegisteredService that matches the supplied service.     */    RegisteredService findServiceBy(Service service);        /**     * Find a RegisteredService by matching with the supplied id.     *      * @param id the id to match with.     * @return the RegisteredService that matches the supplied service.     */    RegisteredService findServiceBy(long id);    /**     * Retrieve the collection of all registered services.     *      * @return the collection of all services.     */    Collection<RegisteredService> getAllServices();    /**     * Convenience method to let one know if a service exists in the data store.     *      * @param service the service to check.     * @return true if it exists, false otherwise.     */    boolean matchesExistingService(Service service);}

⌨️ 快捷键说明

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