public class SiteId extends Object implements Formattable, Serializable
| Constructor and Description |
|---|
SiteId(Group group)
Creates a new site id for a group space (site associated with a group)
|
SiteId(SiteType type,
String name)
Creates a new site id for a site with the specified type and name
|
SiteId(String name)
Creates a new site id for a site with the specific name
|
SiteId(User user)
Creates a new site id for a users dashboard (site associated with a user)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
formatTo(Formatter formatter,
int flags,
int width,
int precision) |
static SiteId |
fromString(String idAsString) |
String |
getName()
The name of the site.
|
SiteType |
getType()
The SiteType for this SiteId
|
int |
hashCode() |
PageId |
page(String pageName)
Creates a new PageId from this SiteId
|
String |
toString() |
public SiteId(String name)
name - public SiteId(Group group)
group - the grouppublic SiteId(User user)
user - the userpublic SiteType getType()
public String getName()
public PageId page(String pageName)
pageName - the name of the pagepublic void formatTo(Formatter formatter, int flags, int width, int precision)
formatTo in interface FormattableCopyright © 2013 JBoss by Red Hat. All Rights Reserved.