Java Doc for SiteService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » site » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.site.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.site.api.SiteService

All known Subclasses:   org.sakaiproject.site.impl.BaseSiteService,
SiteService
public interface SiteService extends EntityProducer(Code)

SiteService manages Sites.


Inner Class :public class SelectionType
Inner Class :public class SortType

Field Summary
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final static  StringGROUP_SUBTYPE
     The Entity Reference sub-type for Group references.
final static  StringMAIN_CONTAINER
     The name of the main container for a resource in a site (channel, calendar, etc.).
final static  StringPAGE_SUBTYPE
     The Entity Reference sub-type for Page references.
final static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final static  StringSECURE_ADD_SITE
     Name for the event of adding a site.
final static  StringSECURE_ADD_USER_SITE
     Name for the event of adding a user's My Workspace site.
final static  StringSECURE_REMOVE_SITE
     Name for the event of removing a site.
final static  StringSECURE_UPDATE_GROUP_MEMBERSHIP
     Name for the event of updating a site's groups' memberships.
final static  StringSECURE_UPDATE_SITE
     Name for the event of updating a site.
final static  StringSECURE_UPDATE_SITE_MEMBERSHIP
     Name for the event of updating a site's membership.
final static  StringSECURE_VIEW_ROSTER
     Name for the event of viewing project site participants.
final static  StringSITE_ERROR
     The name of a special site that is used if the requested site is not available.
final static  StringSITE_SUBTYPE
     The Entity Reference sub-type for Site references.
final static  StringSITE_TEMPLATE
     The name of a special site that is a template for non-user sites.
final static  StringSITE_VISIT
     Name for the event of visiting a site.
final static  StringSITE_VISIT_UNPUBLISHED
     Name for the event of visiting an unpublished site.
final static  StringTOOL_SUBTYPE
     The Entity Reference sub-type for Tool references.
final static  StringURL_ERROR
     The name of a special site that is used if the requested url is not understood.
final static  StringUSER_SITE_TEMPLATE
     The name of a special site that is a template for user sites.


Method Summary
 SiteaddSite(String id, String type)
     Add a new site.
 SiteaddSite(String id, Site other)
     Add a new site.
public  voidaddSiteAdvisor(SiteAdvisor advisor)
     Registers a SiteAdvisor with the SiteService.
 booleanallowAccessSite(String id)
     check permissions for accessing (i.e.
 booleanallowAddSite(String id)
     check permissions for addSite().
Parameters:
  id - The site id.
 booleanallowRemoveSite(String id)
     check permissions for removeSite().
Parameters:
  id - The site id.
 booleanallowUnjoinSite(String id)
     check permissions for unjoin() - unjoining the site and removing all role relationships.
Parameters:
  id - The site id.
 booleanallowUpdateGroupMembership(String id)
     check permissions for updating a site's groups' memberships
Parameters:
  id - The site id.
 booleanallowUpdateSite(String id)
     check permissions for updating a site
Parameters:
  id - The site id.
 booleanallowUpdateSiteMembership(String id)
     check permissions for updating a site's membership
Parameters:
  id - The site id.
 booleanallowViewRoster(String id)
     check permissions for viewing project site participants
Parameters:
  id - The site id.
 intcountSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria)
     Count the Site objets that meet specified criteria.
Parameters:
  type - The SelectionType specifying what sort of selection is intended.
Parameters:
  ofType - Site type criteria: null for any type; a String to match a single type; A String[], List or Set to match any type in the collection.
Parameters:
  criteria - Additional selection criteria: sits returned will match this string somewhere in their id, title, description, or skin.
Parameters:
  propertyCriteria - Additional selection criteria: sites returned will have a property named to match each key in the map, whose values match (somewhere in their value) the value in the map (may be null or empty).
 GroupfindGroup(String refOrId)
     Access a Group object, given a reference string or id.
