public class ChannelAccessHandler extends BaseHandler
VALID
Constructor and Description |
---|
ChannelAccessHandler() |
Modifier and Type | Method and Description |
---|---|
int |
disableUserRestrictions(User loggedInUser,
java.lang.String channelLabel)
Disable user restrictions for the given channel.
|
int |
enableUserRestrictions(User loggedInUser,
java.lang.String channelLabel)
Enable user restrictions for the given channel.
|
java.lang.String |
getOrgSharing(User loggedInUser,
java.lang.String channelLabel)
Get organization sharing access control.
|
int |
setOrgSharing(User loggedInUser,
java.lang.String channelLabel,
java.lang.String access)
Set organization sharing access control.
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public int enableUserRestrictions(User loggedInUser, java.lang.String channelLabel) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel to changeFaultException
- A FaultException is thrown if:
- The sessionkey is invalid
- The channel label is invalid
- The user doesn't have channel admin permissionspublic int disableUserRestrictions(User loggedInUser, java.lang.String channelLabel) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel to changeFaultException
- A FaultException is thrown if:
- The sessionkey is invalid
- The channel label is invalid
- The user doesn't have channel admin permissionspublic int setOrgSharing(User loggedInUser, java.lang.String channelLabel, java.lang.String access) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel to changeaccess
- The access value to set. (Must be one of the following:
"public", "private" or "protected")FaultException
- A FaultException is thrown if:
- The sessionKey is invalid
- The channelLabel is invalid
- The access is invalid
- The user doesn't have channel admin permissionspublic java.lang.String getOrgSharing(User loggedInUser, java.lang.String channelLabel) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channelFaultException
- A FaultException is thrown if:
- The sessionKey is invalid
- The channelLabel is invalid
- The access is invalid
- The user doesn't have channel admin permissions