com.mizar.persistence.jpa.security
Class RoleBean

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.security.RoleBean
All Implemented Interfaces:
Role, JPAInterface, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
RoleRow

@Entity
public class RoleBean
extends GenericBean
implements Role

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
RoleBean()
           
 
Method Summary
 GroupBean addGroupBean(GroupBean groupBean)
           
 PermissionBean addPermissionBean(PermissionBean permissionBean)
           
 UserBean addUserBean(UserBean userBean)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<GroupBean> getGroupList()
           
 java.util.List<Group> getGroups()
           
 java.util.Date getLockedOut()
           
 java.util.List<PermissionBean> getPermissionList()
           
 java.lang.String getPermissionNames()
           
 java.util.List<Permission> getPermissions()
           
 java.lang.Long getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 java.lang.Long getRoleId()
           
 java.lang.String getRoleName()
           
 java.util.List<UserBean> getUserList()
           
 java.util.List<User> getUsers()
           
 int hashCode()
           
 boolean isGuestable()
           
 GroupBean removeGroupBean(GroupBean groupBean)
           
 PermissionBean removePermissionBean(PermissionBean permissionBean)
           
 UserBean removeUserBean(UserBean userBean)
           
 void setGroupList(java.util.List<GroupBean> groupList)
           
 void setGroups(java.util.List<Group> groupList)
           
 void setGuestable(boolean guestable)
           
 void setLockedOut(java.util.Date lockedOut)
           
 void setPermissionList(java.util.List<PermissionBean> permissionList)
           
 void setPermissions(java.util.List<Permission> permissionList)
           
 void setRoleId(java.lang.Long roleId)
           
 void setRoleName(java.lang.String roleName)
           
 void setUserList(java.util.List<UserBean> userList)
           
 void setUsers(java.util.List<User> userList)
           
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleBean

public RoleBean()
Method Detail

getPrimaryKeyValue

public java.lang.Long getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

setRoleId

public void setRoleId(java.lang.Long roleId)
Specified by:
setRoleId in interface Role

getRoleId

public java.lang.Long getRoleId()
Specified by:
getRoleId in interface Role

setRoleName

public void setRoleName(java.lang.String roleName)
Specified by:
setRoleName in interface Role

getRoleName

public java.lang.String getRoleName()
Specified by:
getRoleName in interface Role

setGuestable

public void setGuestable(boolean guestable)
Specified by:
setGuestable in interface Role

isGuestable

public boolean isGuestable()
Specified by:
isGuestable in interface Role

setUserList

public void setUserList(java.util.List<UserBean> userList)

setUsers

public void setUsers(java.util.List<User> userList)
Specified by:
setUsers in interface Role

getUserList

public java.util.List<UserBean> getUserList()

getUsers

public java.util.List<User> getUsers()
Specified by:
getUsers in interface Role

addUserBean

public UserBean addUserBean(UserBean userBean)

removeUserBean

public UserBean removeUserBean(UserBean userBean)

setGroupList

public void setGroupList(java.util.List<GroupBean> groupList)

setGroups

public void setGroups(java.util.List<Group> groupList)
Specified by:
setGroups in interface Role

getGroupList

public java.util.List<GroupBean> getGroupList()

getGroups

public java.util.List<Group> getGroups()
Specified by:
getGroups in interface Role

addGroupBean

public GroupBean addGroupBean(GroupBean groupBean)

removeGroupBean

public GroupBean removeGroupBean(GroupBean groupBean)

setPermissionList

public void setPermissionList(java.util.List<PermissionBean> permissionList)

setPermissions

public void setPermissions(java.util.List<Permission> permissionList)
Specified by:
setPermissions in interface Role

getPermissionList

public java.util.List<PermissionBean> getPermissionList()

getPermissions

public java.util.List<Permission> getPermissions()
Specified by:
getPermissions in interface Role

getPermissionNames

public java.lang.String getPermissionNames()

addPermissionBean

public PermissionBean addPermissionBean(PermissionBean permissionBean)

removePermissionBean

public PermissionBean removePermissionBean(PermissionBean permissionBean)

hashCode

public int hashCode()
Overrides:
hashCode in class GenericBean

setLockedOut

public void setLockedOut(java.util.Date lockedOut)
Specified by:
setLockedOut in interface Role

getLockedOut

public java.util.Date getLockedOut()
Specified by:
getLockedOut in interface Role

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class GenericBean
Returns:
true or false if reference values are all equal
See Also:
GenericBean.compareTo(Object)