Class Member
- java.lang.Object
-
- org.gcube.common.storagehubwrapper.shared.Member
-
- All Implemented Interfaces:
Serializable
public class Member extends Object implements Serializable
The Class Member.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Apr 29, 2022
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMember.TYPEThe Enum TYPE.
-
Constructor Summary
Constructors Constructor Description Member()Instantiates a new member.Member(String identity, String name, Member.TYPE memberType)Instantiates a new member.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentity()Gets the identity.Member.TYPEgetMemberType()Gets the member type.StringgetName()Gets the name.voidsetIdentity(String identity)Sets the identity.voidsetMemberType(Member.TYPE memberType)Sets the member type.voidsetName(String name)Sets the name.StringtoString()
-
-
-
Constructor Detail
-
Member
public Member()
Instantiates a new member.
-
Member
public Member(String identity, String name, Member.TYPE memberType)
Instantiates a new member.- Parameters:
identity- the identity is the username of a User or the name of a Group. In general is key to identify he/she/it in the in the infrastructurename- the name is the name of a User or the name of a GroupmemberType- the member type
-
-
Method Detail
-
getIdentity
public String getIdentity()
Gets the identity.- Returns:
- the login in case of user and the groupName stored in SHUB (e.g. gcube-devsec-devVRE) in case of group
-
getName
public String getName()
Gets the name.- Returns:
- the login in case of user and the groupName in case of group
-
getMemberType
public Member.TYPE getMemberType()
Gets the member type.- Returns:
- the member type
-
setIdentity
public void setIdentity(String identity)
Sets the identity.- Parameters:
identity- the new identity
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
setMemberType
public void setMemberType(Member.TYPE memberType)
Sets the member type.- Parameters:
memberType- the new member type
-
-