Java Doc for BaseSiteService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » site » impl » 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.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.site.impl.BaseSiteService

All known Subclasses:   org.sakaiproject.site.impl.DbSiteService,
BaseSiteService
abstract public class BaseSiteService implements SiteService,StorageUser(Code)

BaseSiteService is a base implementation of the SiteService.


Inner Class :protected interface Storage

Field Summary
protected  intm_cacheCleanerSeconds
     The # seconds to cache gets.
protected  intm_cacheSeconds
     The # seconds to cache the site queries.
protected  booleanm_regenerateIds
     If true, run the regenerate ids pass on all sites at startup.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  SiteCacheImplm_siteCache
     A site cache.
protected  Storagem_storage
     Storage manager for this service.
static  ResourceBundlerb
    
protected  List<SiteAdvisor>siteAdvisors
    


Method Summary
protected  voidaddLiveProperties(BaseSite site)
     Create the live properties for the site.
protected  voidaddLiveUpdateProperties(BaseSite site)
     Update the live properties for a site for when modified.
public  SiteaddSite(String id, String type)
    
public  SiteaddSite(String id, Site other)
    
public  voidaddSiteAdvisor(SiteAdvisor siteAdvisor)
    
protected  StringadjustSkin(String skin, boolean published)
     Adjust a skin value to be just a (folder) name, with no extension, and if missing, be null.
Parameters:
  skin - The skin value to adjust.
public  booleanallowAccessSite(String id)
    
public  booleanallowAddSite(String id)
    
public  booleanallowRemoveSite(String id)
    
public  booleanallowUnjoinSite(String id)
    
public  booleanallowUpdateGroupMembership(String id)
    
public  booleanallowUpdateSite(String id)
    
public  booleanallowUpdateSiteMembership(String id)
    
public  booleanallowViewRoster(String id)
    
public  Stringarchive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
    
abstract protected  AuthzGroupServiceauthzGroupService()
    
protected  StringconvertReferenceUrl(String url)
    
public  intcountSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria)
    
public  voiddestroy()
     Returns to uninitialized state.
protected  voiddisableAuthorizationGroup(String ref)
     Remove a site's realm.
protected  voiddisableAzg(Site site)
     Disable the site and site group azgs for a site that's being deleted.
protected  voiddisableRelated(Site site)
     Sync up with all other services for a site that is going away.
protected  voiddoSave(BaseSite site, boolean isNew)
     Comlete the save process.
protected  voidenableAuthorizationGroup(String ref, String templateId, String userId, String fallbackTemplate)
     Setup the realm for an active site.
protected  voidenableAzg(BaseSite site)
     Enable the site and site group AuthzGroups.
protected  voidenableAzgSecurityAdvisor()
     Establish a security advisor to allow the "embedded" azg work to occur with no need for additional security permissions.
protected  voidenableRelated(BaseSite site, boolean isNew)
     Sync up with all other services for a site that exists.
protected  voidenforceGroupSubMembership(String siteId)
     Adjust any site groups for this site so that the group membership is a subset of the site's membership.
abstract protected  EntityManagerentityManager()
    
abstract protected  EventTrackingServiceeventTrackingService()
    
public  GroupfindGroup(String refOrId)
    
public  SitePagefindPage(String id)
    
public  ToolConfigurationfindTool(String id)
    
abstract protected  FunctionManagerfunctionManager()
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
public  TimegetDate(Entity r)
     Access the resource date.
Parameters:
  r - The resource.
protected  SitegetDefinedSite(String id)
     Access an already defined site object.
Parameters:
  id - The site id string.
public  EntitygetEntity(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref, String userId)
    
public  StringgetEntityDescription(Reference ref)
    
public  ResourcePropertiesgetEntityResourceProperties(Reference ref)
    
public  StringgetEntityUrl(Reference ref)
    
public  HttpAccessgetHttpAccess()
    
public  StringgetLabel()
    
public  String[]getLayoutNames()
    
