Package com.netscape.certsrv.account
Class Account
- java.lang.Object
-
- com.netscape.certsrv.base.ResourceMessage
-
- com.netscape.certsrv.account.Account
-
public class Account extends ResourceMessage
- Author:
- Endi S. Dewata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.RoleListstatic classAccount.RolesAdapter-
Nested classes/interfaces inherited from class com.netscape.certsrv.base.ResourceMessage
ResourceMessage.Attribute, ResourceMessage.AttributeList, ResourceMessage.MapAdapter
-
-
Field Summary
-
Fields inherited from class com.netscape.certsrv.base.ResourceMessage
attributes
-
-
Constructor Summary
Constructors Constructor Description Account()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static AccountfromJSON(java.lang.String json)static AccountfromXML(java.lang.String xml)java.lang.StringgetEmail()java.lang.StringgetFullName()java.lang.StringgetID()java.util.Collection<java.lang.String>getRoles()inthashCode()static voidmain(java.lang.String[] args)voidsetEmail(java.lang.String email)voidsetFullName(java.lang.String fullName)voidsetID(java.lang.String id)voidsetRoles(java.util.Collection<java.lang.String> roles)java.lang.StringtoJSON()java.lang.StringtoString()java.lang.StringtoXML()static AccountvalueOf(java.lang.String xml)-
Methods inherited from class com.netscape.certsrv.base.ResourceMessage
getAttribute, getAttributeNames, getAttributes, getClassName, marshal, marshall, removeAttribute, setAttribute, setAttributes, setClassName, unmarshal, unmarshall
-
-
-
-
Method Detail
-
getID
public java.lang.String getID()
-
setID
public void setID(java.lang.String id)
-
getFullName
public java.lang.String getFullName()
-
setFullName
public void setFullName(java.lang.String fullName)
-
getEmail
public java.lang.String getEmail()
-
setEmail
public void setEmail(java.lang.String email)
-
getRoles
public java.util.Collection<java.lang.String> getRoles()
-
setRoles
public void setRoles(java.util.Collection<java.lang.String> roles)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classResourceMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classResourceMessage
-
toXML
public java.lang.String toXML() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromXML
public static Account fromXML(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toJSON
public java.lang.String toJSON() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromJSON
public static Account fromJSON(java.lang.String json) throws java.lang.Exception
- Throws:
java.lang.Exception
-
valueOf
public static Account valueOf(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-