Parameters:
  refOrId - The group reference or id string.
 SitePagefindPage(String id)
     Access the Page that has this id, if one is defined, else return null.
 ToolConfigurationfindTool(String id)
     Access the ToolConfiguration that has this id, if one is defined, else return null.
 String[]getLayoutNames()
     Get an array of names to match the site page layout options.
 SitegetSite(String id)
     Access a site object.
Parameters:
  id - The site id string.
public  List<SiteAdvisor>getSiteAdvisors()
     Lists the current SiteAdvisors registered with the SiteService.
 StringgetSiteDisplay(String id)
     Form a display of the site title and id for this site.
Parameters:
  id - The site id.
 StringgetSiteSkin(String id)
     Compute the skin to use for the (optional) site specified in the id parameter.
 StringgetSiteSpecialId(String site)
     Extract the special id for this special site from the site id or reference.
Parameters:
  site - The site id or reference.
 ListgetSiteTypes()
     Access a unique list of String site types for any site type defined for any site, sorted by type.
 StringgetSiteUserId(String site)
     Extract the user id for this user site from the site id or reference.
Parameters:
  site - The site id or reference.
 SitegetSiteVisit(String id)
     Access a site object for purposes of having the user visit the site - visitation permissions are in effect.
Parameters:
  id - The site id string.
 ListgetSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria, SortType sort, PagingPosition page)
     Access a list of Site objets that meet specified criteria.
Parameters:
  type - The SelectionType specifying what sort of selection is intended.
Parameters:
  ofType - Site type criteria: null for any type; a String to match a single type; A String[], List or Set to match any type in the collection.
Parameters:
  criteria - Additional selection criteria: sites returned will match this string somewhere in their id, title, description, or skin.
Parameters:
  propertyCriteria - Additional selection criteria: sites returned will have a property named to match each key in the map, whose values match (somewhere in their value) the value in the map (may be null or empty).
Parameters:
  sort - A SortType indicating the desired sort.
 StringgetSpecialSiteId(String special)
     Form the site id for this special site.
Parameters:
  special - The special id.
 StringgetUserSiteId(String userId)
     Form the site id for this user's site.
Parameters:
  userId - The user id.
 booleanisSpecialSite(String site)
     Is this site (id or reference) a special site?
Parameters:
  site - The site id or reference.
 booleanisUserSite(String site)
     Is this site (id or reference) a user site?
Parameters:
  site - The site id or reference.
 voidjoin(String id)
     Cause the current user to join the site as defined by the site's joinable flag and joiner role.
 Stringmerge(String toSiteId, Element e, String creatorId)
     Merge the site information from the archive into the given site.
Parameters:
  toSiteId - The target site id.
Parameters:
  fromSite - The source site id
Parameters:
  e - The XML DOM tree of content to merge.
Parameters:
  creatorId - The site creator id for target site.
 voidremoveSite(Site site)
     Remove this site's information.
public  booleanremoveSiteAdvisor(SiteAdvisor advisor)
     Removes a SiteAdvisor.
 voidsave(Site site)
     Save any updates to this site - it must be a defined site (the id must exist) and the user must have update permissions.
 voidsaveGroupMembership(Site site)
     Save only site group membership updates to this site - it must be a defined site (the id must exist) and the user must have site group membership update permissions.
 voidsaveSiteInfo(String id, String description, String infoUrl)
    
 voidsaveSiteMembership(Site site)
     Save only site membership updates to this site - it must be a defined site (the id must exist) and the user must have site membership update permissions.
 voidsetSiteSecurity(String siteId, Set updateUsers, Set visitUnpUsers, Set visitUsers)
     Establish the internal security for this site.
 voidsetUserSecurity(String userId, Set updateSites, Set visitUnpSites, Set visitSites)
     Establish the internal security for user for all sites.
 booleansiteExists(String id)
     Is this a valid site id?
Parameters:
  id - The site id string.
 StringsiteGroupReference(String siteId, String groupId)
     Access the internal reference which can be used to access the site group from within the system.