public  StringgetOwnerId(Entity r)
     Access the resource owner user id.
Parameters:
  r - The resource.
public  SitegetSite(String id)
    
public  List<SiteAdvisor>getSiteAdvisors()
    
public  StringgetSiteDisplay(String id)
    
public  StringgetSiteSkin(String id)
    
public  StringgetSiteSpecialId(String site)
    
public  ListgetSiteTypes()
    
public  StringgetSiteUserId(String site)
    
public  SitegetSiteVisit(String id)
    
public  ListgetSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria, SortType sort, PagingPosition page)
    
public  StringgetSpecialSiteId(String special)
    
public  StringgetUserSiteId(String userId)
    
protected  StringgroupAzgTemplate(Site site)
     Figure the authorization group template for a group of this site, based on type and if it's a user site.
Parameters:
  site - The site to figure the authorization group templates for.
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisDraft(Entity r)
     Check if this resource is in draft mode.
Parameters:
  r - The resource.
public  booleanisSpecialSite(String site)
    
public  booleanisUserSite(String site)
    
public  voidjoin(String id)
    
abstract protected  MemoryServicememoryService()
    
public  Stringmerge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
    
public  Stringmerge(String siteId, Element el, String creatorId)
    
public  EntitynewContainer(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EntitynewContainer(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EntitynewContainer(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EditnewContainerEdit(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EditnewContainerEdit(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EditnewContainerEdit(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EntitynewResource(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EntitynewResource(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EntitynewResource(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
public  EditnewResourceEdit(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EditnewResourceEdit(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EditnewResourceEdit(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
abstract protected  StoragenewStorage()
     Construct storage for this service.
public  booleanparseEntityReference(String reference, Reference ref)
    
protected  voidregenerateAllSiteIds()
     Regenerate the page and tool ids for all sites.
public  voidremoveSite(Site site)
    
public  booleanremoveSiteAdvisor(SiteAdvisor siteAdvisor)
    
public  voidsave(Site site)
    
protected  voidsaveGroupAzgs(Site site)
     Save group azgs that are modified.
public  voidsaveGroupMembership(Site site)
    
protected  voidsaveSiteAzg(Site site)
     Save the site's azg if modified.
public  voidsaveSiteInfo(String id, String description, String infoUrl)
    
public  voidsaveSiteMembership(Site site)
    
abstract protected  SecurityServicesecurityService()
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
abstract protected  SessionManagersessionManager()
    
public  voidsetCacheCleanerMinutes(String time)
     Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings.
public  voidsetCacheMinutes(String time)
     Set the # minutes to cache the site queries.
public  voidsetRegenerateIds(String value)
     Configuration: regenerate all site;'s page and tool ids to assure uniqueness.
public  voidsetSiteSecurity(String siteId, Set updateUsers, Set visitUnpUsers, Set visitUsers)
    
public  voidsetUserSecurity(String userId, Set updateSites, Set visitUnpSites, Set visitSites)
    
protected  StringsiteAzgTemplate(Site site)
     Figure the site's authorization group template, based on type and if it's a user site.
Parameters:
  site - The site to figure the realm for.
public  booleansiteExists(String id)
    
public  StringsiteGroupReference(String siteId, String groupId)
    
protected  StringsiteId(String ref)
     Access the site id extracted from a site reference.
Parameters:
  ref - The site reference string.
public  StringsitePageReference(String siteId, String pageId)
    
public  StringsiteReference(String id)
    
public  StringsiteToolReference(String siteId, String toolId)
    
public  Object[]storageFields(Entity r)
     Collect the fields that need to be stored outside the XML (for the resource).
abstract protected  ThreadLocalManagerthreadLocalManager()
    
abstract protected  TimeServicetimeService()
    
public  voidunjoin(String id)
    
protected  voidunlock(String lock, String resource)
     Check security permission.
protected  voidunlock2(String lock1, String lock2, String resource)
     Check security permission.
protected  booleanunlockCheck(String lock, String resource)
     Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  booleanunlockCheck2(String lock1, String lock2, String resource)
     Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
abstract protected  UserDirectoryServiceuserDirectoryService()
    
public  booleanwillArchiveMerge()
    

Field Detail
m_cacheCleanerSeconds
protected int m_cacheCleanerSeconds(Code)
The # seconds to cache gets. 0 disables the cache.



m_cacheSeconds
protected int m_cacheSeconds(Code)
The # seconds to cache the site queries. 0 disables the cache.



m_regenerateIds
protected boolean m_regenerateIds(Code)
If true, run the regenerate ids pass on all sites at startup.



m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
The initial portion of a relative access point URL.



m_siteCache
protected SiteCacheImpl m_siteCache(Code)
A site cache.



m_storage
protected Storage m_storage(Code)
Storage manager for this service.



rb
static ResourceBundle rb(Code)
The layouts in human readable form (localized)



siteAdvisors
protected List<SiteAdvisor> siteAdvisors(Code)
A list of observers watching site save events *





Method Detail
addLiveProperties
protected void addLiveProperties(BaseSite site)(Code)
Create the live properties for the site.



addLiveUpdateProperties
protected void addLiveUpdateProperties(BaseSite site)(Code)
Update the live properties for a site for when modified.



addSite
public Site addSite(String id, String type) throws IdInvalidException, IdUsedException, PermissionException(Code)



addSite
public Site addSite(String id, Site other) throws IdInvalidException, IdUsedException, PermissionException(Code)



addSiteAdvisor
public void addSiteAdvisor(SiteAdvisor siteAdvisor)(Code)



adjustSkin
protected String adjustSkin(String skin, boolean published)(Code)
Adjust a skin value to be just a (folder) name, with no extension, and if missing, be null.
Parameters:
  skin - The skin value to adjust. A defaulted and adjusted skin value.



allowAccessSite
public boolean allowAccessSite(String id)(Code)



allowAddSite
public boolean allowAddSite(String id)(Code)



allowRemoveSite
public boolean allowRemoveSite(String id)(Code)



allowUnjoinSite
public boolean allowUnjoinSite(String id)(Code)



allowUpdateGroupMembership
public boolean allowUpdateGroupMembership(String id)(Code)



allowUpdateSite
public boolean allowUpdateSite(String id)(Code)



allowUpdateSiteMembership
public boolean allowUpdateSiteMembership(String id)(Code)



allowViewRoster
public boolean allowViewRoster(String id)(Code)



archive
public String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)(Code)



authzGroupService
abstract protected AuthzGroupService authzGroupService()(Code)
the AuthzGroupService collaborator.



convertReferenceUrl
protected String convertReferenceUrl(String url)(Code)
Return the url unchanged, unless it's a reference, then return the reference url



countSites
public int countSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria)(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state.



disableAuthorizationGroup
protected void disableAuthorizationGroup(String ref)(Code)
Remove a site's realm.
Parameters:
  site - The site.



disableAzg
protected void disableAzg(Site site)(Code)
Disable the site and site group azgs for a site that's being deleted.
Parameters:
  site - The site.



disableRelated
protected void disableRelated(Site site)(Code)
Sync up with all other services for a site that is going away.
Parameters:
  site - The site.



doSave
protected void doSave(BaseSite site, boolean isNew)(Code)
Comlete the save process.
Parameters:
  site - The site to save.



enableAuthorizationGroup
protected void enableAuthorizationGroup(String ref, String templateId, String userId, String fallbackTemplate)(Code)
Setup the realm for an active site.
Parameters:
  ref - The reference for which the realm will be created (site, user).
Parameters:
  templateId - The realm id of a template to use for the new realm.
Parameters:
  userId - The user to get maintain in this realm.



enableAzg
protected void enableAzg(BaseSite site)(Code)
Enable the site and site group AuthzGroups.
Parameters:
  site - The site.



enableAzgSecurityAdvisor
protected void enableAzgSecurityAdvisor()(Code)
Establish a security advisor to allow the "embedded" azg work to occur with no need for additional security permissions.



enableRelated
protected void enableRelated(BaseSite site, boolean isNew)(Code)
Sync up with all other services for a site that exists.
Parameters:
  site - The site.



enforceGroupSubMembership
protected void enforceGroupSubMembership(String siteId)(Code)
Adjust any site groups for this site so that the group membership is a subset of the site's membership.
Parameters:
  siteId - The site to adjust.



entityManager
abstract protected EntityManager entityManager()(Code)
the EntityManager collaborator.



eventTrackingService
abstract protected EventTrackingService eventTrackingService()(Code)
the EventTrackingService collaborator.



findGroup
public Group findGroup(String refOrId)(Code)



findPage
public SitePage findPage(String id)(Code)



findTool
public ToolConfiguration findTool(String id)(Code)



functionManager
abstract protected FunctionManager functionManager()(Code)
the FunctionManager collaborator.



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /content) the partial URL that forms the root of resource URLs.



getDate
public Time getDate(Entity r)(Code)
Access the resource date.
Parameters:
  r - The resource. The resource date.



getDefinedSite
protected Site getDefinedSite(String id) throws IdUnusedException(Code)
Access an already defined site object.
Parameters:
  id - The site id string. A site object containing the site information
exception:
  IdUnusedException - if not found



getEntity
public Entity getEntity(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)



getEntityDescription
public String getEntityDescription(Reference ref)(Code)



getEntityResourceProperties
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)



getEntityUrl
public String getEntityUrl(Reference ref)(Code)



getHttpAccess
public HttpAccess getHttpAccess()(Code)



getLabel
public String getLabel()(Code)



getLayoutNames
public String[] getLayoutNames()(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)
Access the resource owner user id.
Parameters:
  r - The resource. The resource owner user id.



getSite
public Site getSite(String id) throws IdUnusedException(Code)



getSiteAdvisors
public List<SiteAdvisor> getSiteAdvisors()(Code)



getSiteDisplay
public String getSiteDisplay(String id)(Code)



getSiteSkin
public String getSiteSkin(String id)(Code)



getSiteSpecialId
public String getSiteSpecialId(String site)(Code)



getSiteTypes
public List getSiteTypes()(Code)



getSiteUserId
public String getSiteUserId(String site)(Code)



getSiteVisit
public Site getSiteVisit(String id) throws IdUnusedException, PermissionException(Code)



getSites
public List getSites(SelectionType type, Object ofType, String criteria, Map propertyCriteria, SortType sort, PagingPosition page)(Code)



getSpecialSiteId
public String getSpecialSiteId(String special)(Code)



getUserSiteId
public String getUserSiteId(String userId)(Code)



groupAzgTemplate
protected String groupAzgTemplate(Site site)(Code)
Figure the authorization group template for a group of this site, based on type and if it's a user site.
Parameters:
  site - The site to figure the authorization group templates for. the authorization group template for a group of this site, based on type and if it's a user site.



init
public void init()(Code)
Final initialization, once all dependencies are set.



isDraft
public boolean isDraft(Entity r)(Code)
Check if this resource is in draft mode.
Parameters:
  r - The resource. true if the resource is in draft mode, false if not.



isSpecialSite
public boolean isSpecialSite(String site)(Code)



isUserSite
public boolean isUserSite(String site)(Code)



join
public void join(String id) throws IdUnusedException, PermissionException(Code)



memoryService
abstract protected MemoryService memoryService()(Code)
the MemoryService collaborator.



merge
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(Code)



merge
public String merge(String siteId, Element el, String creatorId)(Code)



newContainer
public Entity newContainer(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainer
public Entity newContainer(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainer
public Entity newContainer(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newContainerEdit
public Edit newContainerEdit(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainerEdit
public Edit newContainerEdit(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResource
public Entity newResource(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResource
public Entity newResource(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newStorage
abstract protected Storage newStorage()(Code)
Construct storage for this service.



parseEntityReference
public boolean parseEntityReference(String reference, Reference ref)(Code)



regenerateAllSiteIds
protected void regenerateAllSiteIds()(Code)
Regenerate the page and tool ids for all sites.



removeSite
public void removeSite(Site site) throws PermissionException(Code)



removeSiteAdvisor
public boolean removeSiteAdvisor(SiteAdvisor siteAdvisor)(Code)



save
public void save(Site site) throws IdUnusedException, PermissionException(Code)



saveGroupAzgs
protected void saveGroupAzgs(Site site)(Code)
Save group azgs that are modified.
Parameters:
  site - The site to save.



saveGroupMembership
public void saveGroupMembership(Site site) throws IdUnusedException, PermissionException(Code)



saveSiteAzg
protected void saveSiteAzg(Site site)(Code)
Save the site's azg if modified.
Parameters:
  site - The site to save.



saveSiteInfo
public void saveSiteInfo(String id, String description, String infoUrl) throws IdUnusedException, PermissionException(Code)



saveSiteMembership
public void saveSiteMembership(Site site) throws IdUnusedException, PermissionException(Code)



securityService
abstract protected SecurityService securityService()(Code)
the SecurityService collaborator.



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



sessionManager
abstract protected SessionManager sessionManager()(Code)
the SessionManager collaborator.



setCacheCleanerMinutes
public void setCacheCleanerMinutes(String time)(Code)
Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings. (as an integer string).



setCacheMinutes
public void setCacheMinutes(String time)(Code)
Set the # minutes to cache the site queries.
Parameters:
  time - The # minutes to cache the site queries (as an integer string).



setRegenerateIds
public void setRegenerateIds(String value)(Code)
Configuration: regenerate all site;'s page and tool ids to assure uniqueness.
Parameters:
  value - The regenerate ids value



setSiteSecurity
public void setSiteSecurity(String siteId, Set updateUsers, Set visitUnpUsers, Set visitUsers)(Code)



setUserSecurity
public void setUserSecurity(String userId, Set updateSites, Set visitUnpSites, Set visitSites)(Code)



siteAzgTemplate
protected String siteAzgTemplate(Site site)(Code)
Figure the site's authorization group template, based on type and if it's a user site.
Parameters:
  site - The site to figure the realm for. the site's authorization group template, based on type and if it's a user site.



siteExists
public boolean siteExists(String id)(Code)



siteGroupReference
public String siteGroupReference(String siteId, String groupId)(Code)



siteId
protected String siteId(String ref)(Code)
Access the site id extracted from a site reference.
Parameters:
  ref - The site reference string. The the site id extracted from a site reference.



sitePageReference
public String sitePageReference(String siteId, String pageId)(Code)



siteReference
public String siteReference(String id)(Code)



siteToolReference
public String siteToolReference(String siteId, String toolId)(Code)



storageFields
public Object[] storageFields(Entity r)(Code)
Collect the fields that need to be stored outside the XML (for the resource). An array of field values to store in the record outside the XML (for the resource).



threadLocalManager
abstract protected ThreadLocalManager threadLocalManager()(Code)
the ThreadLocalManager collaborator.



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



unjoin
public void unjoin(String id) throws IdUnusedException, PermissionException(Code)



unlock
protected void unlock(String lock, String resource) throws PermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  PermissionException - Thrown if the user does not have access



unlock2
protected void unlock2(String lock1, String lock2, String resource) throws PermissionException(Code)
Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  PermissionException - Thrown if the user does not have access to either.



unlockCheck
protected boolean unlockCheck(String lock, String resource)(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if allowd, false if not



unlockCheck2
protected boolean unlockCheck2(String lock1, String lock2, String resource)(Code)
Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if either allowed, false if not



userDirectoryService
abstract protected UserDirectoryService userDirectoryService()(Code)
the UserDirectoryService collaborator.



willArchiveMerge
public boolean willArchiveMerge()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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