Examples of ContentRepository


Examples of org.jdesktop.wonderland.modules.contentrepo.client.ContentRepository

            Logger.getLogger(PlacemarkComponentProperties.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        String uri = "";
        ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();
        ContentRepository repo = registry.getRepository(LoginManager.getPrimary());
        try {
            ContentCollection c = repo.getUserRoot();
            try {
                /*
                 * Remove file if it exists.
                 */
                ContentResource r = (ContentResource) c.removeChild(image.getName());
View Full Code Here

Examples of org.jdesktop.wonderland.modules.contentrepo.client.ContentRepository

        file.put(baos.toByteArray());
    }
   
    private static ContentCollection getContentDir() throws ContentRepositoryException {
        ServerSessionManager ssm = LoginManager.getPrimary();
        ContentRepository repo = ContentRepositoryRegistry.getInstance().getRepository(ssm);
   
        ContentCollection dir = (ContentCollection)
                repo.getRoot().getChild("groups/users/" + ErrorReport.DIR_NAME);
        if (dir == null) {
            throw new ContentRepositoryException("No such directory");
        }
       
        return dir;
View Full Code Here

Examples of org.mifosplatform.infrastructure.documentmanagement.contentrepository.ContentRepository

    @Override
    public FileData retrieveFileData(final String entityType, final Long entityId, final Long documentId) {
        try {
            final DocumentMapper mapper = new DocumentMapper(false, false);
            final DocumentData documentData = fetchDocumentDetails(entityType, entityId, documentId, mapper);
            final ContentRepository contentRepository = this.contentRepositoryFactory.getRepository(documentData.storageType());
            return contentRepository.fetchFile(documentData);
        } catch (final EmptyResultDataAccessException e) {
            throw new DocumentNotFoundException(entityType, entityId, documentId);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.