01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto.spi.optional;
18:
19: import org.apache.pluto.spi.ContainerService;
20: import org.apache.pluto.PortletContainerException;
21: import org.apache.pluto.PortletWindow;
22:
23: import javax.portlet.PortletRequest;
24: import java.util.Map;
25:
26: /**
27: * Used to access user information attributes as described in
28: * PLT.17.2 of the JSR-168 specificiation. Attribute persistence is
29: * not covered by the spec so it is not done here.
30: *
31: */
32: public interface UserInfoService extends ContainerService {
33:
34: /**
35: * To access user information attributes as defined in PLT.17
36: * of JSR-168.
37: *
38: * @param request Used to extract the authenticated user name.
39: * @return A map of names and values of user information attributes
40: * for a particular authenticated user.
41: * @deprecated use {@link #getUserInfo(PortletRequest, PortletWindow)}
42: */
43: Map getUserInfo(PortletRequest request)
44: throws PortletContainerException;
45:
46: /**
47: * Retrieve the user attribues associated with the given
48: * request and window.
49: */
50: Map getUserInfo(PortletRequest request, PortletWindow window)
51: throws PortletContainerException;
52: }
|