Hello,
is this possible to create a new default group called user1group like 
Administrator and Anonymous through backend.
i have tried to in Group.java class

 @Transient
    public static final String ANONYMOUS = "Anonymous";

    @Transient
    public static final String ADMIN = "Administrator";

    @Transient
    public static final String USER = "User";
like this and also i have add in groupserviceimpl

 @Override
    public void initDefaultGroupNames(Context context) throws SQLException, 
AuthorizeException {
        GroupService groupService = 
EPersonServiceFactory.getInstance().getGroupService();
        // Check for Anonymous group. If not found, create it
        Group anonymousGroup = groupService.findByName(context, 
Group.ANONYMOUS);
        if (anonymousGroup == null) {
            anonymousGroup = groupService.create(context);
            anonymousGroup.setName(Group.ANONYMOUS);
            anonymousGroup.setPermanent(true);
            groupService.update(context, anonymousGroup);
        }


        // Check for Administrator group. If not found, create it
        Group adminGroup = groupService.findByName(context, Group.ADMIN);
        if (adminGroup == null) {
            adminGroup = groupService.create(context);
            adminGroup.setName(Group.ADMIN);
            adminGroup.setPermanent(true);
            groupService.update(context, adminGroup);
        }

        Group userGroup = groupService.findByName(context, Group.USER);
        if (userGroup == null) {
            userGroup = groupService.create(context);
            userGroup.setName(Group.USER);
            userGroup.setPermanent(true);
            groupService.update(context, userGroup);
        }
    }like this 
but it does not create the default group

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/5703175f-d061-44a6-afa8-8c2b25c64188n%40googlegroups.com.

Reply via email to