Parameters:
  siteId - The site id.
Parameters:
  groupId - The group id.
 StringsitePageReference(String siteId, String pageId)
     Access the internal reference which can be used to access the site page from within the system.
Parameters:
  siteId - The site id.
Parameters:
  pageId - The page id.
 StringsiteReference(String id)
     Access the internal reference which can be used to access the site from within the system.
Parameters:
  id - The site id.
 StringsiteToolReference(String siteId, String toolId)
     Access the internal reference which can be used to access the site tool from within the system.
Parameters:
  siteId - The site id.
Parameters:
  toolId - The tool id.
 voidunjoin(String id)
     Cause the current user to unjoin the site, removing all role relationships.

Field Detail
APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



GROUP_SUBTYPE
final static String GROUP_SUBTYPE(Code)
The Entity Reference sub-type for Group references.



MAIN_CONTAINER
final static String MAIN_CONTAINER(Code)
The name of the main container for a resource in a site (channel, calendar, etc.).



PAGE_SUBTYPE
final static String PAGE_SUBTYPE(Code)
The Entity Reference sub-type for Page references.



REFERENCE_ROOT
final static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



SECURE_ADD_SITE
final static String SECURE_ADD_SITE(Code)
Name for the event of adding a site.



SECURE_ADD_USER_SITE
final static String SECURE_ADD_USER_SITE(Code)
Name for the event of adding a user's My Workspace site.



SECURE_REMOVE_SITE
final static String SECURE_REMOVE_SITE(Code)
Name for the event of removing a site.



SECURE_UPDATE_GROUP_MEMBERSHIP
final static String SECURE_UPDATE_GROUP_MEMBERSHIP(Code)
Name for the event of updating a site's groups' memberships.



SECURE_UPDATE_SITE
final static String SECURE_UPDATE_SITE(Code)
Name for the event of updating a site.



SECURE_UPDATE_SITE_MEMBERSHIP
final static String SECURE_UPDATE_SITE_MEMBERSHIP(Code)
Name for the event of updating a site's membership.



SECURE_VIEW_ROSTER
final static String SECURE_VIEW_ROSTER(Code)
Name for the event of viewing project site participants.



SITE_ERROR
final static String SITE_ERROR(Code)
The name of a special site that is used if the requested site is not available.



SITE_SUBTYPE
final static String SITE_SUBTYPE(Code)
The Entity Reference sub-type for Site references.



SITE_TEMPLATE
final static String SITE_TEMPLATE(Code)
The name of a special site that is a template for non-user sites.



SITE_VISIT
final static String SITE_VISIT(Code)
Name for the event of visiting a site.



SITE_VISIT_UNPUBLISHED
final static String SITE_VISIT_UNPUBLISHED(Code)
Name for the event of visiting an unpublished site.



TOOL_SUBTYPE
final static String TOOL_SUBTYPE(Code)
The Entity Reference sub-type for Tool references.



URL_ERROR
final static String URL_ERROR(Code)
The name of a special site that is used if the requested url is not understood.



USER_SITE_TEMPLATE
final static String USER_SITE_TEMPLATE(Code)
The name of a special site that is a template for user sites.





Method Detail
addSite
Site addSite(String id, String type) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new site. The site will exist with just an id once done, so remove() it if you don't want to keep it.
Parameters:
  id - The site id.
Parameters:
  type - The site type. The new site object.
exception:
  IdInvalidException - if the site id is invalid.
exception:
  IdUsedException - if the site id is already used.
exception:
  PermissionException - if the current user does not have permission to add a site.



addSite
Site addSite(String id, Site other) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new site. Will be structured just like .
Parameters:
  id - The site id.
Parameters:
  other - The site to make this site a structural copy of. The new site object.
exception:
  IdInvalidException - if the site id is invalid.
exception:
  IdUsedException - if the site id is already used.
exception:
  PermissionException - if the current user does not have permission to add a site.



