com.mizar.persistence.jpa.security
Class PermissionBean

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

@Entity
public class PermissionBean
extends GenericBean
implements Permission

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
PermissionBean()
           
 
Method Summary
 GroupBean addGroupBean(GroupBean groupBean)
           
 RoleBean addRoleBean(RoleBean roleBean)
           
 UserBean addUserBean(UserBean userBean)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<GroupBean> getGroupList()
           
 java.util.List<Group> getGroups()
           
 java.lang.String getName()
           
 java.lang.Long getPermissionId()
           
 java.util.List<RoleBean> getRoleList()
           
 java.util.List<Role> getRoles()
           
 java.util.List<UserBean> getUserList()
           
 java.util.List<User> getUsers()
           
 int hashCode()
           
 GroupBean removeGroupBean(GroupBean groupBean)
           
 RoleBean removeRoleBean(RoleBean roleBean)
           
 UserBean removeUserBean(UserBean userBean)
           
 void setGroupList(java.util.List<GroupBean> groupList)
           
 void setGroups(java.util.List groupList)
           
 void setName(java.lang.String name)
           
 void setPermissionId(java.lang.Long permissionId)
           
 void setRoleList(java.util.List<RoleBean> roleList)
           
 void setRoles(java.util.List<Role> roleList)
           
 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, getPrimaryKeyValue, getREAD, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionBean

public PermissionBean()
Method Detail

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Permission

getName

public java.lang.String getName()
Specified by:
getName in interface Permission

setPermissionId

public void setPermissionId(java.lang.Long permissionId)
Specified by:
setPermissionId in interface Permission

getPermissionId

public java.lang.Long getPermissionId()
Specified by:
getPermissionId in interface Permission

setUserList

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

setUsers

public void setUsers(java.util.List<User> users)

getUserList

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

getUsers

public java.util.List<User> getUsers()

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 groupList)
Specified by:
setGroups in interface Permission

getGroupList

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

getGroups

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

addGroupBean

public GroupBean addGroupBean(GroupBean groupBean)

removeGroupBean

public GroupBean removeGroupBean(GroupBean groupBean)

setRoleList

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

setRoles

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

getRoleList

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

getRoles

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

addRoleBean

public RoleBean addRoleBean(RoleBean roleBean)

removeRoleBean

public RoleBean removeRoleBean(RoleBean roleBean)

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)