CCT-WEB

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
m (Dependency)
m (Dependency)
Line 64: Line 64:
* [[BoM Import]] (Bill of Material - Ingersoll Rand modules only)
* [[BoM Import]] (Bill of Material - Ingersoll Rand modules only)
* Lexicon (SQLite)
* Lexicon (SQLite)
-
* Application data storage (MySQL, MS-SQL)
+
* Application data storage (MySQL or MS-SQL)
* Temporary directory (only for tests)
* Temporary directory (only for tests)
* Directory with configuration file ''config.yaml''
* Directory with configuration file ''config.yaml''

Revision as of 12:47, 30 May 2012

Contents

Introduction

Tool dedicated to manage key configuration data of the Clever System (PLC).

File:Cct-web.png

Glossary

  • CCT-WEB: CLEVER Configuration Tool - Web Interface
  • CCT-CLI: CCT - Command Line Interface

Versions

Latest version: There is no official version because application is still under development.

Features at a Glance

  • GWT application - user oriented UI
  • Merge tool
  • One shared project for all users
  • Computing the difference between project (application) data and original source data
  • Source data consistency analysis during import to the application project

Main Modules

  • Operations/Sequence
  • Workplaces
  • Devices
  • Tools
  • Operational Method Sheet
  • Parts
  • Bill of Material

Quick Start

URL Parameters (optional):

  • lazy - automatic fetching data is off
  • tabbar - another tab bar position
  • pref - show configuration preferences
  • rights - show user rights tab

Shortcut keys:

  • Delete - delete row in table
  • Ctrl+Space - add new row in table
  • Ctrl+Alt+R - invalidate table data
  • Ctrl+Alt+E - edit highlights
  • Shift+Right - next or previous tab in tab-set

How-To

Where I find a build number of the application? See web.xml

Technical Info

Dependency

  • Apache Tomcat 7.0.27 and up
  • CCT - command line tool
  • CleverGWT
  • User Management
  • Print Builder (Ingersoll Rand modules only)
  • BoM Import (Bill of Material - Ingersoll Rand modules only)
  • Lexicon (SQLite)
  • Application data storage (MySQL or MS-SQL)
  • Temporary directory (only for tests)
  • Directory with configuration file config.yaml
# /etc/sudoers
tomcat ALL = (root) NOPASSWD: /usr/local/plc/bin/cct *

Print Builder Integration - ConfClient.html

<form id="printdata" target="_blank" action="http://192.168.1.9:8080/PrintBuilder/Untitled" method="POST">

Authentication

  • CLEVER User Management (centrální správa uživatelů a jejich práv)
  • Tomcat (internal, LDAP, ...)

Aplikace mimoto poskytuje pro testovací účel vlasní integrovanou autentifikaci pro tři na pevno dané uživatele: cadmin, john a steve.

Authorization

Server Side

Práva přiřazovaná uživateli jsou rozlišována na následující úrovni:

  • user - aktuálně přihlášený uživatel
  • method - identifikace požadované funkce rozhraní serveru
  • action - minimální požadované oprávnění (Read/Write = 2, Read = 1)
  • value - parametr funkce rozhraní určený k prověření jeho hodnoty (speciální hodnoty: "--" pro NULL a znak pro cokoliv " * ")
  • position - pozice parametru ve funkci

Položkou value může být libovolný objekt jehož hodnotu vyhodnocuje (převádí na string) server.

Funkce, které mají být zahrnuty do autorizačního procesu se anotují ve třídě RemoteService. Např.:

 @Secure(action = Secure.Action.READ_WRITE)
 public void generateDiffView(@Secure.Check String configName, AsyncCallback<String> callback);

Client Side

Not implemented yet. (Jedná se o disable/enable tlačítek GUI)

Deploy

  • See build.xml
  • web.xml - setup path where to find config.yaml <param-name>configuration</param-name>

Test

Personal tools