Class EmbargoUtils
java.lang.Object
org.onehippo.forge.embargo.repository.EmbargoUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Node
extractHandle
(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 Calendar
getEmbargoExpirationDate
(Node hippoHandleNode) static boolean
isAdminUser
(Session session, String userIdentity) static boolean
isVisibleInPreview
(Node documentNode) We only want to show the menu for the 'preview' variant of a documentstatic void
removeEmbargoForHandle
(Session session, Node handle) static void
removeMixin
(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
-