|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ButtonContainerImp
Button Container implementation
Field Summary | |
private java.util.Map |
buttonPermissions
The users permission which is necessary to see any buttons (Map<ControlButton, Permission>) |
private static long |
serialVersionUID
Serial Version UID |
Constructor Summary | |
ButtonContainerImp()
|
Method Summary | |
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private java.util.Map buttonPermissions
Constructor Detail |
public ButtonContainerImp()
Method Detail |
public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission
in interface ButtonContainer
button
- Button constant
null
ButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button, Principal principal)
ButtonContainer
showButton
in interface ButtonContainer
button
- The Button to queryprincipal
- The principal object
true
if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button, Permission permission)
ButtonContainer
setButtonPermission
in interface ButtonContainer
button
- The Button to querypermission
- PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |