Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 9b45362c
authored
May 13, 2012
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orgroles and forgotten IUser in action---responses
1 parent
83ec3abc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
109 additions
and
4 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/ActionLogMessageResponse.java
code/LanBortalWeb/WebContent/orgrole/create.xhtml
code/LanBortalWeb/WebContent/resources/cditools/orgrole/create.xhtml
code/LanBortalWeb/WebContent/resources/cditools/orgrole/form.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/OrgRoleView.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/ActionLogMessageResponse.java
View file @
9b45362
...
...
@@ -17,7 +17,6 @@ import org.eclipse.persistence.annotations.OptimisticLockingType;
import
fi.insomnia.bortal.enums.ActionLogMessageState
;
@Entity
@Table
(
name
=
"actionlog_message_responses"
)
@OptimisticLocking
(
type
=
OptimisticLockingType
.
CHANGED_COLUMNS
)
...
...
@@ -27,7 +26,7 @@ public class ActionLogMessageResponse extends GenericEntity {
private
Date
time
=
new
Date
();
@JoinColumn
(
name
=
"user_id"
)
private
I
User
user
;
private
Event
User
user
;
@Column
(
name
=
"message"
,
nullable
=
false
)
private
String
message
;
...
...
@@ -48,11 +47,11 @@ public class ActionLogMessageResponse extends GenericEntity {
this
.
time
=
time
;
}
public
I
User
getUser
()
{
public
Event
User
getUser
()
{
return
user
;
}
public
void
setUser
(
I
User
user
)
{
public
void
setUser
(
Event
User
user
)
{
this
.
user
=
user
;
}
...
...
code/LanBortalWeb/WebContent/orgrole/create.xhtml
0 → 100644
View file @
9b45362
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:orgrole=
"http://java.sun.com/jsf/composite/cditools/orgrole"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<ui:composition
template=
"/layout/#{sessionHandler.layout}/template.xhtml"
>
<ui:param
name=
"thispage"
value=
"page.orgRole.create"
/>
<f:metadata>
<f:event
type=
"preRenderView"
listener=
"#{orgRoleView.initForCreate()}"
/>
</f:metadata>
<ui:define
name=
"content"
>
<orgrole:create
/>
</ui:define>
</ui:composition>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/resources/cditools/orgrole/create.xhtml
0 → 100644
View file @
9b45362
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:composite=
"http://java.sun.com/jsf/composite"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:orgrole=
"http://java.sun.com/jsf/composite/tools/orgrole"
>
<composite:interface>
</composite:interface>
<composite:implementation>
<h:form>
<ui:include
src=
"form.xhtml"
/>
<h:commandButton
id=
"createorgrole"
value=
"#{i18n['orgrole.create']}"
action=
"#{orgRoleView.create()}"
/>
</h:form>
</composite:implementation>
</html>
code/LanBortalWeb/WebContent/resources/cditools/orgrole/form.xhtml
0 → 100644
View file @
9b45362
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:composite=
"http://java.sun.com/jsf/composite"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
>
<ui:composition>
<h:panelGrid
columns=
"2"
>
<h:outputText
value=
"#{i18n['orgrole.name']}"
/>
<h:inputText
value=
"#{orgRoleView.orgRole.name}"
/>
<h:outputText
value=
"#{i18n['orgrole.parents']}"
/>
<h:selectManyCheckbox
converter=
"#{roleConverter}"
layout=
"pageDirection"
id=
"roleparents"
value=
"#{roleView.role.parents}"
>
<f:selectItems
var=
"par"
itemLabel=
"#{par.name}"
value=
"#{roleView.possibleParents}"
/>
</h:selectManyCheckbox>
<h:outputLabel
value=
"#{i18n['role.cardtemplate']}"
/>
<h:selectOneMenu
converter=
"#{cardTemplateConverter}"
value=
"#{roleView.role.cardTemplate}"
>
<f:selectItems
var=
"role"
itemLabel=
"#{role.name}"
value=
"#{cardView.templatesWithNull}"
/>
</h:selectOneMenu>
</h:panelGrid>
</ui:composition>
</html>
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/OrgRoleView.java
View file @
9b45362
...
...
@@ -21,4 +21,9 @@ public class OrgRoleView extends GenericCDIView {
requirePermissions
(
permbean
.
hasPermission
(
UserPermission
.
READ_ORGROLES
));
}
public
void
initForCreate
()
{
requirePermissions
(
permbean
.
hasPermission
(
UserPermission
.
WRITE_ORGROLES
));
}
}
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