com.mizar.persistence.jpa.security
Class GroupBean

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

@Entity
public class GroupBean
extends GenericBean
implements Group

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
GroupBean()
           
 
Method Summary
 PermissionBean addPermissionBean(PermissionBean permissionBean)
           
 RoleBean addRoleBean(RoleBean roleBean)
           
 UserBean addUserBean(UserBean userBean)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAllPermissionNames()
           
 java.lang.Long getGroupId()
           
 java.lang.String getGroupName()
           
 java.util.Date getLockedOut()
           
 java.util.List<PermissionBean> getPermissionList()
           
 java.lang.String getPermissionNames()
           
 java.util.List<Permission> getPermissions()
           
 java.lang.Object 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.util.List<RoleBean> getRoleList()
           
 java.lang.String getRoleNames()
           
 java.util.List<Role> getRoles()
           
 java.util.List<UserBean> getUserList()
           
 java.util.List<User> getUsers()
           
 int hashCode()
           
 PermissionBean removePermissionBean(PermissionBean permissionBean)
           
 RoleBean removeRoleBean(RoleBean roleBean)
           
 UserBean removeUserBean(UserBean userBean)
           
 void setGroupId(java.lang.Long groupId)
           
 void setGroupName(java.lang.String groupName)
           
 void setLockedOut(java.util.Date lockedOut)
           
 void setPermissionList(java.util.List<PermissionBean> permissionList)
           
 void setPermissions(java.util.List<Permission> permissions)
           
 void setRoleList(java.util.List<RoleBean> roleList)
           
 void setRoles(java.util.List<Role> roles)
           
 void setUserList(java.util.List<UserBean> userList)
           
 void setUsers(java.util.List<User> users)
           
 
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

GroupBean

public GroupBean()
Method Detail

getPrimaryKeyValue

public java.lang.Object 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

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

setGroupId

public void setGroupId(java.lang.Long groupId)
Specified by:
setGroupId in interface Group

getGroupId

public java.lang.Long getGroupId()
Specified by:
getGroupId in interface Group

setGroupName

public void setGroupName(java.lang.String groupName)
Specified by:
setGroupName in interface Group

getGroupName

public java.lang.String getGroupName()
Specified by:
getGroupName in interface Group

setUserList

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

setUsers

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

getUserList

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

getUsers

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

addUserBean

public UserBean addUserBean(UserBean userBean)

removeUserBean

public UserBean removeUserBean(UserBean userBean)

setRoleList

public void setRoleList(java.util.List<RoleBean> roleList)

setRoles

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

getRoleList

public java.util.List<RoleBean> getRoleList()

getRoles

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

getRoleNames

public java.lang.String getRoleNames()
Specified by:
getRoleNames in interface Group

addRoleBean

public RoleBean addRoleBean(RoleBean roleBean)

removeRoleBean

public RoleBean removeRoleBean(RoleBean roleBean)

setPermissionList

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

setPermissions

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

getPermissionList

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

getPermissions

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

getPermissionNames

public java.lang.String getPermissionNames()
Specified by:
getPermissionNames in interface Group

getAllPermissionNames

public java.lang.String getAllPermissionNames()
Specified by:
getAllPermissionNames in interface Group

addPermissionBean

public PermissionBean addPermissionBean(PermissionBean permissionBean)

removePermissionBean

public PermissionBean removePermissionBean(PermissionBean permissionBean)

hashCode

public int hashCode()
Overrides:
hashCode in class GenericBean

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)

setLockedOut

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

getLockedOut

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