NEED A PERFECT PAPER? PLACE YOUR FIRST ORDER AND SAVE 15% USING COUPON:

System Development Techniques Individual Assignment Read instructions very carefully! 15th of August – DEADLINE “DIT SDT …” file will have all instruct

System Development Techniques Individual Assignment Read instructions very carefully!

15th of August – DEADLINE

“DIT SDT …” file will have all instruct

Click here to Order a Custom answer to this Question from our writers. It’s fast and plagiarism-free.

System Development Techniques Individual Assignment Read instructions very carefully!

15th of August – DEADLINE

“DIT SDT …” file will have all instructions ITTMS/.DS_Store

__MACOSX/ITTMS/._.DS_Store

ITTMS/.classpath

ITTMS/.project

SDT

org.eclipse.jdt.core.javabuilder

org.eclipse.jdt.core.javanature

ITTMS/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=13
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=13
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.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=13

ITTMS/src/ITTMS.java

ITTMS/src/ITTMS.java

import
 
Domain
.
*
;

public
 
class
 ITTMS 
{

    

    
public
 
static
 
void
 main
(
String
[]
 args
)
 
{

        
// TODO Auto-generated method stub

        
new
 
Domain
.
ITTMS
().
run
();

    
}

}

ITTMS/src/General/Helper.java

ITTMS/src/General/Helper.java

package
 
General
;

import
 java
.
util
.
InputMismatchException
;

import
 java
.
util
.
Scanner
;

public
 
class
 
Helper
 
{

    
public
 
static
 
void
 printBlankLines
(
int
 n
)
 
{

        

        
for
(
int
 i
=
0
;
i
<
n
;
i
++
)
 
{

            
System
.
out
.
println
();

        
}
   

    
}

    

    
public
 
static
 
String
 getString
(
String
 message
)
 
{

        
Scanner
 in 
=
 
new
 
Scanner
(
System
.
in
);

        
System
.
out
.
print
(
message
);

        
String
 input 
=
 in
.
nextLine
();

        
return
 input
;

    
}

    

    
public
 
static
 
int
 getInt
(
String
 message
)
 
{

        
Scanner
 in 
=
 
new
 
Scanner
(
System
.
in
);

        
int
 input 
=
 
0
 
;

        
try
 
{
 
// implement exception handling if user enter non integer value

            
System
.
out
.
print
(
message
);

            input 
=
 in
.
nextInt
();

        
}
 
catch
 
(
InputMismatchException
 e
)
 
{

            
System
.
out
.
println
(
"Please enter an integer !"
);

            in 
=
 
new
 
Scanner
(
System
.
in
);

        
}

        
return
 input
;

    
}

    

    
public
 
static
 
int
 getInt
(
String
 message
,
int
 min
,
 
int
 max
)
 
{

        
int
 input
=
0
;

        
while
(
true
)
 
{

            input 
=
 getInt
(
message
);

            
if
(
input

max
)
 
{

                
System
.
out
.
println
(
“Input should be between ”
+
min
+
” and ”
+
max
);

            
}
else
 
{

                
break
;

            
}

        
}

        
return
 input
;

    
}

    

    

    
public
 
static
 
int
 getChoice
(
int
 max
)
 
{

        
Scanner
 in 
=
 
new
 
Scanner
(
System
.
in
);

        
System
.
out
.
print
(
“Please enter ( 1 – ”
+
max
+
” ) > ”
);

        
int
 choice 
=
 
0
;

        
while
 
(
true
)
 
{

            
try
 
{
 
// implement exception handling if user enter non integer value

                choice 
=
 in
.
nextInt
();

                
if
(
!
(
choice

max
))
 
{

                    
break
;

                
}
else
 
{

                    
throw
 
new
 
InputMismatchException
();

                
}

            
}
 
catch
 
(
InputMismatchException
 e
)
 
{

                
System
.
out
.
println
(
“Please enter an integer ( 1 – ”
+
max
+
” ) !”
);

                
System
.
out
.
print
(
“Please enter again > ”
);

                in 
=
 
new
 
Scanner
(
System
.
in
);

            
}

        
}

        
return
 choice
;

    
}

}

ITTMS/src/DAO/AdministratorDAO.java

ITTMS/src/DAO/AdministratorDAO.java

package
 DAO
;

import
 
Model
.
Administrator
;

public
 
class
 
AdministratorDAO
 
{

    
public
 
Administrator
 getAdministrator
()
 
{

        
//fake admin

        
Administrator
 admin 
=
 
new
 
Administrator
(
“password”
);

        
return
 admin
;

    
}

}

ITTMS/src/DAO/SkillDAO.java

ITTMS/src/DAO/SkillDAO.java

package
 DAO
;

import
 java
.
util
.
*
;

import
 
Model
.
Skill
;

public
 
class
 
SkillDAO
 
{

    
private
 
ArrayList

 skills
;

    

    
public
 
SkillDAO
()
 
{

        
//fake skills database data

        skills
=
 
new
 
ArrayList

();

        
//public Skill(int skillID,String name, int  level) {

        
Skill
 skill1 
=
 
new
 
Skill
(
1
,
“Java 2 Enterprise Edition”
,
1
);

        
Skill
 skill2 
=
 
new
 
Skill
(
2
,
“Java 2 Enterprise Edition”
,
2
);

        
Skill
 skill3 
=
 
new
 
Skill
(
3
,
“C# .Net”
,
1
);

        
Skill
 skill4 
=
 
new
 
Skill
(
4
,
“C# .Net”
,
2
);

        
Skill
 skill5 
=
 
new
 
Skill
(
5
,
“Oracle database administration”
,
1
);

        
Skill
 skill6 
=
 
new
 
Skill
(
6
,
“Oracle database administration”
,
2
);

        
Skill
 skill7 
=
 
new
 
Skill
(
7
,
“MySQL database administration”
,
1
);

        
Skill
 skill8 
=
 
new
 
Skill
(
8
,
“MySQL database administration”
,
2
);

        
Skill
 skill9 
=
 
new
 
Skill
(
9
,
“Azure cloud administration”
,
1
);

        
Skill
 skill10 
=
 
new
 
Skill
(
10
,
“Azure cloud administration”
,
2
);

        
Skill
 skill11 
=
 
new
 
Skill
(
11
,
“AWS cloud administration”
,
1
);

        
Skill
 skill12 
=
 
new
 
Skill
(
12
,
“AWS cloud administration”
,
2
);

        

        skills
.
add
(
skill1
);

        skills
.
add
(
skill2
);

        skills
.
add
(
skill3
);

        skills
.
add
(
skill4
);

        skills
.
add
(
skill5
);

        skills
.
add
(
skill6
);

        skills
.
add
(
skill7
);

        skills
.
add
(
skill8
);

        skills
.
add
(
skill9
);

        skills
.
add
(
skill10
);

        skills
.
add
(
skill11
);

        skills
.
add
(
skill12
);

    
}

    

    
public
 
void
 removeSkillByID
(
int
 id
)
 
{

        
Skill
 skill 
=
 getSkillByID
(
id
);

        skills
.
remove
(
skill
);

    
}

    

    
public
 
void
 addSkill
(
String
 name
,
 
int
 level
)
 
{

        
int
 nextSkillID 
=
 getNextSkillID
();

        
Skill
 newSkill 
=
 
new
 
Skill
(
nextSkillID
,
name
,
level
);

        skills
.
add
(
newSkill
);

    
}

    

    
public
 
int
 getNextSkillID
()
 
{

        
int
 id 
=
 
0
;

        
for
(
Skill
 s 
:
 skills
)
 
{

            
if
(
s
.
getSkillID
()
>
id
)
 
{

                id 
=
 s
.
getSkillID
();

            
}

        
}

        
return
 id
+
1
;

    
}

    

    

    
public
 
ArrayList

 getSkills
()
 
{

        
return
 skills
;

    
}

    

    
public
 
Skill
 getSkillByID
(
int
 id
)
 
{

        
Skill
 skill 
=
 
null
;

        
for
(
Skill
 s 
:
 skills
)
 
{

            
if
(
s
.
getSkillID
()
==
id
)
 
{

                skill 
=
 s
;

                
break
;

            
}

        
}

        
return
 skill
;

    
}

    

    
public
 
boolean
 isSkillIDValid
(
int
 skillID
)
 
{

        
boolean
 isFound 
=
 
false
;

        
for
(
Skill
 s 
:
 skills
)
 
{

            
if
(
s
.
getSkillID
()
 
==
 skillID
)
 
{

                isFound 
=
 
true
;

                
break
;

            
}

        
}

        

        
return
 isFound
;

    
}

    

    
public
 
Skill
 getSkillByNameAndLevel
(
String
 skillName
,
 
int
 level
)
 
{

        
Skill
 skill 
=
 
null
;

        
for
(
Skill
 s 
:
 skills
)
 
{

            
if
(
s
.
getName
().
equals
(
skillName
)
 
&&
 s
.
getLevel
()
==
level
)
 
{

                skill 
=
 s
;

                
break
;

            
}

        
}

        
return
 skill
;

    
}

}