addSiteAdvisor
public void addSiteAdvisor(SiteAdvisor advisor)(Code)
Registers a SiteAdvisor with the SiteService. Each registered advisor will be called immediately upon a call to save(Site).
Parameters:
  advisor - The SiteAdvisor to add



allowAccessSite
boolean allowAccessSite(String id)(Code)
check permissions for accessing (i.e. visiting) a site
Parameters:
  id - The site id. true if the site is allowed to access the site, false if not.



allowAddSite
boolean allowAddSite(String id)(Code)
check permissions for addSite().
Parameters:
  id - The site id. true if the site is allowed to addSite(id), false if not.



allowRemoveSite
boolean allowRemoveSite(String id)(Code)
check permissions for removeSite().
Parameters:
  id - The site id. true if the site is allowed to removeSite(id), false if not.



allowUnjoinSite
boolean allowUnjoinSite(String id)(Code)
check permissions for unjoin() - unjoining the site and removing all role relationships.
Parameters:
  id - The site id. true if the user is allowed to unjoin(id), false if not.



allowUpdateGroupMembership
boolean allowUpdateGroupMembership(String id)(Code)
check permissions for updating a site's groups' memberships
Parameters:
  id - The site id. true if the site is allowed to update the site's groups' memberships, false if not.



allowUpdateSite
boolean allowUpdateSite(String id)(Code)
check permissions for updating a site
Parameters:
  id - The site id. true if the site is allowed to update the site, false if not.



allowUpdateSiteMembership
boolean allowUpdateSiteMembership(String id)(Code)
check permissions for updating a site's membership
Parameters:
  id - The site id. true if the site is allowed to update the site's membership, false if not.



allowViewRoster
boolean allowViewRoster(String id)(Code)
check permissions for viewing project site participants
Parameters:
  id - The site id. true if the site is allowed to addSite(id), false if not.



countSites
int countSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria)(Code)
Count the Site objets that meet specified criteria.
Parameters:
  type - The SelectionType specifying what sort of selection is intended.
Parameters:
  ofType - Site type criteria: null for any type; a String to match a single type; A String[], List or Set to match any type in the collection.
Parameters:
  criteria - Additional selection criteria: sits returned will match this string somewhere in their id, title, description, or skin.
Parameters:
  propertyCriteria - Additional selection criteria: sites returned will have a property named to match each key in the map, whose values match (somewhere in their value) the value in the map (may be null or empty). The count of Site objets that meet specified criteria.



findGroup
Group findGroup(String refOrId)(Code)
Access a Group object, given a reference string or id.
Parameters:
  refOrId - The group reference or id string. The Group object if found, or null if not.



findPage
SitePage findPage(String id)(Code)
Access the Page that has this id, if one is defined, else return null. The page may be on any Site.
Parameters:
  id - The id of the page. The SitePage that has this id, if one is defined, else return null.



findTool
ToolConfiguration findTool(String id)(Code)
Access the ToolConfiguration that has this id, if one is defined, else return null. The tool may be on any Site and on any SitePage.
Parameters:
  id - The id of the tool. The ToolConfiguration that has this id, if one is defined, else return null.



getLayoutNames
String[] getLayoutNames()(Code)
Get an array of names to match the site page layout options. The array of human readable layout titles possible for any site page.



getSite
Site getSite(String id) throws IdUnusedException(Code)
Access a site object.
Parameters:
  id - The site id string. A site object containing the site information.
exception:
  IdUnusedException - if not found.



getSiteAdvisors
public List<SiteAdvisor> getSiteAdvisors()(Code)
Lists the current SiteAdvisors registered with the SiteService. An unmodifiable List containing the currently registered SiteAdvisors



getSiteDisplay
String getSiteDisplay(String id)(Code)
Form a display of the site title and id for this site.
Parameters:
  id - The site id. A display of the site title and id for this site.



