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 class
Account.RoleList
static class
Account.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 boolean
equals(java.lang.Object obj)
static Account
fromJSON(java.lang.String json)
static Account
fromXML(java.lang.String xml)
java.lang.String
getEmail()
java.lang.String
getFullName()
java.lang.String
getID()
java.util.Collection<java.lang.String>
getRoles()
int
hashCode()
static void
main(java.lang.String[] args)
void
setEmail(java.lang.String email)
void
setFullName(java.lang.String fullName)
void
setID(java.lang.String id)
void
setRoles(java.util.Collection<java.lang.String> roles)
java.lang.String
toJSON()
java.lang.String
toString()
java.lang.String
toXML()
static Account
valueOf(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:
hashCode
in classResourceMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in 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:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-