public class PodcastPermissionsServiceImpl extends Object implements PodcastPermissionsService
ALL_GROUPS_PERMISSIONS, DELETE_ANY_PERMISSIONS, DELETE_OWN_PERMISSIONS, HIDDEN_PERMISSIONS, NEW_PERMISSIONS, READ_PERMISSIONS, REVISE_ANY_PERMISSIONS, REVISE_OWN_PERMISSIONS, UPDATE_PERMISSIONS| Constructor and Description |
|---|
PodcastPermissionsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccess(String id)
Determines if authenticated user has 'read' access to podcast collection folder
|
boolean |
canAccessViaGroups(Collection groups,
String siteId)
Determine if current user can access this group restricted entity
|
boolean |
canUpdateSite()
Determine whether user and update the site
|
boolean |
canUpdateSite(String siteId)
Determine whether user and update the site
|
boolean |
hasPerm(String function,
String resourceId)
Returns TRUE if current user has function (permission) passed in or site.upd, FALSE otherwise.
|
boolean |
hasPerm(String function,
String resourceId,
String siteId)
Returns TRUE if current user has function (permission) passed in or site.upd, FALSE otherwise.
|
void |
init() |
boolean |
isGrouped(GroupAwareEntity entity)
Determine if this entity has been restricted to specific group(s)
|
boolean |
isResourceHidden(ContentEntity podcastResource,
Date tempDate) |
void |
setContentHostingService(ContentHostingService contentHostingService) |
void |
setSecurityService(SecurityService securityService) |
void |
setSessionManager(SessionManager sessionManager) |
void |
setSiteService(SiteService siteService) |
void |
setTimeService(TimeService timeService) |
void |
setToolManager(ToolManager toolManager) |
public void setContentHostingService(ContentHostingService contentHostingService)
public void setSecurityService(SecurityService securityService)
public void setToolManager(ToolManager toolManager)
public void setSessionManager(SessionManager sessionManager)
public void setTimeService(TimeService timeService)
public void setSiteService(SiteService siteService)
public void init()
public boolean allowAccess(String id)
allowAccess in interface PodcastPermissionsServiceid - The id for the podcast collection folderpublic boolean canUpdateSite()
canUpdateSite in interface PodcastPermissionsServicesiteId - The siteId for the site to testpublic boolean canUpdateSite(String siteId)
canUpdateSite in interface PodcastPermissionsServicesiteId - The siteId for the site to testpublic boolean hasPerm(String function, String resourceId)
hasPerm in interface PodcastPermissionsServicepublic boolean hasPerm(String function, String resourceId, String siteId)
hasPerm in interface PodcastPermissionsServicepublic boolean isGrouped(GroupAwareEntity entity)
isGrouped in interface PodcastPermissionsServicepublic boolean canAccessViaGroups(Collection groups, String siteId)
canAccessViaGroups in interface PodcastPermissionsServicepublic boolean isResourceHidden(ContentEntity podcastResource, Date tempDate)
isResourceHidden in interface PodcastPermissionsServiceCopyright © 2004–2017 Sakai Project. All rights reserved.