ITTMS/src/DAO/StaffDAO.java

ITTMS/src/DAO/StaffDAO.java

package
 DAO
;

import
 java
.
util
.
*
;

import
 
Domain
.
ITTMS
;

import
 
Model
.
StaffSkill
;

import
 
Model
.
Staff
;

public
 
class
 
StaffDAO
 
{

    
private
 
ArrayList

 staffs
;

    
private
 
SkillDAO
 skills
;

    

    
public
 
StaffDAO
(){

        
//fake staff database data

        

        staffs 
=
 
new
 
ArrayList

();

        skills 
=
 ITTMS
.
getSkillDAO
();

        

        
Staff
 s1 
=
 
new
 
Staff
(
1
,
“user1”
,
 
“password”
,
 
“Staff 1”
);

        s1
.
addSkill
(
skills
.
getSkillByID
(
1
));

        s1
.
addSkill
(
skills
.
getSkillByID
(
3
));

        

        
Staff
 s2 
=
 
new
 
Staff
(
2
,
“user2”
,
 
“password”
,
 
“Staff 2”
);

        s2
.
addSkill
(
skills
.
getSkillByID
(
2
));

        s2
.
addSkill
(
skills
.
getSkillByID
(
4
));

        

        
Staff
 s3 
=
 
new
 
Staff
(
3
,
“user3”
,
 
“password”
,
 
“Staff 3”
);

        s3
.
addSkill
(
skills
.
getSkillByID
(
5
));

        s3
.
addSkill
(
skills
.
getSkillByID
(
6
));

        

        staffs
.
add
(
s1
);

        staffs
.
add
(
s2
);

        staffs
.
add
(
s3
);

    
}

    

    
public
 
Staff
 getStaffByUserName
(
String
 username
)
 
{

        
Staff
 staff 
=
 
null
;

        
for
(
Staff
 s
:
 staffs
)
 
{

            
if
(
s
.
getUsername
().
equals
(
username
))
 
{

                staff 
=
 s
;

                
break
;

            
}

        
}

        
return
 staff
;

    
}

    

    
public
 
boolean
 isValidStaffID
(
int
 staffID
)
 
{

        
boolean
 isValid
=
true
;

        
if
(
getStaffByID
(
staffID
)
==
null
)
 
{

            isValid 
=
 
false
;

        
}

        
return
 isValid
;

    
}

    

    
public
 
Staff
 getStaffByID
(
int
 staffID
)
 
{

        
Staff
 staff 
=
 
null
;

        
for
(
Staff
 s
:
 staffs
)
 
{

            
if
(
s
.
getStaffID
()
==
staffID
)
 
{

                staff 
=
 s
;

                
break
;

            
}

        
}

        
return
 staff
;

    
}

    

    
public
 
ArrayList

 getStaffList
(){

        
return
 staffs
;

    
}

    

    

    

}

ITTMS/src/Model/Skill.java

ITTMS/src/Model/Skill.java

package
 
Model
;

public
 
class
 
Skill
 
