Method Summary |
|
Group | addGroup() Add a new group. |
SitePage | addPage() Create a new site page and add it to this site. |
User | getCreatedBy() |
Time | getCreatedTime() |
String | getDescription() A longer text Description of the site. |
Group | getGroup(String id) Get a site group
Parameters: id - The group id (or reference). |
Collection | getGroups() Get a collection of the groups in a Site. |
Collection | getGroupsWithMember(String userId) Get a collection of the groups in a Site that have this user as a member.
Parameters: userId - The user id. |
Collection | getGroupsWithMemberHasRole(String userId, String role) Get a collection of the groups in a Site that have this user as a member with this role.
Parameters: userId - The user id. Parameters: role - The role. |
String | getIconUrl() The Site's icon URL. |
String | getIconUrlFull() The Site's icon URL as a full URL. |
String | getInfoUrl() The Site's info display URL. |
String | getInfoUrlFull() The Site's info display URL as a full URL. |
String | getJoinerRole() the role name given to users who join a joinable site. |
User | getModifiedBy() |
Time | getModifiedTime() |
List | getOrderedPages() The pages ordered by the tool order constraint for this site's type (as tool category), or the site's pages in defined order if the site is set to have a custom page order. |
SitePage | getPage(String id) Access the SitePage that has this id, if one is defined, else return null.
Parameters: id - The id of the SitePage. |
List | getPages() the List (SitePage) of Site Pages. |
String | getShortDescription() A short text Description of the site. |
String | getSkin() the skin to use for this site. |
String | getTitle() The human readable Title of the site. |
ToolConfiguration | getTool(String id) Access the ToolConfiguration that has this id, if one is defined, else return null. |
ToolConfiguration | getToolForCommonId(String commonToolId) Get the first tool placed on the site on any page with the specified common Tool id (such as sakai.chat)
Parameters: commonToolId - The common ToolID to search for (i.e. |
Collection | getTools(String[] toolIds) Get all the tools placed in the site on any page that are of any of these tool ids.
Parameters: toolIds - The tool id array (String, such as sakai.chat, not a tool configuration / placement uuid) to search for. |
Collection | getTools(String commonToolId) Get all the tools placed in the site on any page for a particular common Tool Id.
Parameters: commonToolId - The tool id (String, such as sakai.chat, not a tool configuration / placement uuid) to search for. |
String | getType() Access the site type. |
boolean | hasGroups() |
boolean | isCustomPageOrdered() |
boolean | isJoinable() true if this Site can be joined by anyone, false if not. |
boolean | isPubView() Check if the site is marked for viewing. |
boolean | isPublished() true if the site is published, false if not. |
boolean | isType(Object type) Test if the site is of this type. |
void | loadAll() |
void | regenerateIds() Generate a new set of pages and tools that have new, unique ids. |
void | removeGroup(Group group) Remove this group from the groups for this site. |
void | removePage(SitePage page) Remove a site page from this site. |
void | setCustomPageOrdered(boolean custom) Set the site's custom page order flag. |
void | setDescription(String description) Set the Description of the site. |
void | setIconUrl(String url) Set the url of an icon for the site. |
void | setInfoUrl(String url) Set the url for information about the site. |
void | setJoinable(boolean joinable) Set the joinable status of the site. |
void | setJoinerRole(String role) Set the joiner role for a site. |
void | setPubView(boolean pubView) Set the site view. |
void | setPublished(boolean published) Set the published state of this site. |
void | setShortDescription(String description) Set the short Description of the site. |
void | setSkin(String skin) Set the skin to use for this site. |
void | setTitle(String title) Set the human readable Title of the site. |
void | setType(String type) Set the site type. |