/** * Licensed to Apereo under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. Apereo * licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the License at the * following location: * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing permissions and * limitations under the License. */ package org.apereo.portal.groups; import java.util.Map; import javax.naming.Name; /** * Defines a component group service that is part of a composite groups system. A component contains * individual group services, which may themselves be components. * * <p>The component is only used in the process of composing the composite service, so it does not * define any operations on groups, only on other components. * */ public interface IComponentGroupService { /** * Returns a <code>Map</code> of the services contained by this component, keyed on the name of * the service WITHIN THIS COMPONENT. */ public Map getComponentServices(); /** * Returns the FULLY-QUALIFIED <code>Name</code> of the service, which may not be known until * the composite service is assembled. */ public Name getServiceName(); /** * Answers if this service is a leaf in the composite; a service that actually operates on * groups. */ public boolean isLeafService(); /** Sets the name of the service to the new value. */ public void setServiceName(Name newServiceName); }