Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 92d6f142
authored
Oct 30, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.intra.insomnia.fi:/data/bortal
2 parents
e5f5f9ab
4aaf0244
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
75 deletions
code/LanBortal/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalAuthModule/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalAuthModule/src/fi/insomnia/bortal/BortalLoginModule.java
code/LanBortalAuthModuleClient/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalBeans/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalBeansClient/.classpath
code/LanBortalBeansClient/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalDatabase/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalFlash/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalUtilities/.classpath
code/LanBortalUtilities/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortalWeb/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
code/LanBortal/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:36:18 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalAuthModule/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:36:10 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalAuthModule/src/fi/insomnia/bortal/BortalLoginModule.java
View file @
92d6f14
...
...
@@ -79,16 +79,17 @@ public class BortalLoginModule extends AppservPasswordLoginModule {
RealmBeanRemote
authbean
=
BortalRealm
.
getAuthBean
();
if
(
authbean
==
null
)
{
throw
new
LoginException
(
"Error. Could not get authentication bean!"
);
throw
new
LoginException
(
"Error. Could not get authentication bean!"
);
}
// Authenticate User
BortalRealm
samplerealm
=
(
BortalRealm
)
_currentRealm
;
if
(!
authbean
.
authenticate
(
_username
,
new
String
(
_passw
or
d
)))
{
if
(!
authbean
.
authenticate
(
_username
,
new
String
(
_passwd
)))
{
// Login fails
throw
new
LoginException
((
new
StringBuilder
())
.
append
(
"customrealm:Login Failed for user "
)
.
append
(
_username
).
toString
());
.
append
(
_username
).
toString
());
}
// Login succeeds
...
...
@@ -100,15 +101,17 @@ public class BortalLoginModule extends AppservPasswordLoginModule {
try
{
enumeration
=
samplerealm
.
getGroupNames
(
_username
);
}
catch
(
InvalidOperationException
invalidoperationexception
)
{
throw
new
LoginException
((
new
StringBuilder
())
.
append
(
"An InvalidOperationException was thrown "
+
" while calling getGroupNames() on the SampleRealm "
)
.
append
(
invalidoperationexception
).
toString
());
throw
new
LoginException
(
(
new
StringBuilder
())
.
append
(
"An InvalidOperationException was thrown "
+
" while calling getGroupNames() on the SampleRealm "
)
.
append
(
invalidoperationexception
).
toString
());
}
catch
(
NoSuchUserException
nosuchuserexception
)
{
throw
new
LoginException
((
new
StringBuilder
())
.
append
(
"A NoSuchUserException was thrown "
+
" while calling getGroupNames() on the SampleRealm "
)
.
append
(
nosuchuserexception
).
toString
());
throw
new
LoginException
(
(
new
StringBuilder
())
.
append
(
"A NoSuchUserException was thrown "
+
" while calling getGroupNames() on the SampleRealm "
)
.
append
(
nosuchuserexception
).
toString
());
}
ArrayList
<
String
>
authenticatedGroups
=
new
ArrayList
<
String
>();
...
...
code/LanBortalAuthModuleClient/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:36:02 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalBeans/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:59 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalBeansClient/.classpath
View file @
92d6f14
...
...
@@ -9,10 +9,5 @@
<attribute
name=
"owner.project.facets"
value=
"jst.utility;#system#"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"output"
path=
"ejbModule"
/>
</classpath>
code/LanBortalBeansClient/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:51 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalDatabase/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:48 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalFlash/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:14 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalUtilities/.classpath
View file @
92d6f14
...
...
@@ -9,10 +9,5 @@
<attribute
name=
"owner.project.facets"
value=
"jst.utility;#system#"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"
>
<attributes>
<attribute
name=
"owner.project.facets"
value=
"java"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"output"
path=
"build/classes"
/>
</classpath>
code/LanBortalUtilities/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:28 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
code/LanBortalWeb/.settings/org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs
deleted
100644 → 0
View file @
e5f5f9a
#Wed Oct 27 01:35:40 EEST 2010
XDOCLETBUILDERACTIVE=true
XDOCLETHOME=/Users/jkj/Projects/Omnima/lib/xdoclet-1.2.3
XDOCLETUSEGLOBAL=true
XDOCLETVERSION=1.2.3
eclipse.preferences.version=1
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment