Alfresco Repository Activity - alfresco

I would like to see the users activities made in the general repository, without using a site (upload docs,...) in the user dashboard, I have only managed to see the acvitities performed inside user sites. is it possible to do something like this?
Thanks in advance

It's possible to create your own activities via the activities services.
Use the postActivity to post your own custom activity. The problem remains that you need a required parameter siteId.
Probably you can just fill in Repository and if that doesn't work, just create a public site called Repository so it does exist for your need.
You'll need to create a Behaviour to trigger these post as well.

Related

Allow non Admin users to modify / edit table

I'm working on AppMaker since few week but I got stuck, so I got a very simple question but I can't find any answer.
Is it possible to non admin access user to modify or edit a table on release App? For example, the Hello Data tutorial, if you release a deployments version, a non admin user cannot work with it because he can't modify data. And obviously, I saw nothing on google documentation
Thanks
I believe you are referring to access levels within the models themselves, such as creating, editing, loading and deleting. App Maker defaults each model so only Admins have all of those access levels. You need to go into each model and change the access levels to suit your needs. Please see the attached picture. If you need different access levels for each of these functions you need to choose 'Advanced'.
I think what you are getting at is you want the public to be able to view and use the app without having to log into google right?
I'm having the same issue. I'd like to have an app completely public useable by anyone with a link without ever having to login to google.
Once your users log into their google account they can see your app when you mark it public or don't restrict access, the unlogged in public cannot see a public app apparently.

Wanted to make alfresco site read only

Want to make alfresco site read only in alfresco community 5.0 so that no one can make any changes or edit that during migration.
I already tried changing the user/group permissions but that method doesn't work properly. Is there any other way to make the sites read only?
You need to make all sites in read only mode and so entire Repository should be in read-only mode for migration!
Try this property in your alfresco-global.prop file
server.allowWrite=false
Please check this for reference
The best way to make a site read only would probably be to modify all members of that site to have the consumer role (this would prevent them for creating new content or editing any existing content).
Unfortunately there is no bulk capability built into the UI to do this, however it should be a relatively straightforward exercise to create an admin only custom WebScript to achieve this. It would necessary for the Admin to become the site manager of each site before attempting to change the role of each site member, but there is an API for doing this.
Alternatively (if you have only a few sites) then you could do this manually through the UI using the Site Management Admin Console page. Again, the Admin would need to become the Site Manager for each Site and then visit the site and change the role of every member.
As suggested by #DaveDraper in a former answer, you could setup site memberships to the consumer role. However, this won't take into account any special permission given on a particular node (folder/document) in that site either with or without inheritance of permission.
So, if you intend to block any writes on the entire alfresco repo/site you could simply setup an extra security interceptor on your NodeService to block any write access using the NodeService.
PS : You could get some inspiration from the "NodeService_security" bean and implementation !
I can think of a turn-around or two, but those would be really sloppy so I won't be including them in this response

Plone4 - I need an idea

I need to build a system around a concept as follows:
Users have their objects, which are created by managers and by users themselves. Their objects are visible only to themselves. How to do it in broad way? What logic and mechanism I should choose?
I know this question is perhaps too broad but I am quite novice to development.
Your requirements can be easily solved by using the built-in user-folders of Plone.
You need to enable them in the security-part of the controlpanel via yourhost:8080/sitename/##security-controlpanel
(Note: If you are logged in and trying to see the change of the config afterwards, looking for your own urserfolder, you need to logout and login again, because the foldercreation-trigger is the 'first' login).
Every user gets its own folder then, where other users but Managers don't have have access to and additionally have access themselves to items Managers created in their folder, because the ownership of the user-folder belongs to the user.
Preferably set this configuration in your own product (plone-add-on/plugin), to make it reproducable programatically.

How to get all the documents uploaded by the user in alfresco

I am new to alfresco.
Is it possible to get list of all the documents created and uploaded by the user and populating these values in a custom dashlet?
If you look at http://localhost:8080/alfresco/service/index it will tell you about all the webscripts currently available. If you can, you probably want to use an existing webscript to get your data, though writing your own one isn't too bad - this would get you started.
I think that for your use case, the "user feed" should give you the info you need. Visit http://localhost:8080/alfresco/service/script/org/alfresco/repository/activities/feed/userfeed.get when your repo is running and it'll tell you the details about the webscript
Hmm If it's in Share then you have a content tab on the user profile, which shows all the users content. You can load that webscript into the Dashlet.

Creating DNN Portal through Code (or programming)?

I have one portal with 3 modules inside it, now my requirement is i would like to create
new portal for every client registered in my DNN site.
So, i have one interface for registration, so as soon as client registers entirely new parent portal should be created with all the modules.
How can i achieve this functionality ???
I would suggest digging into the admin files that come as part of the default DNN installation and look for the code that creates a new portal from there. It will ultimately be calling a stored procedure to create the necessary data in the SQL tables. You might get away with just calling the stored procs but the admin code probably calls several different ones to setup the default security settings.
Curiously what alias will each of these portals use? It's not clear why you need a complete portal for each user. The DNN segmentation already allows you to show different content based on role membership. Why the need for a whole portal per user?
Use the site wizard to create template of the current portal and during client registration programmatically execute the template. You may also want to automate the site setup in IIS.
Well, You can easily do it! Login to host and go to portals. Click on create new protal.
See which control is responsible for creating new portal. you can simaply get it by using firebug and look into client id of link or text box.
Once you do that, you will find the code you can use.
tell me if you need more help with it, I'm good with what you want to do!

Resources