getSiteSkin
String getSiteSkin(String id)(Code)
Compute the skin to use for the (optional) site specified in the id parameter. If no site specified, or if the site has no skin defined, use the configured default skin.
Parameters:
  id - The (optional) site id. A skin to use for this site.



getSiteSpecialId
String getSiteSpecialId(String site)(Code)
Extract the special id for this special site from the site id or reference.
Parameters:
  site - The site id or reference. The special id associated with this site.



getSiteTypes
List getSiteTypes()(Code)
Access a unique list of String site types for any site type defined for any site, sorted by type. A list (String) of all used site types.



getSiteUserId
String getSiteUserId(String site)(Code)
Extract the user id for this user site from the site id or reference.
Parameters:
  site - The site id or reference. The user id associated with this site.



getSiteVisit
Site getSiteVisit(String id) throws IdUnusedException, PermissionException(Code)
Access a site object for purposes of having the user visit the site - visitation permissions are in effect.
Parameters:
  id - The site id string. A site object containing the site information.
exception:
  IdUnusedException - if not found.
exception:
  PermissionException - if the current user does not have permission to visit this site.



getSites
List getSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria, SortType sort, PagingPosition page)(Code)
Access a list of Site objets that meet specified criteria.
Parameters:
  type - The SelectionType specifying what sort of selection is intended.
Parameters:
  ofType - Site type criteria: null for any type; a String to match a single type; A String[], List or Set to match any type in the collection.
Parameters:
  criteria - Additional selection criteria: sites returned will match this string somewhere in their id, title, description, or skin.
Parameters:
  propertyCriteria - Additional selection criteria: sites returned will have a property named to match each key in the map, whose values match (somewhere in their value) the value in the map (may be null or empty).
Parameters:
  sort - A SortType indicating the desired sort. For no sort, set to SortType.NONE.
Parameters:
  page - The PagePosition subset of items to return. The List (Site) of Site objets that meet specified criteria.



getSpecialSiteId
String getSpecialSiteId(String special)(Code)
Form the site id for this special site.
Parameters:
  special - The special id. The site id for this user's site.



getUserSiteId
String getUserSiteId(String userId)(Code)
Form the site id for this user's site.
Parameters:
  userId - The user id. The site id for this user's site.



isSpecialSite
boolean isSpecialSite(String site)(Code)
Is this site (id or reference) a special site?
Parameters:
  site - The site id or reference. true if this is a special site, false if not.



isUserSite
boolean isUserSite(String site)(Code)
Is this site (id or reference) a user site?
Parameters:
  site - The site id or reference. true if this is a user site, false if not.



join
void join(String id) throws IdUnusedException, PermissionException(Code)
Cause the current user to join the site as defined by the site's joinable flag and joiner role.
Parameters:
  id - The site id.
throws:
  IdUnusedException - if the id is not a valid site id.
exception:
  PermissionException - if the current user does not have permission to join this site.
exception:
  InUseException - if the site is otherwise being edited.



merge
String merge(String toSiteId, Element e, String creatorId)(Code)
Merge the site information from the archive into the given site.
Parameters:
  toSiteId - The target site id.
Parameters:
  fromSite - The source site id
Parameters:
  e - The XML DOM tree of content to merge.
Parameters:
  creatorId - The site creator id for target site. A log of status messages from the archive.



removeSite
void removeSite(Site site) throws PermissionException(Code)
Remove this site's information.
Parameters:
  id - The site id.
exception:
  PermissionException - if the current user does not have permission to remove this site.



removeSiteAdvisor
public boolean removeSiteAdvisor(SiteAdvisor advisor)(Code)
Removes a SiteAdvisor.
Parameters:
  advisor - The SiteAdvisor to remove Whether the SiteAdvisor was previously registered and hence removed.



save
void save(Site site) throws IdUnusedException, PermissionException(Code)
Save any updates to this site - it must be a defined site (the id must exist) and the user must have update permissions.
Parameters:
  site - The site, modified, to save.
throws:
  IdUnusedException - If the site's id is not a defined site id.
throws:
  PermissionException - If the end user does not have permission to update the site.



saveGroupMembership
void saveGroupMembership(Site site) throws IdUnusedException, PermissionException(Code)
Save only site group membership updates to this site - it must be a defined site (the id must exist) and the user must have site group membership update permissions.
Parameters:
  site - The site, modified, to save.
throws:
  IdUnusedException - If the site's id is not a defined site id.
throws:
  PermissionException - If the end user does not have permission to update the membership of the site.



saveSiteInfo
void saveSiteInfo(String id, String description, String infoUrl) throws IdUnusedException, PermissionException(Code)
Save a site's information display fields: description and info url
Parameters:
  id - The site id to update.
Parameters:
  description - The updated description.
Parameters:
  infoUrl - The updated infoUrl
throws:
  IdUnusedException - If the site's id is not a defined site id.
throws:
  PermissionException - If the end user does not have permission to update the site.



saveSiteMembership
void saveSiteMembership(Site site) throws IdUnusedException, PermissionException(Code)
Save only site membership updates to this site - it must be a defined site (the id must exist) and the user must have site membership update permissions.
Parameters:
  site - The site, modified, to save.
throws:
  IdUnusedException - If the site's id is not a defined site id.
throws:
  PermissionException - If the end user does not have permission to update the membership of the site.



setSiteSecurity
void setSiteSecurity(String siteId, Set updateUsers, Set visitUnpUsers, Set visitUsers)(Code)
Establish the internal security for this site. Previous security settings are replaced for this site. Assigning a user with update implies the two reads; assigning a user with unp read implies the other read.
Parameters:
  siteId - The id of the site.
Parameters:
  updateUsers - The set of String User Ids who have update access.
Parameters:
  visitUnpUsers - The set of String User Ids who have visit unpublished access.
Parameters:
  visitUsers - The set of String User Ids who have visit access.



setUserSecurity
void setUserSecurity(String userId, Set updateSites, Set visitUnpSites, Set visitSites)(Code)
Establish the internal security for user for all sites. Previous security settings are replaced for this user. Assigning a user with update implies the two reads; assigning a user with unp read implies the other read.
Parameters:
  userId - The id of the user.
Parameters:
  updateSites - The set of String site ids where the user has update access.
Parameters:
  visitUnpSites - The set of String site ids where the user has visit unpublished access.
Parameters:
  visitSites - The set of String site ids where the user has visit access.



siteExists
boolean siteExists(String id)(Code)
Is this a valid site id?
Parameters:
  id - The site id string. True if a site with this id is defined, false if not.



siteGroupReference
String siteGroupReference(String siteId, String groupId)(Code)
Access the internal reference which can be used to access the site group from within the system.
Parameters:
  siteId - The site id.
Parameters:
  groupId - The group id. The the internal reference which can be used to access the site group from within the system.



sitePageReference
String sitePageReference(String siteId, String pageId)(Code)
Access the internal reference which can be used to access the site page from within the system.
Parameters:
  siteId - The site id.
Parameters:
  pageId - The page id. The the internal reference which can be used to access the site page from within the system.



siteReference
String siteReference(String id)(Code)
Access the internal reference which can be used to access the site from within the system.
Parameters:
  id - The site id. The the internal reference which can be used to access the site from within the system.



siteToolReference
String siteToolReference(String siteId, String toolId)(Code)
Access the internal reference which can be used to access the site tool from within the system.
Parameters:
  siteId - The site id.
Parameters:
  toolId - The tool id. The the internal reference which can be used to access the site tool from within the system.



unjoin
void unjoin(String id) throws IdUnusedException, PermissionException(Code)
Cause the current user to unjoin the site, removing all role relationships.
Parameters:
  id - The site id.
throws:
  IdUnusedException - if the id is not a valid site id.
exception:
  PermissionException - if the current user does not have permission to unjoin this site.
exception:
  InUseException - if the site is otherwise being edited.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.