exfex-cvs-commit Mailing List for Extended Form of examination
Status: Planning
Brought to you by:
mstsxfx
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(93) |
Oct
(134) |
Nov
(29) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(20) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
|
Dec
|
From: Michal H. <ms...@us...> - 2006-10-15 15:48:21
|
Update of /cvsroot/exfex/exfex/source/exfex/common/utils In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19960/source/exfex/common/utils Modified Files: State.java Log Message: template parameter removed Index: State.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/utils/State.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** State.java 19 Oct 2005 19:28:52 -0000 1.5 --- State.java 15 Oct 2006 15:48:17 -0000 1.6 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.6 2006/10/15 15:48:17 mstsxfx + * template parameter removed + * * Revision 1.5 2005/10/19 19:28:52 mstsxfx * implements Serializable *************** *** 101,105 **** return false; ! return state.equals(((State<T>)o).getState()); } --- 104,108 ---- return false; ! return state.equals(((State)o).getState()); } |
From: Michal H. <ms...@us...> - 2006-10-14 20:20:45
|
Update of /cvsroot/exfex/exfex/docbook In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv828/docbook Added Files: architecture.dia architecture.png Log Message: general architecture scheme --- NEW FILE: architecture.dia --- (This appears to be a binary file; contents omitted.) --- NEW FILE: architecture.png --- (This appears to be a binary file; contents omitted.) |
From: Michal H. <ms...@us...> - 2006-10-14 20:10:59
|
Update of /cvsroot/exfex/exfex/.settings In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv29412/.settings Modified Files: org.eclipse.jdt.core.prefs org.eclipse.jdt.ui.prefs Log Message: Index: org.eclipse.jdt.core.prefs =================================================================== RCS file: /cvsroot/exfex/exfex/.settings/org.eclipse.jdt.core.prefs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** org.eclipse.jdt.core.prefs 14 Oct 2006 18:12:01 -0000 1.2 --- org.eclipse.jdt.core.prefs 14 Oct 2006 20:10:55 -0000 1.3 *************** *** 1,4 **** ! #Sat Sep 09 13:40:29 CEST 2006 eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 --- 1,11 ---- ! #Sat Oct 14 22:01:19 CEST 2006 eclipse.preferences.version=1 + org.eclipse.jdt.core.builder.cleanOutputFolder=clean + org.eclipse.jdt.core.builder.duplicateResourceTask=warning + org.eclipse.jdt.core.builder.invalidClasspath=abort + org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch + org.eclipse.jdt.core.circularClasspath=error + org.eclipse.jdt.core.classpath.exclusionPatterns=enabled + org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 *************** *** 9,12 **** --- 16,20 ---- org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.doc.comment.support=enabled + org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.assertIdentifier=error *************** *** 68,69 **** --- 76,323 ---- org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning org.eclipse.jdt.core.compiler.source=1.5 + org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled + org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,LOW + org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,NOTE + org.eclipse.jdt.core.formatter.align_type_members_on_columns=false + org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=18 + org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=0 + org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=18 + org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=18 + org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=18 + org.eclipse.jdt.core.formatter.alignment_for_binary_expression=18 + org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 + org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=82 + org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 + org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=18 + org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 + org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=18 + org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=18 + org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=0 + org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 + org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=0 + org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 + org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 + org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 + org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 + org.eclipse.jdt.core.formatter.blank_lines_after_package=1 + org.eclipse.jdt.core.formatter.blank_lines_before_field=1 + org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 + org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 + org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 + org.eclipse.jdt.core.formatter.blank_lines_before_method=1 + org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 + org.eclipse.jdt.core.formatter.blank_lines_before_package=2 + org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 + org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line + org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line + org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line + org.eclipse.jdt.core.formatter.brace_position_for_block=next_line_shifted + org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line + org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line + org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line + org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line + org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line + org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line_shifted + org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line + org.eclipse.jdt.core.formatter.comment.clear_blank_lines=true + org.eclipse.jdt.core.formatter.comment.format_comments=true + org.eclipse.jdt.core.formatter.comment.format_header=false + org.eclipse.jdt.core.formatter.comment.format_html=true + org.eclipse.jdt.core.formatter.comment.format_source_code=true + org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true + org.eclipse.jdt.core.formatter.comment.indent_root_tags=true + org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=do not insert + org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert + org.eclipse.jdt.core.formatter.comment.line_length=80 + org.eclipse.jdt.core.formatter.compact_else_if=true + org.eclipse.jdt.core.formatter.continuation_indentation=2 + org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 + org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false + org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true + org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true + org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true + org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true + org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true + org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true + org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true + org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true + org.eclipse.jdt.core.formatter.indentation.size=0 + org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert + org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert + org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert + org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert + org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert + org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert + org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert + org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert + org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert + org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert + org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert + org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert + org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert + org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert + org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert + org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert + org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert + org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert + org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert + org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false + org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=true + org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false + org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false + org.eclipse.jdt.core.formatter.lineSplit=80 + org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 + org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 + org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true + org.eclipse.jdt.core.formatter.tabulation.char=tab + org.eclipse.jdt.core.formatter.tabulation.size=4 + org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false + org.eclipse.jdt.core.incompatibleJDKLevel=ignore + org.eclipse.jdt.core.incompleteClasspath=error Index: org.eclipse.jdt.ui.prefs =================================================================== RCS file: /cvsroot/exfex/exfex/.settings/org.eclipse.jdt.ui.prefs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** org.eclipse.jdt.ui.prefs 14 Oct 2006 18:12:01 -0000 1.2 --- org.eclipse.jdt.ui.prefs 14 Oct 2006 20:10:55 -0000 1.3 *************** *** 1,4 **** ! #Thu Mar 23 23:43:11 CET 2006 eclipse.preferences.version=1 internal.default.compliance=default ! org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/> --- 1,8 ---- ! #Sat Oct 14 22:00:09 CEST 2006 eclipse.preferences.version=1 + formatter_settings_version=8 internal.default.compliance=default ! org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * $$RCSfile$$\n *\n * $$Log$ ! org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * $$RCSfile$$\n *\n * $Revision 1.3 2006/10/14 20:10:55 mstsxfx ! org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * $$RCSfile$$\n *\n * $*** empty log message *** ! org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return Returns the ${bare_field_name}.\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} The ${bare_field_name} to set.\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * $$RCSfile$$\n *\n * $$\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * ${tags}\n * <p>\n * <pre>\n * Changes\:\n * </pre>\n *\n * @author ${user}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> |
From: Michal H. <ms...@us...> - 2006-10-14 20:10:06
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28997/source/exfex/common/plugins/remote/displaysystem Modified Files: BasicRemoteSessionManager.java Log Message: * using packages corrected * synced with interface changes Index: BasicRemoteSessionManager.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem/BasicRemoteSessionManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BasicRemoteSessionManager.java 14 Oct 2006 18:27:12 -0000 1.3 --- BasicRemoteSessionManager.java 14 Oct 2006 20:10:00 -0000 1.4 *************** *** 3,6 **** --- 3,10 ---- * * $Log$ + * Revision 1.4 2006/10/14 20:10:00 mstsxfx + * * using packages corrected + * * synced with interface changes + * * Revision 1.3 2006/10/14 18:27:12 mstsxfx * SecurityException removed from getAction method *************** *** 23,27 **** import exfex.common.displaysystem.ISessionManager; import exfex.common.pluginsystem.PluginException; - import exfex.common.remote.displaysystem.IRemoteSession; import exfex.common.remote.displaysystem.IRemoteSessionManager; import exfex.common.remote.security.IRemoteIdentity; --- 27,30 ---- *************** *** 110,114 **** * * TODO id and security layer. ! * * Delegates operation to the localView instance using * {@link ISessionManager#registerSession(ISessionFactory)} method. --- 113,117 ---- * * TODO id and security layer. ! * exfex.common.security * Delegates operation to the localView instance using * {@link ISessionManager#registerSession(ISessionFactory)} method. *************** *** 147,156 **** * operation. */ ! synchronized public ISession execSession(IRemoteIdentity id, IRemoteSession session, ISessionFactory sessionplugin) throws RemoteException, SecurityException//{{{ { // FIXME security ! return localView.execSession(session.getSession(), sessionplugin); }//}}} --- 150,159 ---- * operation. */ ! synchronized public ISession execSession(IRemoteIdentity id, ISession session, ISessionFactory sessionplugin) throws RemoteException, SecurityException//{{{ { // FIXME security ! return localView.execSession(session, sessionplugin); }//}}} *************** *** 200,202 **** --- 203,206 ---- }//}}} + } |
From: Michal H. <ms...@us...> - 2006-10-14 20:09:03
|
Update of /cvsroot/exfex/exfex/source/exfex/common/remote/displaysystem In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28589/source/exfex/common/remote/displaysystem Modified Files: IRemoteSessionManager.java Log Message: * doc update * using corrected * methods uses always IRemoteIdentity rather than Identity directly Index: IRemoteSessionManager.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/remote/displaysystem/IRemoteSessionManager.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IRemoteSessionManager.java 18 Oct 2005 17:50:03 -0000 1.3 --- IRemoteSessionManager.java 14 Oct 2006 20:08:59 -0000 1.4 *************** *** 3,6 **** --- 3,11 ---- * * $Log$ + * Revision 1.4 2006/10/14 20:08:59 mstsxfx + * * doc update + * * using corrected + * * methods uses always IRemoteIdentity rather than Identity directly + * * Revision 1.3 2005/10/18 17:50:03 mstsxfx * remote view of session manager + plugin interface *************** *** 23,29 **** import exfex.common.pluginsystem.IPlugin; import exfex.common.pluginsystem.PluginException; - import exfex.common.pluginsystem.PluginSecurityException; import exfex.common.remote.security.IRemoteIdentity; ! import exfex.common.security.IIdentity; --- 28,33 ---- import exfex.common.pluginsystem.IPlugin; import exfex.common.pluginsystem.PluginException; import exfex.common.remote.security.IRemoteIdentity; ! import exfex.common.security.SecurityException; *************** *** 59,70 **** * rely and make critical operations on returned values. * ! * @param id Identity of the caller caller. * @return Array of session objects. * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this * operation. */ public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException, PluginSecurityException; /** Registers new session. --- 63,74 ---- * rely and make critical operations on returned values. * ! * @param id Identity of the caller. * @return Array of session objects. * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this * operation. */ public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException, SecurityException; /** Registers new session. *************** *** 75,87 **** * sessions. * ! * @param id Identity of the caller caller. * @param sessionplugin Plugin (factory) for session. * @return new session. * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this * operation. */ public ISession registerSession(IRemoteIdentity id, ISessionFactory sessionplugin) ! throws RemoteException, PluginSecurityException; /** Register new subsession. --- 79,91 ---- * sessions. * ! * @param id Identity of the caller. * @param sessionplugin Plugin (factory) for session. * @return new session. * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this * operation. */ public ISession registerSession(IRemoteIdentity id, ISessionFactory sessionplugin) ! throws RemoteException, SecurityException; /** Register new subsession. *************** *** 93,106 **** * * @see IPlugin#getInstance ! * @param id Identity of the caller caller. * @param session Parent session. * @param sessionplugin Plugin (factory) for session. * @return new session. * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this * operation. */ ! public ISession execSession(IIdentity id, ISession session, ISessionFactory sessionplugin) ! throws RemoteException, PluginSecurityException; /** Kills given session. --- 97,110 ---- * * @see IPlugin#getInstance ! * @param id Identity of the caller. * @param session Parent session. * @param sessionplugin Plugin (factory) for session. * @return new session. * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this * operation. */ ! public ISession execSession(IRemoteIdentity id, ISession session, ISessionFactory sessionplugin) ! throws RemoteException, SecurityException; /** Kills given session. *************** *** 114,125 **** * about killing process. * @see ISession#kill ! * @param id Identity of the caller caller. * @param session Session to kill. * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this * operation. */ ! public void killSession(IIdentity id, ISession session) ! throws RemoteException, PluginSecurityException; /** Returns all plugins that can create session object. --- 118,129 ---- * about killing process. * @see ISession#kill ! * @param id Identity of the caller. * @param session Session to kill. * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this * operation. */ ! public void killSession(IRemoteIdentity id, ISession session) ! throws RemoteException, SecurityException; /** Returns all plugins that can create session object. *************** *** 128,139 **** * type. * ! * @param id Identity of the caller caller. * @return Returnes all factories (plugins) for sessions. * @throws PluginException if no session factory is registered. * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this * operation. */ public List<ISessionFactory> getSessionFactories(IRemoteIdentity id) ! throws PluginException, RemoteException, PluginSecurityException; } --- 132,143 ---- * type. * ! * @param id Identity of the caller. * @return Returnes all factories (plugins) for sessions. * @throws PluginException if no session factory is registered. * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this * operation. */ public List<ISessionFactory> getSessionFactories(IRemoteIdentity id) ! throws PluginException, RemoteException, SecurityException; } |
From: Michal H. <ms...@us...> - 2006-10-14 20:07:13
|
Update of /cvsroot/exfex/exfex/source/exfex/common/security In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28163/source/exfex/common/security Modified Files: AccountException.java Log Message: Index: AccountException.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/security/AccountException.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AccountException.java 27 Nov 2005 13:04:45 -0000 1.1 --- AccountException.java 14 Oct 2006 20:07:10 -0000 1.2 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.2 2006/10/14 20:07:10 mstsxfx + * *** empty log message *** + * * Revision 1.1 2005/11/27 13:04:45 mstsxfx * security system interfaces and classes *************** *** 9,13 **** package exfex.common.security; ! /** Basci exception used for accounting purposes. * * <p> --- 12,16 ---- package exfex.common.security; ! /** Basic exception used for accounting purposes. * * <p> |
From: Michal H. <ms...@us...> - 2006-10-14 20:06:02
|
Update of /cvsroot/exfex/exfex/source/exfex/common/security In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv27430/source/exfex/common/security Modified Files: Identity.java Log Message: Index: Identity.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/security/Identity.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Identity.java 28 Dec 2005 16:45:40 -0000 1.2 --- Identity.java 14 Oct 2006 20:05:58 -0000 1.3 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.3 2006/10/14 20:05:58 mstsxfx + * *** empty log message *** + * * Revision 1.2 2005/12/28 16:45:40 mstsxfx * changes syncing *************** *** 292,296 **** return id; } ! @Override public String toString() { --- 295,299 ---- return id; } ! @Override public String toString() { |
From: Michal H. <ms...@us...> - 2006-10-14 20:05:23
|
Update of /cvsroot/exfex/exfex/source/exfex/common/utils In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv27400/source/exfex/common/utils Modified Files: CloneAble.java Log Message: Override annotation seems to be problem for eclipse compiler (It shouldn't be for normal javac) Index: CloneAble.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/utils/CloneAble.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CloneAble.java 8 Oct 2005 10:59:38 -0000 1.2 --- CloneAble.java 14 Oct 2006 20:05:19 -0000 1.3 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.3 2006/10/14 20:05:19 mstsxfx + * Override annotation seems to be problem for eclipse compiler (It shouldn't be for normal javac) + * * Revision 1.2 2005/10/08 10:59:38 mstsxfx * CloneNotSupportet exception added *************** *** 39,42 **** * @return New instance of object. */ ! @Override public Object clone() throws CloneNotSupportedException; } --- 42,45 ---- * @return New instance of object. */ ! public Object clone() throws CloneNotSupportedException; } |
From: Michal H. <ms...@us...> - 2006-10-14 18:32:21
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/displaysystem/swing In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv23290/source/exfex/common/plugins/displaysystem/swing Removed Files: SWINGContainerFactory.java SWINGCheckBoxFactory.java SWINGPrimitivesFactory.java package.html SWINGButtonFactory.java SWINGLabelFactory.java SWINGComboBoxFactory.java Log Message: SWING components removed from CVS --- SWINGCheckBoxFactory.java DELETED --- --- SWINGContainerFactory.java DELETED --- --- SWINGComboBoxFactory.java DELETED --- --- SWINGButtonFactory.java DELETED --- --- SWINGLabelFactory.java DELETED --- --- package.html DELETED --- --- SWINGPrimitivesFactory.java DELETED --- |
From: Michal H. <ms...@us...> - 2006-10-14 18:27:41
|
Update of /cvsroot/exfex/exfex In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv21375 Modified Files: .cvsignore Log Message: Index: .cvsignore =================================================================== RCS file: /cvsroot/exfex/exfex/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 6 Aug 2005 11:05:54 -0000 1.1 --- .cvsignore 14 Oct 2006 18:27:37 -0000 1.2 *************** *** 1 **** --- 1,2 ---- bin + .metadata |
From: Michal H. <ms...@us...> - 2006-10-14 18:27:15
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv21346/source/exfex/common/plugins/remote/displaysystem Modified Files: BasicRemoteSessionManager.java Log Message: SecurityException removed from getAction method Index: BasicRemoteSessionManager.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem/BasicRemoteSessionManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BasicRemoteSessionManager.java 14 Oct 2006 16:22:24 -0000 1.2 --- BasicRemoteSessionManager.java 14 Oct 2006 18:27:12 -0000 1.3 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.3 2006/10/14 18:27:12 mstsxfx + * SecurityException removed from getAction method + * * Revision 1.2 2006/10/14 16:22:24 mstsxfx * changes made really long ago (no idea) *************** *** 95,103 **** * @return Array of sessions. * @throws RemoteException If problem during RMI call occures. - * @throws SecurityException if unauthorized id requieres this - * operation. */ synchronized public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException, SecurityException//{{{ { // TODO security --- 98,104 ---- * @return Array of sessions. * @throws RemoteException If problem during RMI call occures. */ synchronized public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException//{{{ { // TODO security |
From: Michal H. <ms...@us...> - 2006-10-14 18:26:14
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/displaysystem/swing In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20970/source/exfex/common/plugins/displaysystem/swing Added Files: .cvsignore Log Message: --- NEW FILE: .cvsignore --- cvs |
From: Michal H. <ms...@us...> - 2006-10-14 18:25:04
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/displaysystem In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20236/source/exfex/common/plugins/displaysystem Added Files: .cvsignore Log Message: --- NEW FILE: .cvsignore --- cvs |
From: Michal H. <ms...@us...> - 2006-10-14 18:12:05
|
Update of /cvsroot/exfex/exfex/.settings In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv15288/.settings Modified Files: org.eclipse.jdt.core.prefs org.eclipse.jdt.ui.prefs Log Message: Index: org.eclipse.jdt.core.prefs =================================================================== RCS file: /cvsroot/exfex/exfex/.settings/org.eclipse.jdt.core.prefs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** org.eclipse.jdt.core.prefs 6 Aug 2005 11:05:54 -0000 1.1 --- org.eclipse.jdt.core.prefs 14 Oct 2006 18:12:01 -0000 1.2 *************** *** 1,6 **** ! #Sat Aug 06 12:51:33 CEST 2005 eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.doc.comment.support=enabled org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.deprecation=warning --- 1,14 ---- ! #Sat Sep 09 13:40:29 CEST 2006 eclipse.preferences.version=1 + org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled + org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 + org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve + org.eclipse.jdt.core.compiler.compliance=1.5 + org.eclipse.jdt.core.compiler.debug.lineNumber=generate + org.eclipse.jdt.core.compiler.debug.localVariable=generate + org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.doc.comment.support=enabled org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning + org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.deprecation=warning *************** *** 9,12 **** --- 17,21 ---- org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore + org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning *************** *** 58,59 **** --- 67,69 ---- org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning + org.eclipse.jdt.core.compiler.source=1.5 Index: org.eclipse.jdt.ui.prefs =================================================================== RCS file: /cvsroot/exfex/exfex/.settings/org.eclipse.jdt.ui.prefs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** org.eclipse.jdt.ui.prefs 6 Aug 2005 11:05:54 -0000 1.1 --- org.eclipse.jdt.ui.prefs 14 Oct 2006 18:12:01 -0000 1.2 *************** *** 1,3 **** ! #Sat Aug 06 12:42:21 CEST 2005 eclipse.preferences.version=1 org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/> --- 1,4 ---- ! #Thu Mar 23 23:43:11 CET 2006 eclipse.preferences.version=1 + internal.default.compliance=default org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/> |
From: Michal H. <ms...@us...> - 2006-10-14 16:22:28
|
Update of /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv4933/source/exfex/common/plugins/remote/displaysystem Modified Files: BasicRemoteSessionManagerFactory.java BasicRemoteSessionManager.java Log Message: changes made really long ago (no idea) Index: BasicRemoteSessionManagerFactory.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem/BasicRemoteSessionManagerFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicRemoteSessionManagerFactory.java 18 Oct 2005 17:55:21 -0000 1.1 --- BasicRemoteSessionManagerFactory.java 14 Oct 2006 16:22:24 -0000 1.2 *************** *** 1,147 **** ! /* ! * $RCSfile$ ! * * $Log$ ! * Revision 1.1 2005/10/18 17:55:21 mstsxfx ! * remote view session manager plugin + helper class ! * ! */ ! package exfex.common.plugins.remote.displaysystem; ! ! import java.util.Properties; ! ! import exfex.common.displaysystem.ISessionManager; ! import exfex.common.pluginsystem.AbstractPlugin; ! import exfex.common.pluginsystem.Context; ! import exfex.common.pluginsystem.IContext; ! import exfex.common.pluginsystem.PluginManager; ! import exfex.common.remote.displaysystem.IRemoteSessionManager; ! import exfex.common.remote.displaysystem.IRemoteSessionManagerFactory; ! ! /** Plugin for creating remote session manager view instance. ! * ! * This plugin creates instances of BasicRemoteSessionManager ! * class which is used as remote view to the SessionManager instance. Instances ! * should be created by <code>remoteView</code> method which gets manager name ! * as paramter. ! * <p> ! * <br><b>Plugin Name</b>: "BasicRemoteSessionManager" ! * <br><b>Special notes</b>: ! * <ul> ! * <li> Registers itself to the PluginManager. ! * <li> Needs BasicRemoteSessionManager class which is not plugin, but can't be ! * in this file because of class access public modificator. ! * <li> Produces BasicRemoteSessionManager instances according SessionManager ! * name. ! * <li> Doesn't register created instance to the Naming service, so it can be ! * accessed as service until regstering (see example at the bottom). ! * <li> <code>getInstance</code> respectively <code>remoteView</code> can return ! * with null, if BasicRemoteSessionManager can't be created. ! * </ul> ! * ! * <pre> ! * // Using plugin BasicRemoteSessionManagerFactory gets remote session manager ! * // view. NOTE that we doesn't catch exceptions which has to be done in real ! * // world application ! * IRemoteSessionManagerFactory plugin=PluginManager.getByName( ! * IRemoteSessionManagerFactory.class, ! * "BasicRemoteSessionManager"); ! * // Now we get remote view of manager from plugin. ! * IRemoteSessionManager remoteView=plugin.remoteView(); ! * ! * // bind remoteView instance with the server_name host on port as ! * // SessionManager service. Using Naming.lookup can be found there. ! * Naming.rebind("rmi://{server_name}{:port}/SessionManager", manager); ! * </pre> ! * <p> ! * <pre> ! * Changes: ! * 18.10.2005 msts - created ! * </pre> ! * ! * @author msts ! */ ! public class BasicRemoteSessionManagerFactory extends AbstractPlugin implements ! IRemoteSessionManagerFactory ! { ! private static final long serialVersionUID = 1L; ! ! /** This plugin will register to the PluginManager. */ ! private PluginManager manager=PluginManager.getInstance(); ! ! /** Initializating constructor. ! * ! * Calls sepertype constructor with plugin name parameter and sets ! * manager. ! */ ! public BasicRemoteSessionManagerFactory() ! { ! super(new String("BasicRemoteSessionManager")); ! setManager(manager); ! } ! ! /** Creates instance of BasicRemoteSessionManager type according ! * context. ! * ! * This method shouldn't be used directly. Clients should rather use ! * {@link #remoteView(String)} method. ! * ! * @param context Context fro creation. Just value with NAME key is used ! * to find SessionManager with value name. Doesn't check if parameter is ! * null. ! * ! * @return BasicRemoteSessionManager instance or null if SessionManager ! * couldn't be found or BasicRemoteSessionManager can't be created. ! */ ! @Override ! public Object getInstance(IContext context) ! { ! String name=context.getContext().getProperty("NAME"); ! BasicRemoteSessionManager result=null; ! if(name!=null) ! { ! try ! { ! // gets sessionManager from registered on ! // plugin manager according name ! ISessionManager sessionMng=(ISessionManager) ! manager.getByName( ! ISessionManager.class, ! name); ! // creates result from returned plugin ! result=new BasicRemoteSessionManager( ! (ISessionManager) ! sessionMng.getInstance(null)); ! }catch(Exception e) ! { ! // TODO handle - log ! } ! } ! return result; ! } ! ! /** Creates IRemoteSessionManager instance from session manager with ! * given name. ! * ! * Creates context for <code>getInstance</code> method containing name. ! * @param managerName SessionManager plugin name. ! * ! * @return IRemoteSessionManager instance or null if given name is null, ! * session manager plugin with given name doesn't exist or ! * BasicRemoteSessionManager instance can't be created. ! */ ! public IRemoteSessionManager remoteView(String managerName) ! { ! if(managerName==null) ! return null; ! ! // creates context ! Properties prop=new Properties(); ! prop.put("NAME",managerName); ! IContext context=new Context(prop); ! ! // creates instance using context ! return (IRemoteSessionManager)getInstance(context); ! } ! ! } --- 1,153 ---- ! /* ! * $RCSfile$ ! * * $Log$ ! * Revision 1.2 2006/10/14 16:22:24 mstsxfx ! * changes made really long ago (no idea) ! * ! * Revision 1.1 2005/10/18 17:55:21 mstsxfx ! * remote view session manager plugin + helper class ! * ! */ ! package exfex.common.plugins.remote.displaysystem; ! ! import java.util.Properties; ! ! import exfex.common.displaysystem.ISessionManager; ! import exfex.common.pluginsystem.AbstractPlugin; ! import exfex.common.pluginsystem.Context; ! import exfex.common.pluginsystem.IContext; ! import exfex.common.pluginsystem.PluginManager; ! import exfex.common.remote.displaysystem.IRemoteSessionManager; ! import exfex.common.remote.displaysystem.IRemoteSessionManagerFactory; ! ! /** Plugin for creating remote session manager view instance. ! * ! * This plugin creates instances of BasicRemoteSessionManager ! * class which is used as remote view to the SessionManager instance. Instances ! * should be created by <code>remoteView</code> method which gets manager name ! * as paramter. ! * <p> ! * <br><b>Plugin Name</b>: "BasicRemoteSessionManager" ! * <br><b>Special notes</b>: ! * <ul> ! * <li> Registers itself to the PluginManager. ! * <li> Needs BasicRemoteSessionManager class which is not plugin, but can't be ! * in this file because of class access public modificator. ! * <li> Produces BasicRemoteSessionManager instances according SessionManager ! * name. ! * <li> Doesn't register created instance to the Naming service, so it can be ! * accessed as service until regstering (see example at the bottom). ! * <li> <code>getInstance</code> respectively <code>remoteView</code> can return ! * with null, if BasicRemoteSessionManager can't be created. ! * </ul> ! * ! * <pre> ! * // Using plugin BasicRemoteSessionManagerFactory gets remote session manager ! * // view. NOTE that we doesn't catch exceptions which has to be done in real ! * // world application ! * IRemoteSessionManagerFactory plugin=PluginManager.getByName( ! * IRemoteSessionManagerFactory.class, ! * "BasicRemoteSessionManager"); ! * // Now we get remote view of manager from plugin. ! * IRemoteSessionManager remoteView=plugin.remoteView(); ! * ! * // bind remoteView instance with the server_name host on port as ! * // SessionManager service. Using Naming.lookup can be found there. ! * Naming.rebind("rmi://{server_name}{:port}/SessionManager", manager); ! * </pre> ! * <p> ! * <pre> ! * ! * TODO change - keep map of all registered remote view of Session managers ! * ! * Changes: ! * 18.10.2005 msts - created ! * </pre> ! * ! * @author msts ! */ ! public class BasicRemoteSessionManagerFactory extends AbstractPlugin implements ! IRemoteSessionManagerFactory ! { ! private static final long serialVersionUID = 1L; ! ! /** This plugin will register to the PluginManager. */ ! private PluginManager manager=PluginManager.getInstance(); ! ! /** Initializating constructor. ! * ! * Calls sepertype constructor with plugin name parameter and sets ! * manager. ! */ ! public BasicRemoteSessionManagerFactory() ! { ! super("BasicRemoteSessionManager"); ! setManager(manager); ! } ! ! /** Creates instance of BasicRemoteSessionManager type according ! * context. ! * ! * This method shouldn't be used directly. Clients should rather use ! * {@link #remoteView(String)} method. ! * ! * @param context Context fro creation. Just value with NAME key is used ! * to find SessionManager with value name. Doesn't check if parameter is ! * null. ! * ! * @return BasicRemoteSessionManager instance or null if SessionManager ! * couldn't be found or BasicRemoteSessionManager can't be created. ! */ ! @Override ! public Object getInstance(IContext context) ! { ! String name=context.getContext().getProperty("NAME"); ! BasicRemoteSessionManager result=null; ! if(name!=null) ! { ! try ! { ! // gets sessionManager from registered on ! // plugin manager according name ! ISessionManager sessionMng=(ISessionManager) ! manager.getByName( ! ISessionManager.class, ! name); ! // creates result from returned plugin ! result=new BasicRemoteSessionManager( ! (ISessionManager) ! sessionMng.getInstance(null)); ! }catch(Exception e) ! { ! // TODO handle - log ! } ! } ! return result; ! } ! ! /** Creates IRemoteSessionManager instance from session manager with ! * given name. ! * ! * Creates context for <code>getInstance</code> method containing name. ! * @param managerName SessionManager plugin name. ! * ! * @return IRemoteSessionManager instance or null if given name is null, ! * session manager plugin with given name doesn't exist or ! * BasicRemoteSessionManager instance can't be created. ! */ ! public IRemoteSessionManager remoteView(String managerName) ! { ! if(managerName==null) ! return null; ! ! // creates context ! Properties prop=new Properties(); ! prop.put("NAME",managerName); ! IContext context=new Context(prop); ! ! // creates instance using context ! return (IRemoteSessionManager)getInstance(context); ! } ! ! } Index: BasicRemoteSessionManager.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/plugins/remote/displaysystem/BasicRemoteSessionManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicRemoteSessionManager.java 18 Oct 2005 17:55:21 -0000 1.1 --- BasicRemoteSessionManager.java 14 Oct 2006 16:22:24 -0000 1.2 *************** *** 1,198 **** ! /* ! * $RCSfile$ ! * * $Log$ ! * Revision 1.1 2005/10/18 17:55:21 mstsxfx ! * remote view session manager plugin + helper class ! * ! */ ! package exfex.common.plugins.remote.displaysystem; ! ! import java.rmi.RemoteException; ! import java.rmi.server.UnicastRemoteObject; ! import java.util.List; ! ! import exfex.common.displaysystem.ISession; ! import exfex.common.displaysystem.ISessionFactory; ! import exfex.common.displaysystem.ISessionManager; ! import exfex.common.pluginsystem.PluginException; ! import exfex.common.pluginsystem.PluginSecurityException; ! import exfex.common.remote.displaysystem.IRemoteSessionManager; ! import exfex.common.remote.security.IRemoteIdentity; ! import exfex.common.security.IIdentity; ! ! /** Remote view of a SessionManager. ! * ! * This class is adapter for ISessionManager type used by ! * {@link exfex.common.remote.displaysystem.IRemoteSessionManagerFactory} ! * plugin and it creates secure service to control plugin system. Each method ! * accepts identity parameter to perform security checking for authorization of ! * given identity for operation. If identity is authorized, delegates operation ! * to the local SessionManager set in constructor. ! * <br> ! * Extends UnicastRemoteObject to behave as RMI object (it can be used as remote ! * object using RMI mechanism). This instance should be registered by Naming ! * service to be accessible remotly as service. ! * <br> ! * This class is not plugin but it is used by BasicRemoteSessionManagerFactory ! * plugin. ! * <p> ! * <pre> ! * Changes: ! * 18.10.2005 msts - created ! * </pre> ! * ! * @author msts ! */ ! public class BasicRemoteSessionManager extends UnicastRemoteObject implements ! IRemoteSessionManager ! { ! private static final long serialVersionUID = 1L; ! ! /** Local view of the session manager. ! * All operations are delegated to this instance. ! */ ! private final ISessionManager localView; ! ! /** Constructor without intialization. ! * This constructor is disabled to avoid uninitialized class creation. ! * ! */ ! private BasicRemoteSessionManager()throws RemoteException ! { ! localView=null; ! } ! ! /** Initializating constructor. ! * ! * Calls supertype constructor without parameters and sets localView ! * field instance from given parameter. ! * ! * @param localView Local view to the SessionManager. ! * @throws RemoteException if unable to initialize UnicastRemoteObject. ! * @throws NullPointerException If localView parameter is null. ! */ ! public BasicRemoteSessionManager(ISessionManager localView) ! throws RemoteException, NullPointerException ! { ! super(); ! if(localView==null) ! throw new NullPointerException(new String("Given localView is null")); ! this.localView=localView; ! } ! ! /** Returns actives top level sessions. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#getActive()} method. ! * ! * @param id Caller identificator. ! * @return Array of sessions. ! * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException, PluginSecurityException//{{{ ! { ! // TODO security ! ! return localView.getActive(); ! }//}}} ! ! /** Registers new toplevel session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#registerSession(ISessionFactory)} method. ! * ! * @param id Caller identificator. ! * @param sessionplugin Plugin for session creation. ! * @return Created session. ! * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession registerSession(IRemoteIdentity id, ISessionFactory sessionplugin) ! throws RemoteException, PluginSecurityException//{{{ ! { ! // TODO security ! ! return localView.registerSession(sessionplugin); ! }//}}} ! ! ! ! /** Creates new child session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#execSession(ISession, ISessionFactory)} ! * method. ! * ! * @param id Caller identificator. ! * @param session Parent session. ! * @param sessionplugin Plugin for session creation. ! * @return Created session. ! * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession execSession(IIdentity id, ISession session, ISessionFactory sessionplugin) ! throws RemoteException, PluginSecurityException//{{{ ! { ! // FIXME security ! ! return localView.execSession(session, sessionplugin); ! }//}}} ! ! /** Returns all sessions' factories. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#getSessionFactories()} method. ! * ! * @param id Caller identificator. ! * @return list of all registered plugin factories. ! * @throws PluginException If no session factory is registered on this ! * manager. ! * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public List<ISessionFactory> getSessionFactories(IRemoteIdentity id) ! throws PluginException, RemoteException, PluginSecurityException//{{{ ! { ! // FIXME security ! ! return localView.getSessionFactories(); ! }//}}} ! ! /** Kills session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#killSession(ISession)} method. ! * ! * @param id Caller identificator. ! * @param session Session to kill. ! * @throws RemoteException If problem during RMI call occures. ! * @throws PluginSecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public void killSession(IIdentity id, ISession session) ! throws RemoteException, PluginSecurityException//{{{ ! { ! // FIXME security ! ! localView.killSession(session); ! ! }//}}} ! ! } --- 1,201 ---- ! /* ! * $RCSfile$ ! * * $Log$ ! * Revision 1.2 2006/10/14 16:22:24 mstsxfx ! * changes made really long ago (no idea) ! * ! * Revision 1.1 2005/10/18 17:55:21 mstsxfx ! * remote view session manager plugin + helper class ! * ! */ ! package exfex.common.plugins.remote.displaysystem; ! ! import java.rmi.RemoteException; ! import java.rmi.server.UnicastRemoteObject; ! import java.util.List; ! ! import exfex.common.displaysystem.ISession; ! import exfex.common.displaysystem.ISessionFactory; ! import exfex.common.displaysystem.ISessionManager; ! import exfex.common.pluginsystem.PluginException; ! import exfex.common.remote.displaysystem.IRemoteSession; ! import exfex.common.remote.displaysystem.IRemoteSessionManager; ! import exfex.common.remote.security.IRemoteIdentity; ! import exfex.common.security.SecurityException; ! ! /** Remote view of a SessionManager. ! * ! * This class is adapter for ISessionManager type used by ! * {@link exfex.common.remote.displaysystem.IRemoteSessionManagerFactory} ! * plugin and it creates secure service to control plugin system. Each method ! * accepts identity parameter to perform security checking for authorization of ! * given identity for operation. If identity is authorized, delegates operation ! * to the local SessionManager set in constructor. ! * <br> ! * Extends UnicastRemoteObject to behave as RMI object (it can be used as remote ! * object using RMI mechanism). This instance should be registered by Naming ! * service to be accessible remotly as service. ! * <br> ! * This class is not plugin but it is used by BasicRemoteSessionManagerFactory ! * plugin. ! * <p> ! * <pre> ! * Changes: ! * 18.10.2005 msts - created ! * </pre> ! * ! * @author msts ! */ ! public class BasicRemoteSessionManager extends UnicastRemoteObject implements ! IRemoteSessionManager ! { ! private static final long serialVersionUID = 1L; ! ! /** Local view of the session manager. ! * All operations are delegated to this instance. ! */ ! private final ISessionManager localView; ! ! /** Constructor without intialization. ! * This constructor is disabled to avoid uninitialized class creation. ! * ! */ ! private BasicRemoteSessionManager()throws RemoteException ! { ! localView=null; ! } ! ! /** Initializating constructor. ! * ! * Calls supertype constructor without parameters and sets localView ! * field instance from given parameter. ! * ! * @param localView Local view to the SessionManager. ! * @throws RemoteException if unable to initialize UnicastRemoteObject. ! * @throws NullPointerException If localView parameter is null. ! */ ! public BasicRemoteSessionManager(ISessionManager localView) ! throws RemoteException, NullPointerException ! { ! super(); ! if(localView==null) ! throw new NullPointerException("Given localView is null"); ! this.localView=localView; ! } ! ! /** Returns actives top level sessions. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#getActive()} method. ! * ! * @param id Caller identificator. ! * @return Array of sessions. ! * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession [] getActive(IRemoteIdentity id) ! throws RemoteException, SecurityException//{{{ ! { ! // TODO security ! ! return localView.getActive(); ! }//}}} ! ! /** Registers new toplevel session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#registerSession(ISessionFactory)} method. ! * ! * @param id Caller identificator. ! * @param sessionplugin Plugin for session creation. ! * @return Created session. ! * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession registerSession(IRemoteIdentity id, ISessionFactory sessionplugin) ! throws RemoteException, SecurityException//{{{ ! { ! // TODO security ! ! return localView.registerSession(sessionplugin); ! }//}}} ! ! ! ! /** Creates new child session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#execSession(ISession, ISessionFactory)} ! * method. ! * ! * @param id Caller identificator. ! * @param session Parent session. ! * @param sessionplugin Plugin for session creation. ! * @return Created session. ! * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public ISession execSession(IRemoteIdentity id, IRemoteSession session, ISessionFactory sessionplugin) ! throws RemoteException, SecurityException//{{{ ! { ! // FIXME security ! ! return localView.execSession(session.getSession(), sessionplugin); ! }//}}} ! ! /** Returns all sessions' factories. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#getSessionFactories()} method. ! * ! * @param id Caller identificator. ! * @return list of all registered plugin factories. ! * @throws PluginException If no session factory is registered on this ! * manager. ! * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public List<ISessionFactory> getSessionFactories(IRemoteIdentity id) ! throws PluginException, RemoteException, SecurityException//{{{ ! { ! // FIXME security ! ! return localView.getSessionFactories(); ! }//}}} ! ! /** Kills session. ! * ! * TODO id and security layer. ! * ! * Delegates operation to the localView instance using ! * {@link ISessionManager#killSession(ISession)} method. ! * ! * @param id Caller identificator. ! * @param session Session to kill. ! * @throws RemoteException If problem during RMI call occures. ! * @throws SecurityException if unauthorized id requieres this ! * operation. ! */ ! synchronized public void killSession(IRemoteIdentity id, ISession session) ! throws RemoteException, SecurityException//{{{ ! { ! // FIXME security ! ! localView.killSession(session); ! ! }//}}} ! ! } |
From: Pavel O. <pa...@us...> - 2006-02-04 22:21:53
|
Update of /cvsroot/exfex/exfex/source/exfex/common/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14287 Modified Files: LineReader.java Added Files: CachedLineReader.java RegexpLineReader.java Log Message: Pridano nacitani regexp line readeru --- NEW FILE: CachedLineReader.java --- /* * $RCSfile: CachedLineReader.java,v $ * * $Log: CachedLineReader.java,v $ * Revision 1.1 2006/02/04 22:21:45 pavel_o * Pridano nacitani regexp line readeru * * Revision 1.1 2005/12/08 21:36:44 pavel_o * Basic version * * */ package exfex.common.utils; import exfex.common.utils.*; import java.io.*; // Cache support // keeps capacity lines in cache public class CachedLineReader extends LineReader { private int m_capacity = 0; private CachedLineReader() {} public CachedLineReader(String fileName, int capacity) { super(fileName); m_capacity = capacity; } // Maybe BufferedInputStream is better public CachedLineReader(InputStream stream, int capacity) { super( stream ); m_capacity = capacity; } public int getCapacity() { return m_capacity; } // returns old capacity public int setCapacity(int newCapacity) { int old = m_capacity; m_capacity = newCapacity; return old; } } --- NEW FILE: RegexpLineReader.java --- /* * $RCSfile: RegexpLineReader.java,v $ * * $Log: RegexpLineReader.java,v $ * Revision 1.1 2006/02/04 22:21:45 pavel_o * Pridano nacitani regexp line readeru * * Revision 1.1 2005/12/08 21:36:44 pavel_o * Basic version * * */ package exfex.common.utils; import exfex.common.utils.*; import java.io.*; import java.util.regex.*; /** * * * Adapter to LineReader for regexp purposes */ public class RegexpLineReader { private LineReader m_lineReader; private Pattern m_pattern; private int m_prevPos = 0; private int m_nextPos = 0; /** * * */ public RegexpLineReader(LineReader lineReader, String regexp) { m_lineReader = lineReader; m_pattern = Pattern.compile( regexp ); } /** * * */ public void close() { try { m_lineReader.close(); } catch ( java.io.IOException e) { e.printStackTrace(); // TODO - throw exfex exception or so } } /** * * */ public String getRegexp() { return m_pattern.pattern(); } /** * returns old value * * */ public String setRegexp(String regexp) { String old = m_pattern.pattern(); m_pattern = Pattern.compile( regexp ); return old; } /** * first line matching actualy set regexp * */ public String getFirst(int startPos) { String line = null; m_nextPos = startPos; while ( (line = m_lineReader.getLine( m_nextPos++)) != null ) { Matcher matcher = m_pattern.matcher( line ); if ( matcher.matches()) return line; } return null; } /** * gets next matching line * @return */ public String getNext() { return getFirst( m_nextPos ); } /** * gets previous matching line * @return */ public String getPrev() { String line = null; while ( (m_prevPos) > 0 && ( (line = m_lineReader.getLine( --m_prevPos )) != null ) ) { Matcher matcher = m_pattern.matcher( line ); if ( matcher.matches()) return line; } return null; } /** * gets last matching line * * */ public String getLast(int startPos) { String oldLine = null; String line = null; while ( (line = m_lineReader.getLine( startPos )) != null ) { Matcher matcher = m_pattern.matcher( line ); if ( matcher.matches()) { oldLine = line; m_prevPos = startPos; } startPos++; } return oldLine; } /** * * * */ public boolean match(int linePos) { Matcher matcher = m_pattern.matcher( m_lineReader.getLine( linePos ) ); return matcher.matches(); } /** * gets line on given position * * */ public String getLine(int linePos) { return m_lineReader.getLine( linePos ); } /** * gets line count * toto asi nepujde */ public int getLinesCount() { return m_lineReader.getLinesCount(); } } Index: LineReader.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/utils/LineReader.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LineReader.java 8 Dec 2005 21:36:44 -0000 1.1 --- LineReader.java 4 Feb 2006 22:21:45 -0000 1.2 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.2 2006/02/04 22:21:45 pavel_o + * Pridano nacitani regexp line readeru + * * Revision 1.1 2005/12/08 21:36:44 pavel_o * Basic version *************** *** 34,44 **** // methods //---------------------------------------------------------------------- ! /** ! * TextReader class constructor. * @param filename name of source text file * @throws Exception if opening file has failed */ ! public LineReader(String filename) //throws ReposException { try --- 37,50 ---- // methods //---------------------------------------------------------------------- ! ! protected LineReader() ! {} ! /** ! * LineReader class constructor. * @param filename name of source text file * @throws Exception if opening file has failed */ ! public LineReader(String filename) { try *************** *** 56,68 **** /** ! * TextReader class constructor. ! * @param filename name of source text file * @throws Exception if opening file has failed */ ! public LineReader(byte [] buff) //throws ReposException { try { ! m_sourceFile = new LineNumberReader( new InputStreamReader(new ByteArrayInputStream( buff ))); m_position = 0; } --- 62,74 ---- /** ! * LineReader class constructor. ! * @param stream InputStream source * @throws Exception if opening file has failed */ ! public LineReader( InputStream stream ) { try { ! m_sourceFile = new LineNumberReader( new InputStreamReader( stream )); m_position = 0; } *************** *** 102,106 **** //---------------------------------------------------------------------- ! public String getLinePosition() { return Integer.toString(m_position); --- 108,112 ---- //---------------------------------------------------------------------- ! public String getLinePositionString() { return Integer.toString(m_position); *************** *** 108,111 **** --- 114,123 ---- //---------------------------------------------------------------------- + public int getLinePosition() + { + return m_position; + } + + //---------------------------------------------------------------------- public String getLine( int position ) { *************** *** 128,130 **** --- 140,162 ---- } + + + /** + * closes stream/file + */ + public void close() throws IOException + { + m_sourceFile.close(); + } + + /** + * toto asi nepujde :( + */ + public int getLinesCount() + { + return 0; + } + + } + |
From: Michal H. <ms...@us...> - 2006-01-19 19:33:10
|
Update of /cvsroot/exfex/exfex/source/exfex/common/utils/security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24274/source/exfex/common/utils/security Modified Files: PublicSecretSecurityDataAdapter.java Log Message: unset* methods added Index: PublicSecretSecurityDataAdapter.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/utils/security/PublicSecretSecurityDataAdapter.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PublicSecretSecurityDataAdapter.java 29 Dec 2005 16:13:27 -0000 1.2 --- PublicSecretSecurityDataAdapter.java 19 Jan 2006 19:33:01 -0000 1.3 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.3 2006/01/19 19:33:01 mstsxfx + * unset* methods added + * * Revision 1.2 2005/12/29 16:13:27 mstsxfx * secret key is stored to the *************** *** 34,38 **** * All calls to this class performes logic upon security data storage. TODO * ! * <h3>Principes</h3> * Each resource (entity that has to be protected by security system) is * associated with 3 domains: --- 37,41 ---- * All calls to this class performes logic upon security data storage. TODO * ! * <h3>Principle</h3> * Each resource (entity that has to be protected by security system) is * associated with 3 domains: *************** *** 59,67 **** * is also set in constructor. * <br> ! * User of this class can ask for and set permission by 3 pairs of methods: * <ul> ! * <li>{@link #canRead(String, User)} and {@link #setRead(String, User)} ! * <li>{@link #canWrite(String, User)} and {@link #setWrite(String, User)} ! * <li>{@link #canControl(String, User)} and {@link #setControl(String, User)} * </ul> * --- 62,74 ---- * is also set in constructor. * <br> ! * User of this class can ask for, set and unset permission by following ! * methods: * <ul> ! * <li>{@link #canRead(String, User)}, {@link #setRead(String, User)} and ! * {@link #unsetRead(String, User)} ! * <li>{@link #canWrite(String, User)}, {@link #setWrite(String, User)} and ! * {@link #unsetWrite(String, User)} ! * <li>{@link #canControl(String, User)}, {@link #setControl(String, User)} and ! * {@link #unsetControl(String, User)} * </ul> * *************** *** 89,96 **** * <pre> * Changes: * 9.12.2005 msts - created * </pre> * ! * @author miso */ public class PublicSecretSecurityDataAdapter --- 96,105 ---- * <pre> * Changes: + * 19.1.2006 msts - checkUserProfile method bug fixed - exception is thrown + * if resource is not found, unset* methods * 9.12.2005 msts - created * </pre> * ! * @author msts */ public class PublicSecretSecurityDataAdapter *************** *** 137,142 **** /** Initializating constructor. * ! * Cleans up given data storage instance (destroy all resources and ! * domains). * @param dataStorage Instance of security data. Must be non null. * @param instanceName Name of this instance. It should be unique among other --- 146,154 ---- /** Initializating constructor. * ! * Uses given dataStorage without changes. User should be aware of ! * problems if storage contains uncorrect data (resource is not ! * associated with correct domains, domains doesn't contain correct ! * keys etc.). ! * * @param dataStorage Instance of security data. Must be non null. * @param instanceName Name of this instance. It should be unique among other *************** *** 145,149 **** */ public PublicSecretSecurityDataAdapter(ISecurityData dataStorage, String instanceName) - throws NullPointerException { // storage check --- 157,160 ---- *************** *** 201,204 **** --- 212,217 ---- throws ResourceException { + if(name==null) + throw new NullPointerException("name is null"); try { *************** *** 229,232 **** --- 242,247 ---- throws ResourceException { + if(name == null) + throw new NullPointerException("name is null"); try { *************** *** 277,280 **** --- 292,297 ---- public void removeResource(String name)throws ResourceException { + if(name == null) + throw new NullPointerException("name is null"); try { *************** *** 330,334 **** * will return true. * ! * @see #setUserProfile(String, User, String) for implementation * details (uses READ string as last parameter). * @param resourceName Name of the resource. Must be non null. --- 347,351 ---- * will return true. * ! * @see #setUserProfile for implementation * details (uses READ string as last parameter). * @param resourceName Name of the resource. Must be non null. *************** *** 344,348 **** // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"READ"); } --- 361,383 ---- // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"READ", true); ! } ! ! /** Clears secret key from userProfile. ! * ! * @param resourceName Resource name. ! * @param userProfile User profile. ! * @throws ResourceException if resource with given name is not ! * registered. ! */ ! public void unsetRead(String resourceName, User userProfile) ! throws ResourceException ! { ! // null values are not valid, so returns with false ! if(resourceName==null || userProfile==null) ! return ; ! ! // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"READ", false); } *************** *** 371,374 **** --- 406,426 ---- } + /** Clears secret key from userProfile. + * + * @param resourceName Name of the resource. Must be non null. + * @param userProfile User profile. Must be non null. + * @throws ResourceException If given resource is not registered. + */ + public void unsetWrite(String resourceName, User userProfile) + throws ResourceException + { + // null values are not valid, so returns with false + if(resourceName==null || userProfile==null) + return ; + + // uses helper method to perform all operations + setUserProfile(resourceName,userProfile,"WRITE", false); + } + /** Sets user information to be able write on given resource. * *************** *** 384,388 **** * will return true. * ! * @see #setUserProfile(String, User, String) for implementation * details (uses WRITE string as last parameter). * @param resourceName Name of the resource. Must be non null. --- 436,440 ---- * will return true. * ! * @see #setUserProfile for implementation * details (uses WRITE string as last parameter). * @param resourceName Name of the resource. Must be non null. *************** *** 398,402 **** // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"WRITE"); } --- 450,454 ---- // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"WRITE", true); } *************** *** 438,442 **** * will return true. * ! * @see #setUserProfile(String, User, String) for implementation * details (uses CONTROL string as last parameter). * @param resourceName Name of the resource. Must be non null. --- 490,494 ---- * will return true. * ! * @see #setUserProfile for implementation * details (uses CONTROL string as last parameter). * @param resourceName Name of the resource. Must be non null. *************** *** 452,456 **** // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"CONTROL"); } --- 504,525 ---- // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"CONTROL", true); ! } ! ! /** Clears secret key from userProfile. ! * ! * @param resourceName Name of the resource. Must be non null. ! * @param userProfile User profile. Must be non null. ! * @throws ResourceException If given resource is not registered. ! */ ! public void unsetControl(String resourceName, User userProfile) ! throws ResourceException ! { ! // null values are not valid, so returns with false ! if(resourceName==null || userProfile==null) ! return ; ! ! // uses helper method to perform all operations ! setUserProfile(resourceName,userProfile,"CONTROL", false); } *************** *** 510,517 **** --- 579,588 ---- { // this shouldn't happen and if happens, then it is bug + // TODO handle } catch(SecurityContextException e) { // this shouldn't happen and if happens, then it is bug + // TODO handle } *************** *** 578,587 **** * @param userProfile User profile instance. * @param domName Domain name. (name of the access permission) * @throws ResourceException if no resource with given name is * registered. */ ! private void setUserProfile(String resourceName, User userProfile, String domName) throws ResourceException { try { --- 649,668 ---- * @param userProfile User profile instance. * @param domName Domain name. (name of the access permission) + * @param mode Boolean value if key should be set (true) or cleared + * (false). * @throws ResourceException if no resource with given name is * registered. */ ! private void setUserProfile(String resourceName, User userProfile, String domName, boolean mode) throws ResourceException { + // if key should be cleared, removes key from profile + if(mode==false) + { + userProfile.removeProfileInfo(name+".secretKey."+resourceName+"."+domName); + return; + } + + // key should be set to the profile try { *************** *** 639,642 **** --- 720,727 ---- // compares keys return compareKeys(userKey, secretKey); + }catch(ResourceException e) + { + // resource exception is just rethrown + throw e; }catch(Exception e) { |
From: Michal H. <ms...@us...> - 2006-01-19 19:32:26
|
Update of /cvsroot/exfex/exfex/source/exfex/common/utils/security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24189/source/exfex/common/utils/security Modified Files: UnixSecurityDataAdapter.java Log Message: implementation of UnixSecurityDataAdapter Index: UnixSecurityDataAdapter.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/utils/security/UnixSecurityDataAdapter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UnixSecurityDataAdapter.java 28 Dec 2005 18:49:32 -0000 1.1 --- UnixSecurityDataAdapter.java 19 Jan 2006 19:32:17 -0000 1.2 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.2 2006/01/19 19:32:17 mstsxfx + * implementation of UnixSecurityDataAdapter + * * Revision 1.1 2005/12/28 18:49:32 mstsxfx * Adapters for securityData *************** *** 9,24 **** [...1151 lines suppressed...] + } + + + /** Check if user is member of the group. + * + * NOTE This method doesn't perform any parameters checking. + * + * @param groupName Group name. + * @param uid User id. + * @return true if given user is member of given group, false otherwise. + */ + protected boolean isMemeber(String groupName, Integer uid) + { + List<Integer> members=groups.get(groupName); + if(members==null) + return false; + + return members.contains(uid); + } } |
From: Michal H. <ms...@us...> - 2006-01-19 19:31:42
|
Update of /cvsroot/exfex/exfex/source/exfex/common/security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23987/source/exfex/common/security Modified Files: User.java Log Message: removeProfileInfo method added Index: User.java =================================================================== RCS file: /cvsroot/exfex/exfex/source/exfex/common/security/User.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** User.java 28 Dec 2005 16:44:58 -0000 1.1 --- User.java 19 Jan 2006 19:31:35 -0000 1.2 *************** *** 3,6 **** --- 3,9 ---- * * $Log$ + * Revision 1.2 2006/01/19 19:31:35 mstsxfx + * removeProfileInfo method added + * * Revision 1.1 2005/12/28 16:44:58 mstsxfx * classes (with implementation) instead of interfaces *************** *** 36,39 **** --- 39,43 ---- * <pre> * Changes: + * 19.1.2006 msts - removeProfileInfo method added * 16.12.2005 msts - created (User interface is removed and just this * implementation is used) *************** *** 135,138 **** --- 139,153 ---- } + /** Removes key, value pair from profile. + * + * @param key Name of the key. + * @return Value associated with key. + */ + public Object removeProfileInfo(String key) + { + return profile.remove(key); + } + + /** Equals method. * |
From: Michal H. <ms...@us...> - 2006-01-19 19:30:28
|
Update of /cvsroot/exfex/exfex/tests/source/exfex/common/utils/security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23659/tests/source/exfex/common/utils/security Added Files: AllTests.java PublicSecretSecurityDataAdapterTest.java Log Message: AllTests for security package PublicSecretSecurityDataAdapter test --- NEW FILE: PublicSecretSecurityDataAdapterTest.java --- /** * $RCSfile: PublicSecretSecurityDataAdapterTest.java,v $ * * $Log: PublicSecretSecurityDataAdapterTest.java,v $ * Revision 1.1 2006/01/19 19:30:14 mstsxfx * AllTests for security package * PublicSecretSecurityDataAdapter test * */ package exfex.common.utils.security; import java.util.LinkedList; import java.util.List; import junit.framework.Assert; import junit.framework.TestCase; import exfex.common.plugins.security.StandardSecurityData; import exfex.common.security.ResourceException; import exfex.common.security.User; /** Test for PublicSecretSecurityDataAdapter. * * <p> * <pre> * Changes: * 19.1.2006 msts - created * </pre> * * @author msts */ public class PublicSecretSecurityDataAdapterTest extends TestCase { /** Tested adapter */ private PublicSecretSecurityDataAdapter adapter; /** All known users for this test. */ private List<User> users=new LinkedList<User>(); /** Number of tested users. */ private static final int usersCount = 1; /** Number of tested resources. */ private static final int resourcesCount = 10; /** * Constructor for PublicSecretSecurityDataAdapterTest. * @param name */ public PublicSecretSecurityDataAdapterTest(String name) { super(name); } /** * @see TestCase#setUp() * * @throws Exception if unexpected exception occure. */ @Override protected void setUp() throws Exception { adapter=new PublicSecretSecurityDataAdapter( new StandardSecurityData(), "PublicSecretTest"); // creates bunch of users for(int i=0;i<usersCount;i++) users.add(new User("User"+i,i)); // registers some resources for(int i=0;i<resourcesCount;i++) adapter.registerResource("Resource"+i, null); } /** Cleans up after setUp. * * @throws Exception if unexpected exception occure. */ @Override protected void tearDown() throws Exception { users.clear(); for(String name: adapter.getResourceNames()) adapter.removeResource(name); } /** Checks callings with bad parameters. * * @throws Throwable if unexpected exception occure. */ protected void badParamtersTest()throws Throwable { // constructor parameters System.out.print("Constructor parameters tests:"); try { new PublicSecretSecurityDataAdapter(null,null); Assert.fail(); }catch(NullPointerException e) { } try { new PublicSecretSecurityDataAdapter(new StandardSecurityData(),null); Assert.fail(); }catch(NullPointerException e) { // both are successfull System.out.println(" ok\n"); } // TODO other methods } /** Try to use unregisterd resource. * * Use fake name to the all methods working with resource name except * registerResource (which doesn't make sense in this context and test * to this method is done in different method. * * @throws Throwable if unexpected exception occure. */ protected void fakeNameTest()throws Throwable { System.out.println("fakeNameTest (unknown resource name)"); // try fake name to getResourceObject, this should end with // exception, otherwise it is an error try { System.out.print("getResourceObject: "); adapter.getResourceObject("fakeResourceName"); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to removeResource try { System.out.print("removeResource: "); adapter.removeResource("fakeResourceName"); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // use this user - no changes are done to its profile User u=users.get(0); // try name to setControl try { System.out.print("setControl: "); adapter.setControl("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to setRead try { System.out.print("setRead: "); adapter.setRead("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to setWrite try { System.out.print("setWrite: "); adapter.setWrite("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to canControl try { System.out.print("canControl: "); adapter.canControl("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to canRead try { System.out.print("canRead: "); adapter.canRead("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } // try name to canWrite try { System.out.print("canWrite: "); adapter.canWrite("fakeResourceName", u); System.out.println("failed"); Assert.fail(); }catch(ResourceException e) { System.out.println("ok"); } } /** Checks all users whether they have expected access priviledges. * * Calls canControl, canRead and canWrite methods and their return * values has to be same as canControl, canRead and canWrite. * * @param resources Array of resources names. * @param canRead Mode which should be checked for reading. If users * should be granted read access, value should be true, false otherwise. * @param canWrite Mode which should be checked for reading. If users * should be granted write access, value should be true, false otherwise. * @param canControl Mode which should be checked for reading. If users * should be granted controll access, value should be true, false * otherwise. * @throws Throwable if unexpected exception occure. */ protected void permissionTest(String [] resources, boolean canRead, boolean canWrite, boolean canControl)throws Throwable { for(User u : users) { System.out.println(u+" examined:"); for(String resourceName: resources) { System.out.print("\t"+resourceName); System.out.print(" control"); Assert.assertEquals(adapter.canControl(resourceName, u), canControl); System.out.print("(ok) "); System.out.print(" read"); Assert.assertEquals(adapter.canRead(resourceName, u), canRead); System.out.print("(ok) "); System.out.print(" write"); Assert.assertEquals(adapter.canWrite(resourceName, u), canWrite); System.out.print("(ok) "); System.out.println(); } } } /** Test start method. * * Checks: * <ul> * <li>badParameters (null and so on) * <li>fake names for resources (name for unknown resource) * <li>permission test * </ul> * @throws Throwable if unexpected exception occure. */ @Override protected void runTest() throws Throwable { String [] rs=adapter.getResourceNames(); // bad parameters test badParamtersTest(); System.out.println(); // try fake name fakeNameTest(); System.out.println(); // tries to register already registered resource - should // produce exception try { System.out.print("Duplicit registration test:"); adapter.registerResource("Resource0",null); Assert.fail(); }catch (ResourceException e) { System.out.println(" ok\n"); } // permission tests // check for permissions each user vs. each resource - should // fail for everybody because no set* method has been called yet System.out.println("Unintialized permission test:"); permissionTest(rs, false, false, false); System.out.println(); // now we are working with cerain subset for resources. String [] names={"Resource0"}; System.out.println("Tests will work with following resources: "); for(String nam: names) System.out.print("\""+nam+"\" "); System.out.println(); // sets read access to the resources in names array System.out.println("setRead permission test:"); for(User u: users) for(String nam: names) adapter.setRead(nam, u); // checks if set was correct permissionTest(names, true, false, false); System.out.println(); System.out.println("setWrite permission test:"); // sets write access for(User u: users) for(String nam: names) adapter.setWrite(nam, u); // checks if set was correct permissionTest(names, true, true, false); System.out.println(); System.out.println("setControl permission test:"); // sets write access for(User u: users) for(String nam: names) adapter.setControl(nam, u); // checks if set was correct permissionTest(names, true, true, true); System.out.println(); // unsets read access to the first resouce to all users System.out.println("unsetRead permission test:"); for(User u: users) for(String nam: names) adapter.unsetRead(nam, u); // checks if unset was correct permissionTest(names, false, true, true); System.out.println(); System.out.println("unsetWrite permission test:"); // unsets write access for(User u: users) for(String nam: names) adapter.unsetWrite(nam, u); // checks if unset was correct permissionTest(names, false, false, true); System.out.println(); System.out.println("unsetControl permission test:"); // unsets write access for(User u: users) for(String nam: names) adapter.unsetControl(nam, u); // checks if unset was correct permissionTest(names, false, false, false); System.out.println(); // sets all permissions again for following test for(User u: users) { for(String nam: names) { adapter.setRead(nam, u); adapter.setWrite(nam, u); adapter.setControl(nam, u); } } // try to remove resource - exception is problem because // resource exists try { System.out.println("removeResource test:"); for(String nam: names) adapter.removeResource(nam); System.out.print("ok"); }catch(ResourceException e) { Assert.fail(); } // try to access these resources - should throw exception, // because it was removed try { for(String nam: names) adapter.getResourceObject(nam); Assert.fail(); }catch(ResourceException e) { System.out.println(" Resources succesfully removed"); } // try to register resources again - all users have secret keys // which shouldn't be valid any more - new key should be // generated when resource is registrated System.out.println("Registration Resource0 again test: "); for(String nam: names) adapter.registerResource(nam, null); permissionTest(names, false, false, false); } } --- NEW FILE: AllTests.java --- /** * $RCSfile: AllTests.java,v $ * * $Log: AllTests.java,v $ * Revision 1.1 2006/01/19 19:30:14 mstsxfx * AllTests for security package * PublicSecretSecurityDataAdapter test * */ package exfex.common.utils.security; import junit.framework.Test; import junit.framework.TestSuite; /** Test suite for all tests from exfex.common.utils.security package. * * <p> * <pre> * Changes: * 19.1.2006 msts - created * </pre> * * @author msts */ @SuppressWarnings("all") public class AllTests { public static Test suite() { TestSuite suite = new TestSuite("Test for exfex.common.utils.security"); //$JUnit-BEGIN$ suite.addTest(new PublicSecretSecurityDataAdapterTest("PublicSecretSecurityDataAdapterTest")); //$JUnit-END$ return suite; } } |
From: Michal H. <ms...@us...> - 2006-01-19 19:30:28
|
Update of /cvsroot/exfex/exfex/tests/source/exfex/common/utils/security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23527/tests/source/exfex/common/utils/security Log Message: Directory /cvsroot/exfex/exfex/tests/source/exfex/common/utils/security added to the repository |
From: Michal H. <ms...@us...> - 2006-01-19 19:29:20
|
Update of /cvsroot/exfex/exfex/tests/source/exfex/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23290/tests/source/exfex/common Modified Files: SampleTest.java Log Message: some comments Index: SampleTest.java =================================================================== RCS file: /cvsroot/exfex/exfex/tests/source/exfex/common/SampleTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SampleTest.java 6 Aug 2005 11:05:54 -0000 1.1 --- SampleTest.java 19 Jan 2006 19:29:12 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- package exfex.common; + import junit.framework.Assert; import junit.framework.TestCase; *************** *** 17,20 **** --- 18,23 ---- protected void setUp() throws Exception { super.setUp(); + // initialization method + // all class fields should be intialated here } *************** *** 22,29 **** protected void tearDown() throws Exception { super.tearDown(); } ! public void testSample() { ! assertEquals(true, true); } --- 25,61 ---- protected void tearDown() throws Exception { super.tearDown(); + // cleanup method - everything what has been initializeted in + // setUp should be swaped } ! public void testSample1() { ! ! // test statements - call Assert.fail() if problem occures ! // or throw and exception to emit error. ! // For value assert conditions use Assert.assertEquals() ! Assert.assertEquals(true, true); ! } ! ! public void testSample2()throws Throwable ! { ! int something=1, wrong=3; ! ! // test statements - call Assert.fail() if problem occures ! // or throw and exception to emit error. ! // For value assert conditions use Assert.assertEquals() ! if(something==wrong) ! throw new Exception(); ! } ! ! /* (non-Javadoc) ! * @see junit.framework.TestCase#runTest() ! */ ! @Override ! protected void runTest() throws Throwable ! { ! // Functions for different test cases (samples) ! testSample1(); ! ! testSample2(); } |
From: Michal H. <ms...@us...> - 2006-01-19 19:21:16
|
Update of /cvsroot/exfex/exfex/tests/source/exfex/common/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21068/tests/source/exfex/common/utils Added Files: AllTests.java Log Message: testsuite classes for packages --- NEW FILE: AllTests.java --- /** * $RCSfile: AllTests.java,v $ * * $Log: AllTests.java,v $ * Revision 1.1 2006/01/19 19:21:07 mstsxfx * testsuite classes for packages * */ package exfex.common.utils; import junit.framework.Test; import junit.framework.TestSuite; /** All tests for exfex.common.utils package. * * <p> * <pre> * Changes: * </pre> * * @author msts */ @SuppressWarnings("all") public class AllTests { public static Test suite() { TestSuite suite = new TestSuite("Test for exfex.common.utils"); //$JUnit-BEGIN$ // tests for all subpackages suite.addTest(exfex.common.utils.security.AllTests.suite()); //$JUnit-END$ return suite; } } |
From: Michal H. <ms...@us...> - 2006-01-19 19:21:15
|
Update of /cvsroot/exfex/exfex/tests/source/exfex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21068/tests/source/exfex Modified Files: AllTests.java Added Files: package.html Log Message: testsuite classes for packages --- NEW FILE: package.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> </head> <body bgcolor="white"> Main package for testing. <h2>Package Specification</h2> TODO <p> Tests classes are based on JUnit framework. </body> </html> Index: AllTests.java =================================================================== RCS file: /cvsroot/exfex/exfex/tests/source/exfex/AllTests.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AllTests.java 6 Aug 2005 11:05:55 -0000 1.1 --- AllTests.java 19 Jan 2006 19:21:05 -0000 1.2 *************** *** 1,21 **** package exfex; import junit.framework.Test; import junit.framework.TestSuite; ! /** * @author bossek * */ @SuppressWarnings("all") ! public class AllTests { ! ! public static Test suite() { TestSuite suite = new TestSuite("Test for exfex"); //$JUnit-BEGIN$ suite.addTest(exfex.common.AllTests.suite()); //$JUnit-END$ return suite; } } --- 1,104 ---- package exfex; + import java.lang.reflect.Method; + import junit.framework.Test; import junit.framework.TestSuite; ! /** Testing application. ! * ! * This test application can be used to run either all tests, or if parameter is ! * supplied, AllTest class suite from package parameter. ! * <br> ! * {@link #suite()} method produces TestSuite which contains suits from each ! * exfex direct subpackage. ! * ! * <pre> ! * Changes: ! * 19.1.2006 msts - implemented package parameter ! * file. ! * </pre> ! * * @author bossek + * @author msts * */ @SuppressWarnings("all") ! public class AllTests ! { ! ! /** Returns test suite. ! * ! * @return Instance of test suite. ! */ ! public static Test suite() ! { ! // LineReader is needed ! TestSuite suite = new TestSuite("Test for exfex"); //$JUnit-BEGIN$ + + // all tests for common package suite.addTest(exfex.common.AllTests.suite()); + + // all editor for common package + suite.addTest(exfex.editor.AllTests.suite()); + + // all program for common package + suite.addTest(exfex.program.AllTests.suite()); + //$JUnit-END$ return suite; } + + /** Main method. + * + * If no argument is supplied, all tests defined in suite returned from + * {@link #suite()} method. Otherwise package name is expected and only + * tests from this package is run. Uses given package name which is + * appended with AllTests class. If class loader is not able to find + * such class or this class doesn't implement suite method, main will + * return with error message and no test is run. + * + * @param args Command line arguments. Only first argument is considered. + */ + public static void main(String args[]) + { + Test suiteCollection=null; + + if(args.length>0) + { + // try to get test suite from given parameter and using + // reflection to get suite method. If method is found + // calls it and uses return value to initialize suite + // variable + try + { + Object testSuiteImpl=Class.forName(args[0]+".AllTests").newInstance(); + Method suiteMethod=testSuiteImpl.getClass().getMethod("suite"); + suiteCollection=(Test)suiteMethod.invoke(testSuiteImpl, null); + } + catch(Exception e) + { + // error, no special treatment, because it's + // enough to have suite set to null to cancel + // whole testing + e.printStackTrace(); + } + }else + // uses suite for all tests + suiteCollection=suite(); + + + // check if suite was initialized + if(suiteCollection==null) + { + System.err.println("Unable to get test suite from "+args[0]); + return; + } + + // run testing (using text ui) + junit.textui.TestRunner.run(suiteCollection); + } } |
From: Michal H. <ms...@us...> - 2006-01-19 19:21:15
|
Update of /cvsroot/exfex/exfex/tests/source/exfex/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21068/tests/source/exfex/common Modified Files: AllTests.java Log Message: testsuite classes for packages Index: AllTests.java =================================================================== RCS file: /cvsroot/exfex/exfex/tests/source/exfex/common/AllTests.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AllTests.java 6 Aug 2005 11:05:54 -0000 1.1 --- AllTests.java 19 Jan 2006 19:21:06 -0000 1.2 *************** *** 14,18 **** TestSuite suite = new TestSuite("Test for exfex.common"); //$JUnit-BEGIN$ ! suite.addTestSuite(SampleTest.class); //$JUnit-END$ return suite; --- 14,24 ---- TestSuite suite = new TestSuite("Test for exfex.common"); //$JUnit-BEGIN$ ! ! // tests for this package ! suite.addTest(new SampleTest("SampleTest")); ! ! // tests for all subpackages ! suite.addTest(exfex.common.utils.AllTests.suite()); ! //$JUnit-END$ return suite; |