org.sakaiproject.delegatedaccess.logic
Class SakaiProxyImpl

java.lang.Object
  extended by org.sakaiproject.delegatedaccess.logic.SakaiProxyImpl
All Implemented Interfaces:
SakaiProxy

public class SakaiProxyImpl
extends Object
implements SakaiProxy

Implementation of our SakaiProxy API

Author:
Bryan Holladay (holladay@longsight.com)

Constructor Summary
SakaiProxyImpl()
           
 
Method Summary
 org.sakaiproject.authz.api.SecurityAdvisor addSiteUpdateSecurityAdvisor()
           
 void copyNewRole(String siteRef, String copyRealm, String copyRole, String newRole)
          
 List<org.sakaiproject.site.api.Site> getAllSites()
          
 List<org.sakaiproject.site.api.Site> getAllSitesByPages(Map<String,String> propsMap, int page, int pageMax, boolean orderByModifiedDate)
          
 Set<org.sakaiproject.tool.api.Tool> getAllTools()
           
 org.sakaiproject.authz.api.AuthzGroup getAuthzGroup(String siteId)
          
 org.sakaiproject.tool.api.Session getCurrentSession()
          
 String getCurrentUserId()
          
 Map<String,List<String>> getDelegatedAccessRealmOptions()
           
 boolean getDisableShoppingTreeView()
           
 boolean getDisableUserTreeView()
           
 String[] getHideRolesForInstructorViewAccess()
           
 String[] getHomeTools()
           
 List<org.sakaiproject.user.api.User> getInstructorsForSite(String siteId)
           
 String getRootName()
          
 String[] getServerConfigurationStrings(String property)
          
 Map<String,List<String>> getShoppingRealmOptions()
           
 org.sakaiproject.site.api.Site getSiteById(String siteId)
          
 org.sakaiproject.site.api.Site getSiteByRef(String siteRef)
          
 List<org.sakaiproject.site.api.Site> getSites(org.sakaiproject.site.api.SiteService.SelectionType type, String search, Map<String,String> propsMap)
           
 Map<String,List<String>> getSiteTemplates()
          
 String getSkinRepoProperty()
          
 String[] getSubAdminOrderedRealmRoles()
           
 boolean getSyncMyworkspaceTool()
           
 String getTermField()
           
 List<String[]> getTerms()
           
 org.sakaiproject.tool.api.Tool getTool(String toolId)
           
 String getToolSkinCSS(String skinRepo)
          
 org.sakaiproject.user.api.User getUser(String id)
          
 Set<String> getUserMembershipForCurrentUser()
           
 void init()
          init - perform any actions required here for when this bean starts up
 boolean isActiveSiteFlagEnabled()
          DAC-40 Highlight Inactive Courses in site search requires the job "InactiveCoursesJob" attached in the jira
 boolean isShoppingPeriodInstructorEditable()
           
 boolean isShoppingTool()
           
 boolean isSuperUser()
          
 boolean isUserInstructor(String userId, String siteId)
           
 Map<String,String> isUserMember(String userId, Collection<String> siteRefs)
           
 boolean isUserMember(String userId, String siteRef)
           
 void popSecurityAdvisor(org.sakaiproject.authz.api.SecurityAdvisor advisor)
           
 void postEvent(String event, String reference, boolean modify)
          
 void refreshCurrentUserAuthz()
          
 void removeRoleFromAuthzGroup(org.sakaiproject.authz.api.AuthzGroup group, org.sakaiproject.authz.api.Role role)
          
 void saveSite(org.sakaiproject.site.api.Site site)
          
 List<org.sakaiproject.user.api.User> searchUsers(String search)
          
 void sendEmail(String subject, String body)
           
 void setSessionUserId(String userId)
           
 int showLatestXTerms()
           
 boolean useCourseManagementApiForTerms()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SakaiProxyImpl

public SakaiProxyImpl()
Method Detail

init

public void init()
init - perform any actions required here for when this bean starts up


getCurrentUserId

public String getCurrentUserId()

Specified by:
getCurrentUserId in interface SakaiProxy

isSuperUser

public boolean isSuperUser()

Specified by:
isSuperUser in interface SakaiProxy

getCurrentSession

public org.sakaiproject.tool.api.Session getCurrentSession()

Specified by:
getCurrentSession in interface SakaiProxy

getAllSites

public List<org.sakaiproject.site.api.Site> getAllSites()

Specified by:
getAllSites in interface SakaiProxy

getAllSitesByPages

public List<org.sakaiproject.site.api.Site> getAllSitesByPages(Map<String,String> propsMap,
                                                               int page,
                                                               int pageMax,
                                                               boolean orderByModifiedDate)

Specified by:
getAllSitesByPages in interface SakaiProxy

postEvent

public void postEvent(String event,
                      String reference,
                      boolean modify)

Specified by:
postEvent in interface SakaiProxy

getAllTools

public Set<org.sakaiproject.tool.api.Tool> getAllTools()
Specified by:
getAllTools in interface SakaiProxy

getTool

public org.sakaiproject.tool.api.Tool getTool(String toolId)
Specified by:
getTool in interface SakaiProxy

getHomeTools

public String[] getHomeTools()
Specified by:
getHomeTools in interface SakaiProxy

getSkinRepoProperty

public String getSkinRepoProperty()

Specified by:
getSkinRepoProperty in interface SakaiProxy

getToolSkinCSS

public String getToolSkinCSS(String skinRepo)

Specified by:
getToolSkinCSS in interface SakaiProxy

searchUsers

public List<org.sakaiproject.user.api.User> searchUsers(String search)

