Class EmbargoUtils
java.lang.Object
org.onehippo.forge.embargo.repository.EmbargoUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeextractHandle(Node node) getAllEmbargoEnabledGroups(Session session) static String[]getAllUserGroups(Session session, String userIdentity) static String[]getCurrentUserEmbargoEnabledGroups(Session session, String userIdentity) static Node[]getDocumentVariants(Node documentHandleNode) static CalendargetEmbargoExpirationDate(Node hippoHandleNode) static booleanisAdminUser(Session session, String userIdentity) static booleanisVisibleInPreview(Node documentNode) We only want to show the menu for the 'preview' variant of a documentstatic voidremoveEmbargoForHandle(Session session, Node handle) static voidremoveMixin(Node handle, String mixin)
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
getCurrentUserEmbargoEnabledGroups
-
isAdminUser
-
getAllUserGroups
-
getAllEmbargoEnabledGroups
-
getEmbargoExpirationDate
- Throws:
RepositoryException
-
isVisibleInPreview
We only want to show the menu for the 'preview' variant of a document- Parameters:
documentNode-- Returns:
-
getDocumentVariants
- Throws:
RepositoryException
-
extractHandle
- Throws:
RepositoryException
-
removeEmbargoForHandle
- Throws:
RepositoryException
-
removeMixin
- Throws:
RepositoryException
-