is.idega.idegaweb.golf.presentation.bean.service
Class WarningMessagesBean
java.lang.Object
is.idega.idegaweb.golf.presentation.bean.service.WarningMessagesBean
public class WarningMessagesBean
- extends java.lang.Object
Is JSF managed bean for WarningMessageList
JSF ui component
You can report about problems to:
Martynas StakÄ—
- Version:
- 1.0.0 Apr 14, 2014
- Author:
- Martynas StakÄ—
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WarningMessagesBean
public WarningMessagesBean()
getUnionId
public java.lang.Long getUnionId()
- Returns:
EJBLocalObject.getPrimaryKey()
for current Member
or
null
on failure;
getWarningMessageEntities
protected java.util.List<WarningMessageEntity> getWarningMessageEntities()
- Returns:
- entities filtered by
Union
or all entities if
Union
not given, or Collections.emptyList()
on failure;
getMessagesNumber
public int getMessagesNumber()
- Returns:
- number of
WarningMessageEntity
s found in data source;
getMessages
public java.util.List<WarningMessage> getMessages()
- Returns:
WarningMessageEntity
s converted to WarningMessage
s
and sorted by WarningMessage.getSeverity()
or
Collections.emptyList()
on failure;
getHomepageLink
public java.lang.String getHomepageLink()
remove
public void remove(java.lang.String warningMessageId)
Removes entity.
- Parameters:
warningMessageId
- is WarningMessage.getId()
of entity
to remove, not null
;
update
public boolean update(java.lang.String warningMessageId,
java.lang.String messageText)
- Parameters:
warningMessageId
- is WarningMessage.getId()
,
not null
;messageText
- is text of WarningMessage.getMessage()
,
not null
;
- Returns:
true
if message successfully updated,
false
otherwise;
getEditorLink
public java.lang.String getEditorLink()
- Returns:
- link for adding new
WarningMessage
;
getEditorLink
public java.lang.String getEditorLink(java.lang.Long warninMessageId,
java.lang.Long unionId)
- Parameters:
warninMessageId
- is WarningMessage.getId()
of
entity to be edited. Will be added as URL
parameter named
WarningMessage.PARAMETER_MESSAGE_ID
. Skipped if null
;unionId
- is EJBLocalObject.getPrimaryKey()
to set as default
for WarningMessage.getUnionId()
. Will be added as URL
parameter WarningMessage.PARAMETER_UNION_ID
.
Skipped if null
;
- Returns:
- link for editing
WarningMessage
;
getWarningMessageEntityDao
protected WarningMessageEntityDao getWarningMessageEntityDao()
getUnionForCurrentUser
protected Union getUnionForCurrentUser(com.idega.presentation.IWContext iwc)
getCurrentMember
protected Member getCurrentMember(com.idega.presentation.IWContext iwc)
getMemberHome
protected MemberHome getMemberHome()
Copyright © 2000-2014 idega software. All Rights Reserved.