protected void removePortletModelViewPermission() throws Exception {
    RoleTestUtil.removeResourcePermission(
        getRoleName(),
        getResourceName(),
        ResourceConstants.SCOPE_GROUP,
        getPrimKey(),
        ActionKeys.VIEW);

    RoleTestUtil.removeResourcePermission(
        getRoleName(),
        getResourceName(),
        ResourceConstants.SCOPE_INDIVIDUAL,
        getPrimKey(),
        ActionKeys.VIEW);
  }
 protected void tearDownResourcePermission() throws Exception {
   RoleTestUtil.removeResourcePermission(
       RoleConstants.GUEST,
       "com.liferay.document.library.kernel",
       ResourceConstants.SCOPE_GROUP,
       String.valueOf(_group.getGroupId()),
       ActionKeys.VIEW);
 }
예제 #3
0
  @Override
  public void tearDown() throws Exception {
    super.tearDown();

    RoleTestUtil.removeResourcePermission(
        RoleConstants.GUEST,
        DLPermission.RESOURCE_NAME,
        ResourceConstants.SCOPE_GROUP_TEMPLATE,
        String.valueOf(GroupConstants.DEFAULT_PARENT_GROUP_ID),
        ActionKeys.VIEW);
  }