Exemplo n.º 1
0
 /**
  * Gets the container.
  *
  * @param userHash the user hash
  * @param stateToken the state token
  * @return the container
  * @throws ContentNotFoundException the content not found exception
  */
 @Authenticated(mandatory = false)
 @Authorizated(accessRolRequired = AccessRol.Viewer, actionLevel = ActionLevel.container)
 private Container getContainer(final String userHash, final StateToken stateToken)
     throws ContentNotFoundException {
   return containerManager.find(ContentUtils.parseId(stateToken.getFolder()));
 }