net.sf.jagzilla.hibernate
Class Profile

java.lang.Object
  extended bynet.sf.jagzilla.hibernate.XmlObjectImpl
      extended bynet.sf.jagzilla.hibernate.Profile
All Implemented Interfaces:
java.io.Serializable, XmlObject

public class Profile
extends XmlObjectImpl
implements java.io.Serializable, XmlObject

represents a record in the table profiles.

In bugzilla 2.16 the following field cannot be null:

In bugzilla 2.17 the following field cannot be null:

Author:
mgriffa
See Also:
Serialized Form

Field Summary
static int PERMISSION_EDIT_BUG
          constant field representing permission for editing a bug.
static int PERMISSION_SUBMIT_BUG
          constant field representing permission for adding a new bug.
 
Constructor Summary
Profile()
           
 
Method Summary
 java.util.Set getAssignedBugs()
           
 int getBlessGroupSet()
           
 java.lang.String getCryptPassword()
           
 java.lang.String getDisabledText()
           
 java.lang.String getEmailFlags()
           
 int getGroupSet()
           
 int getId()
           
 java.lang.String getLoginName()
           
 int getMyBugsLink()
           
 java.lang.String getRealName()
           
 java.util.Set getReportedBugs()
           
 boolean hasPermission(int actionId)
           
 void loadFromXml(java.io.Reader reader)
          load the object data from xml.
 void setAssignedBugs(java.util.Set assignedBugs)
           
 void setBlessGroupSet(int blessGroupSet)
           
 void setCryptPassword(java.lang.String cryptPassword)
           
 void setDisabledText(java.lang.String disabledText)
           
 void setEmailFlags(java.lang.String emailFlags)
           
 void setGroupSet(int groupSet)
           
 void setId(int id)
           
 void setLoginName(java.lang.String loginName)
           
 void setMyBugsLink(int myBugsLink)
           
 void setRealName(java.lang.String realName)
           
 void setReportedBugs(java.util.Set bugs)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jagzilla.hibernate.XmlObjectImpl
equals, getXmlString, loadObjectFromXml, setXmlString, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jagzilla.hibernate.XmlObject
getXmlString, toXml
 

Field Detail

PERMISSION_EDIT_BUG

public static final int PERMISSION_EDIT_BUG
constant field representing permission for editing a bug.

See Also:
hasPermission(int), Constant Field Values

PERMISSION_SUBMIT_BUG

public static final int PERMISSION_SUBMIT_BUG
constant field representing permission for adding a new bug.

See Also:
hasPermission(int), Constant Field Values
Constructor Detail

Profile

public Profile()
Method Detail

getBlessGroupSet

public int getBlessGroupSet()
Returns:
Returns the blessGroupSet.

setBlessGroupSet

public void setBlessGroupSet(int blessGroupSet)
Parameters:
blessGroupSet - The blessGroupSet to set.

getCryptPassword

public java.lang.String getCryptPassword()
Returns:
Returns the cryptPassword.

setCryptPassword

public void setCryptPassword(java.lang.String cryptPassword)
Parameters:
cryptPassword - The cryptPassword to set.

getDisabledText

public java.lang.String getDisabledText()
Returns:
Returns the disabledText.

setDisabledText

public void setDisabledText(java.lang.String disabledText)
Parameters:
disabledText - The disabledText to set.

getEmailFlags

public java.lang.String getEmailFlags()
Returns:
Returns the emailFlags.

setEmailFlags

public void setEmailFlags(java.lang.String emailFlags)
Parameters:
emailFlags - The emailFlags to set.

getGroupSet

public int getGroupSet()
Returns:
Returns the groupSet.

setGroupSet

public void setGroupSet(int groupSet)
Parameters:
groupSet - The groupSet to set.

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int id)
Parameters:
id - The id to set.

getLoginName

public java.lang.String getLoginName()
Returns:
Returns the loginName.

setLoginName

public void setLoginName(java.lang.String loginName)
Parameters:
loginName - The loginName to set.

getMyBugsLink

public int getMyBugsLink()
Returns:
Returns the myBugsLink.

setMyBugsLink

public void setMyBugsLink(int myBugsLink)
Parameters:
myBugsLink - The myBugsLink to set.

getRealName

public java.lang.String getRealName()
Returns:
Returns the realName.

setRealName

public void setRealName(java.lang.String realName)
Parameters:
realName - The realName to set.

toString

public java.lang.String toString()

getReportedBugs

public java.util.Set getReportedBugs()
Returns:
Returns the bugs.

setReportedBugs

public void setReportedBugs(java.util.Set bugs)
Parameters:
bugs - The bugs to set.

getAssignedBugs

public java.util.Set getAssignedBugs()
Returns:
Returns the assignedBugs.

setAssignedBugs

public void setAssignedBugs(java.util.Set assignedBugs)
Parameters:
assignedBugs - The assignedBugs to set.

loadFromXml

public void loadFromXml(java.io.Reader reader)
                 throws java.io.IOException,
                        MappingException,
                        MarshalException,
                        ValidationException
Description copied from interface: XmlObject
load the object data from xml. This method internally uses castor to unmarshall the object form XML.

Specified by:
loadFromXml in interface XmlObject
Parameters:
reader - a reader containing a parseable xml
Throws:
java.io.IOException
MappingException
MarshalException
ValidationException

hasPermission

public boolean hasPermission(int actionId)
Parameters:
actionId -
Returns:


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.