es.caib.ibkey.alfresco.client
Class AlfrescoRepositoryClient
java.lang.Object
es.caib.ibkey.alfresco.client.AlfrescoRepositoryClient
public class AlfrescoRepositoryClient
- extends java.lang.Object
- Author:
- u91940
|
Method Summary |
boolean |
alreadyExistsContent(Store store,
java.lang.String path)
|
boolean |
alreadyExistsFolder(Store store,
java.lang.String path)
|
static NamedValue[] |
buildCustomProperties(java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String author)
|
Reference |
createContentNode(Store store,
java.lang.String parentPath,
java.lang.String nodeName,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String author)
|
void |
createNodePath(Store store,
java.lang.String parentPath,
java.lang.String description,
java.lang.String author)
|
NamedContent |
getContentByHashlink(java.lang.String hashlink)
Baja contenido desde un nodo referenciado |
static Content |
getContentByURL(java.lang.String url)
|
Node[] |
getNode(java.lang.String[] hashlinks)
|
static void |
main(java.lang.String[] args)
|
static Store |
selectStore(Store[] stores,
java.lang.String scheme,
java.lang.String address)
Filtra un store de una lista |
void |
uploadContent(Store store,
Reference reference,
java.lang.String mimeType,
java.lang.String encoding,
byte[] content)
Sube contenido a un nodo referenciado |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlfrescoRepositoryClient
public AlfrescoRepositoryClient()
AlfrescoRepositoryClient
public AlfrescoRepositoryClient(WebServiceFactory.WebServiceFactoryConfig config)
main
public static void main(java.lang.String[] args)
alreadyExistsContent
public boolean alreadyExistsContent(Store store,
java.lang.String path)
throws InternalErrorException,
java.rmi.RemoteException
- Throws:
InternalErrorException
java.rmi.RemoteException
alreadyExistsFolder
public boolean alreadyExistsFolder(Store store,
java.lang.String path)
throws InternalErrorException,
java.rmi.RemoteException
- Throws:
InternalErrorException
java.rmi.RemoteException
createContentNode
public Reference createContentNode(Store store,
java.lang.String parentPath,
java.lang.String nodeName,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String author)
throws java.rmi.RemoteException,
InternalErrorException
- Throws:
java.rmi.RemoteException
InternalErrorException
createNodePath
public void createNodePath(Store store,
java.lang.String parentPath,
java.lang.String description,
java.lang.String author)
throws java.rmi.RemoteException,
InternalErrorException
- Throws:
java.rmi.RemoteException
InternalErrorException
buildCustomProperties
public static NamedValue[] buildCustomProperties(java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String author)
uploadContent
public void uploadContent(Store store,
Reference reference,
java.lang.String mimeType,
java.lang.String encoding,
byte[] content)
throws InternalErrorException,
java.rmi.RemoteException
- Sube contenido a un nodo referenciado
- Parameters:
store - reference -
- Throws:
InternalErrorException
java.rmi.RemoteException
getContentByHashlink
public NamedContent getContentByHashlink(java.lang.String hashlink)
throws java.lang.Exception
- Baja contenido desde un nodo referenciado
- Parameters:
store - reference -
- Throws:
java.lang.Exception
selectStore
public static Store selectStore(Store[] stores,
java.lang.String scheme,
java.lang.String address)
- Filtra un store de una lista
- Parameters:
stores - scheme - address -
- Returns:
getNode
public Node[] getNode(java.lang.String[] hashlinks)
throws InternalErrorException,
java.rmi.RemoteException
- Throws:
InternalErrorException
java.rmi.RemoteException
getContentByURL
public static Content getContentByURL(java.lang.String url)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.