com.sun.im.provider
Interface PolicyProvider
- public interface PolicyProvider
Does policy evaluation regardless of Policy store used
canSendAlerts
public boolean canSendAlerts(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can send alerts
canChat
public boolean canChat(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can use the chat feature
canAccessConferenceRooms
public boolean canAccessConferenceRooms(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can access conference rooms
canManageConferenceRooms
public boolean canManageConferenceRooms(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can manage conference rooms
canModerate
public boolean canModerate(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can moderate conference rooms
canReceiveAlerts
public boolean canReceiveAlerts(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can receive alerts
canReceivePolls
public boolean canReceivePolls(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can receive alerts
canAccessNews
public boolean canAccessNews(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can access news channels
canManageNews
public boolean canManageNews(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can send alerts
canManageRoster
public boolean canManageRoster(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can send alerts
canChangeSettings
public boolean canChangeSettings(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can change hi or her own settings
canPoll
public boolean canPoll(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can send poll messages
canInvite
public boolean canInvite(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can send chat invitations to other users
canManagePresenceACL
public boolean canManagePresenceACL(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can manage his or her presence provacy rules
canTransferFiles
public boolean canTransferFiles(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can use the file transfer funcionality
(send or receive)
canPublishPresence
public boolean canPublishPresence(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can advertise his or her presence
canWatch
public boolean canWatch(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user can access to other users presence information
isAdmin
public boolean isAdmin(CollaborationPrincipal u)
- Parameters:
u
- principal doing the request
- Returns:
- true if the user is an I adminstrator, and so has no access
restrictions to any data managed by the IM and presence services.
getPolicyAttrs
public java.util.Map getPolicyAttrs(CollaborationPrincipal u)
- Returns:
- Map - map of the policy attribute names and its values
The policy provider has to return the values for the standard
documented policy attributes.
Following are the policy attributes that should be returned
sunIMllowAlertOnly - whether use has permission to send alerts
sunIMAllowChat - whether the user has permissions to start a chat
sunIMAllowForumAccess - wherther the user has permission to access conference rooms
sunIMAllowForumManage - whether the user has permission to manage conference rooms
sunIMAllowForumModerate - whether the user has permission to moderate conference rooms
sunIMAllowAlertsSend - whether the user has permission to send alerts message
sunIMAllowAlertsAccess - wherther the user has permission to receive alerts message
sunIMAllowNewsAccess - whether the user has permission to read news messages
sunIMAllowNewsManage - whether the user has permission to manage news channels
sunIMAllowContactListManage - whether the user has permission to manage roster
sunIMAllowUserSettings - whether the user has permission to change his settings
sunIMAllowPollingSend - whether the user has permission to send poll messages
sunIMAllowPollingAccess - whether the user has permission to receive poll messages
sunIMAllowChatInvite - whether user can invite other users to a chat room
sunPresenceAllowAccess - whether user can watch other users presence
sunPresenceAllowManage - whether user can manage presence
sunIMAllowFileTransfer - whether user can transfer files to another user