Is it possible to create Alfresco users in a "batch" way?
I mean, creating lots of users with a script or calling an API or something.
Thank you!
There is a module for the Share admin console in the Share-Extras project which allows the creation of users from a CSV file. It can found here: http://code.google.com/p/share-extras/wiki/CreateBulkUsers
The alfresco shell tools project allows the batch creation of Alfresco users:
https://code.google.com/p/alfresco-shell-tools/wiki/UsersAndGroupsFun#Create_a_new_user
It wraps the REST APIs mentioned in the other replies in an easy to use manner.
I think the easiest way to do that is to use the addPerson webscript.
Just create a small application that calls the webscript (it's a normal HTTP POST request) with the user data you want.
http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person
If you're using Alfresco Team, or a recent nightly build, then you can simply upload a CSV / Excel file of users and have them created for you. (It's in Swift too)
You'll find the link to do this in the admin console, and the webscript that backs this is http://localhost:8080/alfresco/service/api/people/upload (perform a GET to fetch the spreadsheet template, or a POST to upload the users)
Related
i want to publish APIS to the store by hot deployment/hot update without GUI.
Is there a feature like copy a yaml/xml to a specific Directory or is it possible to do this with the AdminServices?
If yes, how could i configure it?
Thanks for time.
This is not possible at the moment. If you use API import/export you can create the API. But you need to manually publish the API. By doing this you don't need to create the API from the scratch.
I am using LiveSDK 5.6 to get file and folder info stored in One Drive. I am able to get these info, but Now, I am trying to find file version history. I am not able to find a way to get version history of a file stored in One Drive.
Can anyone suggest me a way to get version history of a file (using Live SDK or REST API ?
Rest API documentation API: https://msdn.microsoft.com/en-us/library/dn659752.aspx
Thanks in advance.
The LiveSDK, unfortunately, won't return version history but will return created_time, updated_time, etc. The new OneDrive API has a new feature for checking changes made to an item and its children (http://onedrive.github.io/items/view_changes.htm).
As Toan-Nguyen says, we can't get version number from One Drive APIs now (July 8 2016).
https://dev.onedrive.com/resources/item.htm
I want to get file version information from API, so I requested from Request page. If you want to get version, please vote.
We are looking to create a document management area that models a standard folder structure using Azure blob storage in an MVC3 applicaiton.
E.g.
Users can create folders
User can upload documents to folders
Users can list directory contents etc
Users can delete documents
Users can download documents
Now I appreciate Azure Blob storage only has containers and the rest is faked by slashes creating paths. However this sort of functionality seems like the sort of thing someone else must have created?
I did some searching but coultn't find anything. Basically something like CloudXplorer or Azure Storage Explorer but web based
Does anyone know of any azure blob storage implementation with web front end (ideally MVC)?
You can start looking at BlobShare, an MVC application which allows you to upload, download, view, share, ... blobs:
However, for the sorting part you'll need to build something yourself. I would personally consider using the Windows Azure Caching (Preview) to do this; whenever you access a 'directory', cache the blobs in that 'directory' and do the sorting based on the data in teh cache (same applies to paging). And use something like Service Bus Topics / Queues to refresh the cache whenever someone adds/deletes/renames/... a blob (+ timeout for directories not accessed in X minutes).
I also found this sample. http://peterkellner.net/2010/11/12/azure-storage-treeviewer-directory-browser/. It isn't web based but seems to create a basic tree structure and displays it. There is also related discussion here http://social.msdn.microsoft.com/Forums/en-US/windowsazuredata/thread/256cfc0f-bccc-4bf7-b7eb-cb7c7aca0c8a
See my answer over here https://stackoverflow.com/a/65944680/7988162 on how to use the Storage Explorer across all platforms.
Hierarchical blob storage now exists through Data Lake Storage Gen2. Check out documentation here.
I have written a simple ASP.NET MVC 2 application that stores data and can dynamically create excel files using Microsoft's openXML for excel files.
What is the best way to push changes the user makes in excel to my database? I know it can be done via file upload, but this is rather obtrusive to the end user to navigate to my site, select upload, and then select their file.
Is there a way to do 1 click publishing from the excel file using VBA? VBA can interact with the database directly, but this seems dangerous from a data security standpoint, and duplication of logic.
Do web services work with the MVC architecture? How do I get a vba macro enabled document to send itself to the server?
For anyone out there looking for a fix, I ended up using vba's InternetExplorer.Application object and interacting with an upload form on my site.
For more info on the upload form check out:
http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx
For more info on VBA and the InternetExplorer.Application object check out:
www.motobit.com/tips/detpg_uploadvbaie/
You might take a look at Sql server integration services for bulk upload of data into sql server. The integration services once created can be run using a normal c# desktop program or using a windows service.
But you might
need to make sure this happens in the background and will have to be
an asynchronous task.
also need to make sure it is properly secured
by not giving direct execute access to any other users
I'm assuming that this is for a specific user. I've done something very similar to what you are describing before.
Tell the user to save the excel file in their DropBox and share the file with you.
Have the server listen for changes to this file and run a server side routine to import the data.
Disclaimer: This is not a secure solution, but it's easy and will get the job done.
I have developed a web based application in ASP.NET and C# where users have the facility to upload files on the server through this application I want the application to Scan the uploaded files for viruses before saving on the server. Same like when we attach files with our email in Yahoo. Please guide me how I can achieve this functionality Any API which can be integrated in ASP.NET application or any other way you can suggest. We can purchase the licensed version of a product which can achieve this. I have googled but did not find specific results.
Thanks in advance!
First of all the file must be saved onto the server before you can scan it. If you notice Yahoo will upload the file first - but not allow the attachment to be sent until scanned.
Then you can use an antivirus with a command line interface or some other kind of API. Both of these can be called via C# and should provide the functionality you require. Parhaps write a wrapper class that takes a file and returns true or false depending on whether a virus was detected.
Other applications that provide you with a command line interface:
Microsoft Security Essentials
clamAv
I believe MS AV provides better results.
Just purchase antivirus software that has a command-line interface (several popular packages include this). Once the file has been uploaded, run the scan.
I would think, in order to upload and scan at the same time, you might need to implement your own antivirus software as I'm not familiar with any package that would provide that sort of interface.
I run a shareware site. It doesn't work as you described, but I download each file to my local computer and run a scan on them. You would be doing something similar.