com.xpn.xwiki.user.api
Class XWikiUser
java.lang.Object
com.xpn.xwiki.user.api.XWikiUser
public class XWikiUser
- extends Object
XWikiUser
public XWikiUser(String user)
XWikiUser
public XWikiUser(String user,
boolean main)
getUser
public String getUser()
setUser
public void setUser(String user)
isUserInGroup
public boolean isUserInGroup(String groupName,
XWikiContext context)
throws XWikiException
- Check if the user belongs to a group or not.
- Parameters:
groupName
- The group to check.context
- The current context
.
- Returns:
- true if the user does belong to the specified group, false otherwise or if an exception occurs.
- Throws:
XWikiException
- If an error occurs when checking the groups.- Since:
- Platform-1.3
isMain
public boolean isMain()
setMain
public void setMain(boolean main)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2004-2013 XWiki. All Rights Reserved.