|
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.webservices.server.ProfileServiceImpl
public class ProfileServiceImpl
Constructor Summary | |
---|---|
ProfileServiceImpl()
|
Method Summary | |
---|---|
User |
createUser(java.lang.String username,
java.lang.String password,
java.lang.String email)
Create a new user. |
void |
deleteUser(long userID)
Delete the user with the specified id. |
void |
deleteUserProperty(java.lang.String name,
long userID)
Delete an extended property from a user. |
User |
getUser(long id)
Returns a user by its id. |
User |
getUserByEmailAddress(java.lang.String emailAddress)
Returns a user object corresponding to the email address given. |
User |
getUserByUsername(java.lang.String username)
Returns a user by its username. |
int |
getUserCount()
Returns the number of users in the system. |
Property[] |
getUserProperties(long userID)
Return all extended properties for the user with the specified id. |
User[] |
getUsers()
Returns the IDs of the first 1000 users. |
User[] |
getUsersBounded(int startIndex,
int numResults)
Returns the IDs of users begining at startIndex and until the number results equals numResults. |
User[] |
getUsersByEmailAddress(java.lang.String emailAddress)
Returns an array user objects corresponding to the email address given. |
void |
setUserProperty(java.lang.String name,
java.lang.String value,
long userID)
Set an extended property for a user. |
void |
updateUser(User user)
Used to update user information in the system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileServiceImpl()
Method Detail |
---|
public int getUserCount()
ProfileService
getUserCount
in interface ProfileService
public User[] getUsersBounded(int startIndex, int numResults)
ProfileService
getUsersBounded
in interface ProfileService
startIndex
- The startIndex to grab results from.numResults
- The total number of results to be returned.
public User[] getUsers()
ProfileService
getUsers
in interface ProfileService
public User getUser(long id) throws UserNotFoundException
ProfileService
getUser
in interface ProfileService
id
- The id of the user.
UserNotFoundException
public User getUserByUsername(java.lang.String username) throws UserNotFoundException
ProfileService
getUserByUsername
in interface ProfileService
username
- The username of the user.
UserNotFoundException
public void updateUser(User user) throws UserNotFoundException
ProfileService
updateUser
in interface ProfileService
user
- User information to update.
UserNotFoundException
public User createUser(java.lang.String username, java.lang.String password, java.lang.String email) throws UserAlreadyExistsException
ProfileService
createUser
in interface ProfileService
username
- The name of user.password
- The password for the user.email
- The email address of the user.
UserAlreadyExistsException
public void deleteUser(long userID) throws UserNotFoundException
ProfileService
deleteUser
in interface ProfileService
userID
- The id of the user to delete.
UserNotFoundException
public Property[] getUserProperties(long userID) throws UserNotFoundException
ProfileService
getUserProperties
in interface ProfileService
userID
- The user's id.
UserNotFoundException
public void setUserProperty(java.lang.String name, java.lang.String value, long userID) throws UserNotFoundException
ProfileService
setUserProperty
in interface ProfileService
name
- The name of the extended property.value
- The value of the extended property.userID
- The user to set an extended property for.
UserNotFoundException
public void deleteUserProperty(java.lang.String name, long userID) throws UserNotFoundException
ProfileService
deleteUserProperty
in interface ProfileService
name
- Name of the extended property to delete.userID
- The id of the user to delete the extended property from.
UserNotFoundException
- Thrown if the specified user didn't exist.public User getUserByEmailAddress(java.lang.String emailAddress) throws UserNotFoundException
ProfileService
getUserByEmailAddress
in interface ProfileService
emailAddress
- The email address of the user.
UserNotFoundException
public User[] getUsersByEmailAddress(java.lang.String emailAddress)
ProfileService
getUsersByEmailAddress
in interface ProfileService
emailAddress
- The email address of the user.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |