bacoAlunos
ENGSOFT2019
BlueGrey
calm
Elegant
Català-Valencià - Catalan
中文 - Chinese (Simplified)
中文 - Chinese (Traditional)
Česky - Czech
Dansk - Danish
Nederlands - Dutch
English - English
Suomi - Finnish
Français - French
Deutsch - German
עברית - Hebrew
हिंदी - Hindi
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
मराठी - Marathi
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Portuguese (Brazil)
Русский - Russian
Slovenčina - Slovak
Slovenščina - Slovenian
Español - Spanish
Svenska - Swedish
Türkçe - Turkish
Oëzbekcha - Uzbek
Subversion Repositories
bacoAlunos
(root)
/
impl
/
src
/
java
/
Test.java
@ 1
- Rev
Rev
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
RSS feed
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
java.util.Set
;
import
openldap.LdapManagerFactory
;
public
class
Test
{
public
static
void
main
(
1.
5
.0/docs/api/java/lang/String.html">
String
[
]
args
)
throws
1.
5
.0/docs/api/java/lang/Exception.html">
Exception
{
1.
5
.0/docs/api/java/lang/System.html">
System
.
out
.
println
(
LdapManagerFactory.
getLdapManager
(
)
.
login
(
"a8824"
,
"21286"
)
)
;
1.
5
.0/docs/api/java/util/HashMap.html">
HashMap
map = LdapManagerFactory.
getLdapManager
(
)
.
getUserInfo
(
"jmachado"
)
;
1.
5
.0/docs/api/java/util/Set.html">
Set
s = map.
entrySet
(
)
;
1.
5
.0/docs/api/java/util/Iterator.html">
Iterator
iter = s.
iterator
(
)
;
while
(
iter.
hasNext
(
)
)
{
1.
5
.0/docs/api/java/util/Map.Entry.html">
Map.
Entry
e =
(
Entry
)
iter.
next
(
)
;
1.
5
.0/docs/api/java/lang/System.html">
System
.
out
.
println
(
e.
getKey
(
)
+
":"
+ e.
getValue
(
)
)
;
}
map = LdapManagerFactory.
getLdapManager
(
)
.
getUserInfo
(
"a8822"
)
;
s = map.
entrySet
(
)
;
iter = s.
iterator
(
)
;
while
(
iter.
hasNext
(
)
)
{
1.
5
.0/docs/api/java/util/Map.Entry.html">
Map.
Entry
e =
(
Entry
)
iter.
next
(
)
;
1.
5
.0/docs/api/java/lang/System.html">
System
.
out
.
println
(
e.
getKey
(
)
+
":"
+ e.
getValue
(
)
)
;
}
}
}