示例#1
0
 private void registerIcons() {
   registerEmptyFolderTutorial(TYPE_ROOT);
   // registerTutorial(TYPE_FOLDER);
   registerContentTypeIcon(TYPE_FOLDER, icons.folderGrey());
   registerContentTypeIcon(TYPE_ROOT, icons.bartersGrey());
   registerContentTypeIcon(TYPE_BARTER, icons.bartersGrey());
   registerContentTypeIconLight(TYPE_FOLDER, icons.folderWhite());
   registerContentTypeIconLight(TYPE_ROOT, icons.bartersWhite());
   registerContentTypeIconLight(TYPE_BARTER, icons.bartersWhite());
   registerEmptyMessages(
       TYPE_FOLDER, i18n.t(THERE_ISN_T_ANY_BARTER + "You can create some of them here"));
   registerEmptyMessages(TYPE_ROOT, i18n.t(THERE_ISN_T_ANY_BARTER));
   registerEmptyMessagesNotLogged(TYPE_FOLDER, i18n.t(THERE_ISN_T_ANY_BARTER));
   registerEmptyMessagesNotLogged(TYPE_ROOT, i18n.t(THERE_ISN_T_ANY_BARTER));
 }
示例#2
0
  @Inject
  public BartersClientTool(
      final I18nTranslationService i18n,
      final ToolSelector toolSelector,
      final ContentCapabilitiesRegistry cntCapRegistry,
      final IconicResources icons,
      final HistoryWrapper history) {
    super(
        TOOL_NAME,
        i18n.t("barters"),
        i18n.t(
            "A decentralized way to offer (or ask for) services and goods to your groups or to anyone. Bartering means the exchange of goods by the agreement of two people"),
        icons.bartersWhite(),
        AccessRolDTO.Viewer,
        toolSelector,
        cntCapRegistry,
        i18n,
        history);
    this.icons = icons;

    // registerAclEditableTypes(TYPE_DOCUMENT, TYPE_UPLOADEDFILE);
    registerAuthorableTypes(TYPE_BARTER);
    registerDragableTypes(TYPE_BARTER, TYPE_FOLDER);
    registerDropableTypes(TYPE_ROOT, TYPE_FOLDER, TYPE_BARTER);
    // registerPublishModerableTypes();
    registerRateableTypes(TYPE_BARTER);
    registerRenamableTypes(TYPE_FOLDER, TYPE_BARTER);
    registerTageableTypes(TYPE_BARTER);
    registerTranslatableTypes(TYPE_FOLDER, TYPE_BARTER);
    registerIcons();
  }