com.fatwire.services.beans.entity
Class RoleBean
java.lang.Object
com.fatwire.services.beans.BaseBean
com.fatwire.services.beans.entity.RoleBean
- All Implemented Interfaces:
- java.io.Serializable
public class RoleBean
- extends BaseBean
The RoleBean represents the fundamental entity of the role. A role can exist
independently. However, a user can gain access to a site only once roles are
assigned to the user for that site. The role is uniquely identified by its
name. It determines the aspects of the application that user will have access
to within the site. The RoleBean is a value object used by services handling
role-based operations.
- See Also:
SiteBean
,
UserBean
,
Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Return the role name. |
int |
hashCode()
|
void |
setName(java.lang.String name)
Sets the role name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
RoleBean
public RoleBean()
getName
public java.lang.String getName()
- Return the role name.
- Returns:
- the name of the role.
setName
public void setName(java.lang.String name)
- Sets the role name.
- Parameters:
name
- the name of the role to set.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.