|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.database.DbAvatar
public class DbAvatar
Constructor Summary | |
---|---|
DbAvatar()
Constructor for internal use only, needed for clustering. |
|
DbAvatar(long id)
Acquires an existing DbAvatar object by its id |
|
DbAvatar(User owner,
java.lang.String name,
java.lang.String contentType,
java.io.InputStream in)
|
Method Summary | |
---|---|
void |
deleteProperty(java.lang.String name)
Deletes an extended property. |
boolean |
equals(java.lang.Object o)
|
Attachment |
getAttachment()
Returns the attachment for this avatar |
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
long |
getID()
Returns the unique ID of the avatar |
int |
getModValue()
Returns the moderation value for this Avatar |
User |
getOwner()
Returns user who created this avatar, if the user is null then this is a global avatar |
java.lang.String |
getProperty(java.lang.String name)
Returns an extended property of the attachment. |
java.util.Iterator |
getPropertyNames()
Returns an Iterator for the names of the extended properties. |
int |
hashCode()
|
void |
readExternal(java.io.DataInput in)
|
void |
setModValue(int modValue)
Modifies the moderation value of this specific avatar |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets an extended property of the attachment. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DbAvatar(User owner, java.lang.String name, java.lang.String contentType, java.io.InputStream in) throws UnauthorizedException, AvatarException
UnauthorizedException
AvatarException
public DbAvatar(long id) throws AvatarNotFoundException
id
- unique identifier of the DbAvatar object
AvatarNotFoundException
- thrown if no matching avatar existspublic DbAvatar()
Method Detail |
---|
public long getID()
Avatar
getID
in interface Avatar
public User getOwner()
Avatar
getOwner
in interface Avatar
public int getModValue()
Avatar
getModValue
in interface Avatar
public void setModValue(int modValue) throws UnauthorizedException
Avatar
setModValue
in interface Avatar
modValue
- change the moderation value
UnauthorizedException
- thrown if the user does not have moderation privilegespublic Attachment getAttachment() throws AttachmentNotFoundException
Avatar
getAttachment
in interface Avatar
AttachmentNotFoundException
- if we could not find an attachment for this avatarpublic java.lang.String getProperty(java.lang.String name)
Avatar
getProperty
in interface Avatar
name
- the name of the property to get.
public void setProperty(java.lang.String name, java.lang.String value) throws UnauthorizedException
Avatar
If the property referenced by
name
already exists, its
value will be updated.
setProperty
in interface Avatar
name
- the name of the property to set.value
- the new value for the property.
UnauthorizedException
- if does not have admin permissions.public void deleteProperty(java.lang.String name) throws UnauthorizedException
Avatar
name
does not exist, this method will do nothing.
deleteProperty
in interface Avatar
name
- the name of the property to delete.
UnauthorizedException
- if does not have ADMIN permissions.public java.util.Iterator getPropertyNames()
Avatar
getPropertyNames
in interface Avatar
public int getCachedSize()
Cacheable
getCachedSize
in interface Cacheable
public void readExternal(java.io.DataInput in) throws java.io.IOException
readExternal
in interface com.tangosol.io.ExternalizableLite
java.io.IOException
public void writeExternal(java.io.DataOutput out) throws java.io.IOException
writeExternal
in interface com.tangosol.io.ExternalizableLite
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |