|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBasePermHelper
com.jivesoftware.community.media.authz.VideoPermHelper
public class VideoPermHelper
Helper utility to encapsulate CRUD permissions for videos
| Method Summary | |
|---|---|
static boolean |
canViewVideo(String token)
Returns true if the user represented in the given playback token is permitted to view the video also encapsulated in the token. |
static boolean |
getCanCreateVideo(JiveContainer jiveContainer)
Returns true if the effective user can create videos in the given container, false otherwise. |
static boolean |
getCanCreateVideo(User user,
JiveContainer container)
Returns true if the given user can create videos in the given container, false otherwise. |
static boolean |
getCanDeleteVideo(User user,
Video video)
Returns true if the given user is permitted to delete the given video, false otherwise. |
static boolean |
getCanDeleteVideo(Video video)
Returns true if the effective user is permitted to delete the given video, false otherwise. |
static boolean |
getCanEditVideo(User user,
Video video)
Returns true if the given user is permitted to edit the given video, false otherwise. |
static boolean |
getCanEditVideo(Video video)
Returns true if the effective user is permitted to edit the given video, false otherwise. |
static boolean |
getCanMoveVideo(User user,
Video video,
JiveContainer target)
Returns true if the given user is permitted to move the given video from its current location to the target container, false otherwise. |
static boolean |
getCanMoveVideo(Video video,
JiveContainer target)
Returns true if the effective user is permitted to move the given video from its current location to the target container, false otherwise. |
static boolean |
getCanRateVideo(User user,
Video video)
Returns true if the given user is permitted to rate the given video, false otherwise. |
static boolean |
getCanRateVideo(Video video)
Returns true if the effective user is permitted to rate the given video, false otherwise. |
static boolean |
getCanViewComments(Video video)
Returns true if the effective user is permitted to view comments on the given video, false otherwise. |
static boolean |
getCanViewVideo(User user,
Video video)
Returns true if the given user is permitted to view the given video, false otherwise. |
static boolean |
getCanViewVideo(Video video)
Returns true if the effective user is permitted to view the given video, false otherwise. |
static boolean |
getCanWriteComments(Video video)
Returns true if the effective user is permitted to comment on the given video, false otherwise. |
static boolean |
isVideoEnabled()
Returns true if the video feature is licensed and available for use |
static boolean |
isVideoEnabled(JiveContainer container)
Returns true if video is enabled in the given container |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isVideoEnabled()
public static boolean isVideoEnabled(JiveContainer container)
public static boolean getCanCreateVideo(JiveContainer jiveContainer)
jiveContainer - the jiveContainer to check for create document permission
public static boolean getCanCreateVideo(User user,
JiveContainer container)
user - whose permissions to checkcontainer - the jiveContainer to check for create document permission
public static boolean getCanEditVideo(Video video)
video - for which edit permissions of the current user will be checked
public static boolean getCanEditVideo(User user,
Video video)
user - the user whose edit permissions are being examinedvideo - for which edit permissions of the given user will be checked
public static boolean getCanDeleteVideo(Video video)
video - for which delete permissions of the current user will be checked
public static boolean getCanDeleteVideo(User user,
Video video)
user - the user whose edit permissions are being examinedvideo - for which edit permissions of the given user will be checked
public static boolean getCanViewVideo(Video video)
video - for which view permissions of the current user will be checked
public static boolean getCanViewVideo(User user,
Video video)
user - the user whose view permissions are being examinedvideo - for which view permissions of the given user will be checked
public static boolean getCanRateVideo(Video video)
video - for which rate permissions of the current user will be checked
public static boolean getCanRateVideo(User user,
Video video)
user - the user whose rate permissions are being examinedvideo - for which rate permissions of the given user will be checked
public static boolean getCanMoveVideo(Video video,
JiveContainer target)
video - for which the ability of the effective to move it is being checkedtarget - destination container
public static boolean getCanMoveVideo(User user,
Video video,
JiveContainer target)
video - for which the ability of the given user to move it is being checkedtarget - destination container
public static boolean canViewVideo(String token)
token - being examined that contains information about the user viewing, item to view, and creation date
of the token
public static boolean getCanViewComments(Video video)
video - for which view comment permissions of the current user will be checked
public static boolean getCanWriteComments(Video video)
video - for which rate permissions of the current user will be checked
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||