Nexus repository manager, disable summary view on package - nexus

Is there a way to disable the Summary view for anonymous users when browsing packages?
I want to hide this section:
Is there a way to achieve this? The repository-read permission allows this section to be displayed.

The only way you could do that would be to disable the nx-repository-view-*-browse for a given repository. Effectively this would hide the component from the UI, while it would still be available to access via a direct link (e.g., by maven client). In other words, there is no way to keep a component listed in the UI and accessible, but to hide it's metadata.

Related

Is it possible to create Access Control for Azure Container Registry based on {repository:tag}?

I am familiar and have successfully tried https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions#feedback .
But what I really want is to define ACLs for a user of the container registry based on 'repository:tag'.
e.g. If I have
repo-A with tags v18.03 and v19.10, and
repo-B with tags v18.05 and v19.12
I want to be able to say a user is only allowed to pull repo-A:v19.10 and repo-B:v19.12 .
Can this be done ?
Unfortunately, it only supports to authenticate on the repository level currently and is a preview version. So you cannot authenticate on the tag level. Maybe it will support in the future, but now it doesn't support it.

Alfresco Repository Activity

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.

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

asp.net - Developing web application with features enabled based on configuration

I need to develop a web based product. Features of this will be available to users based on subscription categories like Basic Version /Premium Version / Enterprise Version. I would like to maintain single source for these subscription categories.
Here my question is,
How to design web application, which has features enabled based on configuration / subscription categories?
Thanks in Advance
This is very general question, and I will answer generally.
You can assign Roles to your registered users, and then you check using the IsUserInRole to
see what you going to show and what not.
To gain speed you can assign the permission to the user session and not always call the IsUserInRole
You can open and close some part of your page using the Panel and the Visible of it. Also close the Viewstate of the Panels that are hidden.
Alternative you can use UserControls that inside of them you check if the user have permission to see it or not, and you hide it OnInit, and also disable the ViewState of it.
And of course if a full page is not permitted you can always make a full redirect.
So a full page can have Panels, and UserControls, and the views of it depend from the user level.
You will not be able to get this readymade , you have to design the application based on the technology you are using.
I had similar kind of project going on in which we store the list of feature in database and when the page initializes loads the feature list in session.
On various pages we are showing/hiding controls based on the feature availability.
Offcourse Single feature can also have category based on the User Roles that we can check using FormAuthentication methods and change the page server side accordingly.
Let me know if you have any specific approach in mind and have question related with it.

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