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 06d2196e
authored
Oct 06, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ungeneralize type
1 parent
7aa09958
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/OrgRoleBean.java
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/OrgRoleBeanLocal.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/converter/OrgRoleConverter.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/OrgRoleBean.java
View file @
06d2196
...
@@ -44,7 +44,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
...
@@ -44,7 +44,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
}
}
@Override
@Override
public
ModelInterfac
e
find
(
Integer
id
)
{
public
OrgRol
e
find
(
Integer
id
)
{
return
orgRoleFacade
.
find
(
id
);
return
orgRoleFacade
.
find
(
id
);
}
}
...
...
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/OrgRoleBeanLocal.java
View file @
06d2196
...
@@ -5,14 +5,13 @@ import java.util.List;
...
@@ -5,14 +5,13 @@ import java.util.List;
import
javax.ejb.Local
;
import
javax.ejb.Local
;
import
fi.insomnia.bortal.model.OrgRole
;
import
fi.insomnia.bortal.model.OrgRole
;
import
fi.insomnia.bortal.utilities.jpa.ModelInterface
;
@Local
@Local
public
interface
OrgRoleBeanLocal
{
public
interface
OrgRoleBeanLocal
{
List
<
OrgRole
>
listOrgRoles
();
List
<
OrgRole
>
listOrgRoles
();
ModelInterfac
e
find
(
Integer
id
);
OrgRol
e
find
(
Integer
id
);
List
<
OrgRole
>
getPossibleParents
(
OrgRole
orgRole
);
List
<
OrgRole
>
getPossibleParents
(
OrgRole
orgRole
);
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/converter/OrgRoleConverter.java
View file @
06d2196
...
@@ -5,18 +5,18 @@ import javax.enterprise.context.RequestScoped;
...
@@ -5,18 +5,18 @@ import javax.enterprise.context.RequestScoped;
import
javax.inject.Named
;
import
javax.inject.Named
;
import
fi.insomnia.bortal.beans.OrgRoleBeanLocal
;
import
fi.insomnia.bortal.beans.OrgRoleBeanLocal
;
import
fi.insomnia.bortal.
utilities.jpa.ModelInterfac
e
;
import
fi.insomnia.bortal.
model.OrgRol
e
;
import
fi.insomnia.bortal.utilities.jsf.GenericIntegerEntityConverter
;
import
fi.insomnia.bortal.utilities.jsf.GenericIntegerEntityConverter
;
@Named
(
"orgRoleConverter"
)
@Named
(
"orgRoleConverter"
)
@RequestScoped
@RequestScoped
public
class
OrgRoleConverter
extends
GenericIntegerEntityConverter
{
public
class
OrgRoleConverter
extends
GenericIntegerEntityConverter
<
OrgRole
>
{
@EJB
@EJB
private
OrgRoleBeanLocal
orgRoleBean
;
private
OrgRoleBeanLocal
orgRoleBean
;
@Override
@Override
protected
ModelInterfac
e
find
(
Integer
id
)
{
protected
OrgRol
e
find
(
Integer
id
)
{
return
orgRoleBean
.
find
(
id
);
return
orgRoleBean
.
find
(
id
);
}
}
...
...
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