Specified by:
searchUsers in interface SakaiProxy

getUser

public org.sakaiproject.user.api.User getUser(String id)

Specified by:
getUser in interface SakaiProxy

getSiteByRef

public org.sakaiproject.site.api.Site getSiteByRef(String siteRef)

Specified by:
getSiteByRef in interface SakaiProxy

getSiteById

public org.sakaiproject.site.api.Site getSiteById(String siteId)

Specified by:
getSiteById in interface SakaiProxy

saveSite

public void saveSite(org.sakaiproject.site.api.Site site)

Specified by:
saveSite in interface SakaiProxy

getRootName

public String getRootName()

Specified by:
getRootName in interface SakaiProxy

getServerConfigurationStrings

public String[] getServerConfigurationStrings(String property)

Specified by:
getServerConfigurationStrings in interface SakaiProxy

getSiteTemplates

public Map<String,List<String>> getSiteTemplates()


getShoppingRealmOptions

public Map<String,List<String>> getShoppingRealmOptions()
Specified by:
getShoppingRealmOptions in interface SakaiProxy

getDelegatedAccessRealmOptions

public Map<String,List<String>> getDelegatedAccessRealmOptions()
Specified by:
getDelegatedAccessRealmOptions in interface SakaiProxy

refreshCurrentUserAuthz

public void refreshCurrentUserAuthz()

Specified by:
refreshCurrentUserAuthz in interface SakaiProxy

getUserMembershipForCurrentUser

public Set<String> getUserMembershipForCurrentUser()
Specified by:
getUserMembershipForCurrentUser in interface SakaiProxy

getSites

public List<org.sakaiproject.site.api.Site> getSites(org.sakaiproject.site.api.SiteService.SelectionType type,
                                                     String search,
                                                     Map<String,String> propsMap)
Specified by:
getSites in interface SakaiProxy

isShoppingTool

public boolean isShoppingTool()
Specified by:
isShoppingTool in interface SakaiProxy

getAuthzGroup

public org.sakaiproject.authz.api.AuthzGroup getAuthzGroup(String siteId)

Specified by:
getAuthzGroup in interface SakaiProxy

removeRoleFromAuthzGroup

public void removeRoleFromAuthzGroup(org.sakaiproject.authz.api.AuthzGroup group,
                                     org.sakaiproject.authz.api.Role role)

Specified by:
removeRoleFromAuthzGroup in interface SakaiProxy

copyNewRole

public void copyNewRole(String siteRef,
                        String copyRealm,
                        String copyRole,
                        String newRole)

Specified by:
copyNewRole in interface SakaiProxy

addSiteUpdateSecurityAdvisor

public org.sakaiproject.authz.api.SecurityAdvisor addSiteUpdateSecurityAdvisor()
Specified by:
addSiteUpdateSecurityAdvisor in interface SakaiProxy

popSecurityAdvisor

public void popSecurityAdvisor(org.sakaiproject.authz.api.SecurityAdvisor advisor)
Specified by:
popSecurityAdvisor in interface SakaiProxy

getTermField

public String getTermField()
Specified by:
getTermField in interface SakaiProxy

useCourseManagementApiForTerms

public boolean useCourseManagementApiForTerms()
Specified by:
useCourseManagementApiForTerms in interface SakaiProxy

showLatestXTerms

public int showLatestXTerms()

getTerms

public List<String[]> getTerms()
Specified by:
getTerms in interface SakaiProxy

sendEmail

public void sendEmail(String subject,
                      String body)
Specified by:
sendEmail in interface SakaiProxy

getDisableUserTreeView

public boolean getDisableUserTreeView()
Specified by:
getDisableUserTreeView in interface SakaiProxy

getDisableShoppingTreeView

public boolean getDisableShoppingTreeView()
Specified by:
getDisableShoppingTreeView in interface SakaiProxy

isUserInstructor

public boolean isUserInstructor(String userId,
                                String siteId)
Specified by:
isUserInstructor in interface SakaiProxy

getInstructorsForSite

public List<org.sakaiproject.user.api.User> getInstructorsForSite(String siteId)
Specified by:
getInstructorsForSite in interface SakaiProxy

isUserMember

public boolean isUserMember(String userId,
                            String siteRef)
Specified by:
isUserMember in interface SakaiProxy

isUserMember

public Map<String,String> isUserMember(String userId,
                                       Collection<String> siteRefs)
Specified by:
isUserMember in interface SakaiProxy

isShoppingPeriodInstructorEditable

public boolean isShoppingPeriodInstructorEditable()
Specified by:
isShoppingPeriodInstructorEditable in interface SakaiProxy

getSyncMyworkspaceTool

public boolean getSyncMyworkspaceTool()
Specified by:
getSyncMyworkspaceTool in interface SakaiProxy

getHideRolesForInstructorViewAccess

public String[] getHideRolesForInstructorViewAccess()
Specified by:
getHideRolesForInstructorViewAccess in interface SakaiProxy

getSubAdminOrderedRealmRoles

public String[] getSubAdminOrderedRealmRoles()
Specified by:
getSubAdminOrderedRealmRoles in interface SakaiProxy

isActiveSiteFlagEnabled

public boolean isActiveSiteFlagEnabled()
DAC-40 Highlight Inactive Courses in site search requires the job "InactiveCoursesJob" attached in the jira

Specified by:
isActiveSiteFlagEnabled in interface SakaiProxy

setSessionUserId

public void setSessionUserId(String userId)
Specified by:
setSessionUserId in interface SakaiProxy


Copyright © 2003-2012 Sakai Project. All Rights Reserved.