001/* 002 * Copyright (c) 2009 The openGion Project. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 013 * either express or implied. See the License for the specific language 014 * governing permissions and limitations under the License. 015 */ 016package org.opengion.hayabusa.common; 017 018import org.opengion.fukurou.util.Cleanable; 019 020/** 021 * ï¾•ï½°ï½»ï¾žï½°æƒ…å ±(UserInfo)ã®ï½»ï¾ï¾˜ï½°æƒ…å ±ã®ã¿ï¾Šï¾ï¾„゙リï¾ï½¸ï¾žã™ã‚‹ç‚ºã®ï½²ï¾ï¾€ï½°ï¾Œï½ªï½°ï½½ã§ã™ã€‚ 022 * パッケージ間ä¾å˜ã‚’減らã™ç‚ºã«ã€æ–°è¦ä½œæˆã—ã¦ã„ã¾ã™ã€‚ 023 * よã£ã¦ã€resource/UserInfo ã®éƒ¨åˆ†ï¾’ソッドã®ã¿ã‚’サポートã—ã¦ã„ã‚‹ã¨è€ƒãˆã¦ãã ã•ã„。 024 * 025 * @og.rev 4.0.0.0 (2005/08/31) æ–°è¦ä½œæˆ 026 * @og.group ログイï¾åˆ¶å¾¡ 027 * 028 * @version 4.0 029 * @author Kazuhiko Hasegawa 030 * @since JDK5.0, 031 */ 032public interface UserSummary extends Comparable<UserSummary> , Cleanable { 033 034 /** 035 * ユーザーログイï¾æ™‚刻をå–å¾—ã—ã¾ã™ã€‚ 036 * 037 * @return ユーザーログイï¾æ™‚刻 038 */ 039 long getLoginTime() ; 040 041 /** 042 * ユーザーã®ï¾›ï½¸ï¾žï½²ï¾IPアドレスをå–å¾—ã—ã¾ã™ã€‚ 043 * 044 * @return IPアドレス 045 */ 046 String getIPAddress() ; 047 048 /** 049 * ユーザーを返ã—ã¾ã™ã€‚ 050 * 051 * @return ユーザー 052 */ 053 String getUserID() ; 054 055 /** 056 * ï¾•ï½°ï½»ï¾žï½°æƒ…å ±ï¾›ï½¹ï½°ï¾™(言語)ã‚’è¿”ã—ã¾ã™ã€‚ 057 * 058 * @return ロケール(言語) 059 */ 060 String getLang() ; 061 062 /** 063 * ï¾•ï½°ï½»ï¾žï½°æƒ…å ± å称(日本語)ã‚’è¿”ã—ã¾ã™ã€‚ 064 * 065 * @return å称(日本語) 066 */ 067 String getJname() ; 068 069 /** 070 * ï¾•ï½°ï½»ï¾žï½°æƒ…å ± ロール(役割)ã‚’å–å¾—ã—ã¾ã™ã€‚ 071 * 072 * @return ロール(役割) 073 */ 074 String getRoles() ; 075 076 /** 077 * オブジェクトã®è˜åˆ¥åã¨ã—ã¦ã€ï¾•ï½°ï½»ï¾žï½°æƒ…å ±ã‚’è¿”ã—ã¾ã™ã€‚ 078 * 079 * @return ï¾•ï½°ï½»ï¾žï½°æƒ…å ± 080 */ 081 String getInfo() ; 082 083 /** 084 * ï¾•ï½°ï½»ï¾žï½°æƒ…å ±ã®å±žæ€§æ–‡å—列をå–å¾—ã—ã¾ã™ã€‚ 085 * 086 * @param key ï½·ï½° 087 * @return 属性文å—列 088 * @see org.opengion.hayabusa.resource.UserInfo#getAttribute( String ) 089 */ 090 String getAttribute( final String key ) ; 091 092}