{

    

    
private
 
int
 skillID
;

    
private
 
String
 name
;

    
private
 
int
 level
;

    

    
public
 
Skill
(
int
 skillID
,
String
 name
,
 
int
  level
)
 
{

        
this
.
skillID 
=
 skillID
;

        
this
.
name 
=
 name
;

        
this
.
level 
=
 level
;

    
}

    
public
 
int
 getSkillID
()
 
{

        
return
 skillID
;

    
}

    

    
public
 
String
 getName
()
 
{

        
return
 name
;

    
}

    
public
 
int
 getLevel
()
 
{

        
return
 level
;

    
}

    

    
public
 
void
 display
()
 
{

        
System
.
out
.
println
(
“Skill ID:”
+
skillID
+
” Name: ”
+
name 
+
” Level:”
+
level
);

    
}

    

    

}

ITTMS/src/Model/StaffSkill.java

ITTMS/src/Model/StaffSkill.java

package
 
Model
;

import
 java
.
util
.
*
;

public
 
class
 
StaffSkill
 
{

    
private
 
int
 staffID
;

    
private
 
ArrayList

 skills
;

    
public
 
StaffSkill
(
int
 staffID
)
 
{

        
this
.
staffID 
=
 staffID
;

        
this
.
skills 
=
 
new
 
ArrayList

();

    
}

    

    
public
 
ArrayList

 getSkills
()
 
{

        
return
 skills
;

    
}

    
public
 
void
 addSkill
(
Skill
 skill
)
 
{

        
this
.
skills
.
add
(
skill
);

    
}

    
public
 
int
 getStaffID
()
 
{

        
return
 staffID
;

    
}

    
public
 
void
 display
()
 
{

        
for
 
(
Skill
 r 
:
 skills
)
 
{

            r
.
display
();

        
}

    
}

    
public
 
boolean
 isSkillInStaff
(
String
 skillName
)
 
{

        
boolean
 skillInStaff 
=
 
false
;

        
for
 
(
Skill
 r 
:
 skills
)
 
{

            
if
 
(
r
.
getName
().
equals
(
skillName
))
 
{

                skillInStaff 
=
 
true
;

                
break
;

            
}

        
}

        
return
 skillInStaff
;

    
}

    

    
public
 
void
 removeSkillByName
(
String
 skillName
){

        
for
(
Skill
 skill 
:
 skills
)
 
{

            
if
(
skill
.
getName
().
equals
(
skillName
))
 
{

                skills
.
remove
(
skill
);

                
break
;

            
}

        
}

    
}

    

    
public
 
void
 removeSkillByID
(
int
 skillIDToRemove
){

        
for
(
Skill
 skill 
:
 skills
)
 
{

            
if
(
skill
.
getSkillID
()
==
skillIDToRemove
)
 
{

                skills
.
remove
(
skill
);

                
break
;

            
}

        
}

    
}

}

ITTMS/src/Model/User.java

ITTMS/src/Model/User.java

package
 
Model
;

public
 
class
 
User
 
{

    
private
 
String
 username
;

    
private
 
String
 password
;

    

    
public
 
User
(
String
 username
,
 
String
 password
)
 
{

        
this
.
username 
=
 username
;

        
this
.
password 
=
 password
;

    
}

    

    
public
 
String
 getUsername
()
 
{

        
return
 username
;

    
}

    

    
public
 
boolean
 authenticateUser
(
String
 password
)
 
{

        
//Suppose to use SHA algorithm here, 

        
//use clear password for simplification

        
boolean
 status 
=
 
false
;

        
if
(
this
.
password
.
equals
(
password
))
 
{

            status 
=
 
true
;

        
}

        
return
 status
;

    
}

}

ITTMS/src/Model/Administrator.java

ITTMS/src/Model/Administrator.java

package
 
Model
;

public
 
class
 
Administrator
 
extends
 
User
{

    
public
 
Administrator
(

Place your order now for a similar assignment and have exceptional work written by one of our experts, guaranteeing you an A result.

Need an Essay Written?

This sample is available to anyone. If you want a unique paper order it from one of our professional writers.

Get help with your academic paper right away

Quality & Timely Delivery

Free Editing & Plagiarism Check

Security, Privacy & Confidentiality