br.com.arsmachina.example.web.pages.user
Class EditUser

java.lang.Object
  extended by br.com.arsmachina.tapestrycrud.base.BasePage<T,K>
      extended by br.com.arsmachina.tapestrycrud.base.BaseEditPage<br.com.arsmachina.authentication.entity.User,Integer>
          extended by br.com.arsmachina.example.web.pages.user.EditUser
All Implemented Interfaces:
br.com.arsmachina.tapestrycrud.CrudPage<br.com.arsmachina.authentication.entity.User,Integer>, br.com.arsmachina.tapestrycrud.EditPage<br.com.arsmachina.authentication.entity.User,Integer>

@Secured(value="ROLE_MANAGER")
public class EditUser
extends br.com.arsmachina.tapestrycrud.base.BaseEditPage<br.com.arsmachina.authentication.entity.User,Integer>

User edit page.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
EditUser()
           
 
Method Summary
 SelectModel getPermissionGroupsSM()
          Returns a SelectModel for the permissionGroups property.
 ValueEncoder<br.com.arsmachina.authentication.entity.PermissionGroup> getPermissionGroupsVE()
          Returns a ValueEncoder for the PermissionGroups property.
 SelectModel getRemovedPermissionsSM()
          Returns a SelectModel for the removedPermissions property.
 ValueEncoder<br.com.arsmachina.authentication.entity.Permission> getRemovedPermissionsVE()
          Returns a ValueEncoder for the removedPermissions property.
 boolean isManager()
          Returns the value of the manager property.
protected  void prepareObjectForSaveOrUpdate()
          Adds or removes the Manager role according to the manager property.
 void setManager(boolean manager)
          Changes the value of the manager property.
 
Methods inherited from class br.com.arsmachina.tapestrycrud.base.BaseEditPage
addError, clearObject, createNewObject, getForm, getListPage, getObject, getZone, onPassivate, prepare, returnFromRemove, saveOrUpdate, setObject, setSaveOrUpdateSuccessMessage, validate, validateObject
 
Methods inherited from class br.com.arsmachina.tapestrycrud.base.BasePage
filterReadOnlyComponentsInBeanModel, getActivationContextEncoder, getController, getEntityClass, getLabelEncoder, getMessage, getMessages, getPrimaryKeyClass, getPrimaryKeyEncoder, getSelectModelFactory, getValueEncoder, returnZoneOnXHR, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface br.com.arsmachina.tapestrycrud.CrudPage
getEntityClass, getMessage, getPrimaryKeyClass, setMessage
 

Constructor Detail

EditUser

public EditUser()
Method Detail

prepareObjectForSaveOrUpdate

protected void prepareObjectForSaveOrUpdate()
Adds or removes the Manager role according to the manager property.

Overrides:
prepareObjectForSaveOrUpdate in class br.com.arsmachina.tapestrycrud.base.BaseEditPage<br.com.arsmachina.authentication.entity.User,Integer>
See Also:
BaseEditPage.prepareObjectForSaveOrUpdate()

isManager

public boolean isManager()
Returns the value of the manager property.

Returns:
a boolean.

setManager

public void setManager(boolean manager)
Changes the value of the manager property.

Parameters:
manager - a boolean.

getPermissionGroupsSM

public SelectModel getPermissionGroupsSM()
Returns a SelectModel for the permissionGroups property.

Returns:
a SelectModel.

getPermissionGroupsVE

public ValueEncoder<br.com.arsmachina.authentication.entity.PermissionGroup> getPermissionGroupsVE()
Returns a ValueEncoder for the PermissionGroups property.

Returns:
a ValueEncoder.

getRemovedPermissionsSM

public SelectModel getRemovedPermissionsSM()
Returns a SelectModel for the removedPermissions property.

Returns:
a SelectModel.

getRemovedPermissionsVE

public ValueEncoder<br.com.arsmachina.authentication.entity.Permission> getRemovedPermissionsVE()
Returns a ValueEncoder for the removedPermissions property.

Returns:
a ValueEncoder.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.