@Component public class ServiceHelpers extends Object
| Modifier and Type | Method and Description |
|---|---|
static Long |
getContentSize(javax.jcr.Node ds)
Get the size of the JCR content binary property
|
static Long |
getDatastreamSize(javax.jcr.Node ds)
Get the size of a datastream by calculating the size of the properties
and the binary properties
|
static Long |
getNodePropertySize(javax.jcr.Node node)
Get the total size of a Node's properties
|
static Long |
getObjectSize(javax.jcr.Node obj) |
static long |
getRepositoryCount(javax.jcr.Repository repository) |
static long |
getRepositorySize(javax.jcr.Repository repository) |
public static Long getNodePropertySize(javax.jcr.Node node) throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - if repository exception occurredpublic static Long getObjectSize(javax.jcr.Node obj) throws javax.jcr.RepositoryException
obj - the objectjavax.jcr.RepositoryException - if repository exception occurredpublic static Long getDatastreamSize(javax.jcr.Node ds) throws javax.jcr.RepositoryException
ds - the nodejavax.jcr.RepositoryException - if repository exception occurredpublic static Long getContentSize(javax.jcr.Node ds)
ds - the given nodepublic static long getRepositoryCount(javax.jcr.Repository repository) throws javax.jcr.RepositoryException
repository - the repositoryjavax.jcr.RepositoryException - if repository exception occurredpublic static long getRepositorySize(javax.jcr.Repository repository) throws javax.jcr.RepositoryException
repository - the repositoryjavax.jcr.RepositoryException - if repository exception occurredCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.