Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавлена поддержка прав доступа хранящихся в ролях #125

Merged
merged 4 commits into from
Oct 14, 2020

Conversation

EightM
Copy link
Member

@EightM EightM commented Oct 13, 2020

Частично #108

Добавлены данные по правам роли:

  1. Три основных свойства роли
  2. Права доступа к объектам метаданных (в примитивном формате)

import com.github._1c_syntax.mdclasses.mdo.WSReference;
import com.github._1c_syntax.mdclasses.mdo.WebService;
import com.github._1c_syntax.mdclasses.mdo.XDTOPackage;
import com.github._1c_syntax.mdclasses.mdo.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Без импорта через *

import com.github._1c_syntax.mdclasses.mdo.Template;
import com.github._1c_syntax.mdclasses.mdo.WEBServiceOperation;
import com.github._1c_syntax.mdclasses.mdo.WebService;
import com.github._1c_syntax.mdclasses.mdo.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Без импорта через *

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@otymko готово

import com.github._1c_syntax.mdclasses.metadata.additional.MDOType;
import com.github._1c_syntax.mdclasses.metadata.additional.ModuleType;
import com.github._1c_syntax.mdclasses.metadata.additional.ScriptVariant;
import com.github._1c_syntax.mdclasses.metadata.additional.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Без импорта через *

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@otymko готово

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

без импорта через *

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@otymko готово

@otymko
Copy link
Member

otymko commented Oct 13, 2020

@EightM давай заведем ишузу на "виды прав". Имена можно вытянуть из xsd схем.

@otymko otymko added this to the 0.7 milestone Oct 13, 2020
@Setter
public class RoleData {

@XStreamAlias("setForNewObjects")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай откомментируем эти свойства

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@otymko готово

@@ -250,6 +251,7 @@ private void addClassAliases(XStream xStream) {
xStream.alias("mdclass:Enum", MDOEnum.class);
xStream.alias("mdclass:Report", Report.class);
xStream.alias("mdclass:Role", Role.class);
xStream.alias("Rights", RoleData.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

раз уж в xml поле зовется rights, может и RoleData назвать так же?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

именование сделано по формату: form-> formData, role->roleData

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

для роли наверное стоит засунуть права в roleData

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так и сделано

… feature/RoleData

� Conflicts:
�	src/main/java/com/github/_1c_syntax/mdclasses/utils/MDOFactory.java
@otymko otymko merged commit 9ce7e42 into 1c-syntax:develop Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants