public class UserState extends Object
Examples:
Constructor and Description |
---|
UserState() |
Modifier and Type | Method and Description |
---|---|
void |
addProfileGroups(String profileGroups)
Convenience method to add a profile groups to the currently active
set of profile groups.
|
void |
addUserSegments(String userSegments)
Convenience method to add a user segments to the currently active
set of user segments.
|
Date |
getDate() |
String |
getDateAsString() |
Set<String> |
getProfileGroups() |
String |
getUserAgent() |
Set<String> |
getUserSegments() |
String |
getWorkspaceId() |
void |
setDate(Date date)
Sets the date; this is useful for previewing what a site looks like
on a particular date.
|
void |
setDateAsString(String date)
Convenience method to set the date from a String of the format
"yyyy-MM-dd'T'HH:mm" . |
void |
setProfileGroups(Set<String> profileGroups)
Sets the set of profile groups.
|
void |
setUserAgent(String userAgent)
Sets the user-agent; this is useful for previewing what a site looks
like with a particular user-agent.
|
void |
setUserSegments(Set<String> userSegments)
Sets the set of user segments.
|
void |
setWorkspaceId(String workspaceId)
Sets the workspace id.
|
public void setUserSegments(Set<String> userSegments)
Set
.userSegments
- the new user segmentsaddUserSegments(String)
public Set<String> getUserSegments()
public void addUserSegments(String userSegments)
userSegments
- the new user segmentpublic void setProfileGroups(Set<String> profileGroups)
Set
.profileGroups
- the new profile groups#setProfileGroups(Set)
public Set<String> getProfileGroups()
public void addProfileGroups(String profileGroups)
profileGroups
- the new profile groups stringpublic void setDate(Date date)
date
- the new datesetDateAsString(String)
public void setDateAsString(String date) throws ParseException
"yyyy-MM-dd'T'HH:mm"
.date
- the new dateParseException
- if an error occurs while parsing the
input Stringpublic Date getDate()
public String getDateAsString()
"yyyy-MM-dd'T'HH:mm"
.
May also return null to indicate the current date.public void setUserAgent(String userAgent)
userAgent
- the new user-agentpublic String getUserAgent()
public String getWorkspaceId()
public void setWorkspaceId(String workspaceId)
workspaceId
- Copyright © 2015, Oracle and/or its affiliates. All rights reserved.