Class UserMemberCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.customerdirectoryroles.UserMemberCollectionOperations
- All Implemented Interfaces:
IUserMemberCollection,IEntireEntityCollectionRetrievalOperations<UserMember,SeekBasedResourceCollection<UserMember>>,IEntityCreateOperations<UserMember,UserMember>,IEntitySelector<String,IUserMember>,IPartnerComponent<Tuple<String,String>>
public class UserMemberCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements IUserMemberCollection
UserMemberCollectionOperations
Used for managing membership and access to directory roles.
-
Constructor Summary
Constructors Constructor Description UserMemberCollectionOperations(IPartner rootPartnerOperations, String customerId, String roleId)Initializes a new instance of the UserMemberCollectionOperations class -
Method Summary
Modifier and Type Method Description IUserMemberbyId(String userId)Get a single user member operations object.UserMembercreate(UserMember newEntity)Adds customer user to a directory role.SeekBasedResourceCollection<UserMember>get()Gets all the user members of a customer directory role.SeekBasedResourceCollection<UserMember>query(IQuery query)Retrieves the user members of a customer directory role.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
UserMemberCollectionOperations
public UserMemberCollectionOperations(IPartner rootPartnerOperations, String customerId, String roleId)Initializes a new instance of the UserMemberCollectionOperations class- Parameters:
rootPartnerOperations- The partner operations instance.customerId- The customer identifier.roleId- The directory role identifier.
-
-
Method Details
-
byId
Get a single user member operations object.- Specified by:
byIdin interfaceIEntitySelector<String,IUserMember>- Specified by:
byIdin interfaceIUserMemberCollection- Parameters:
userId- The user identifier.- Returns:
- The user member operations instance.
-
create
Adds customer user to a directory role.- Specified by:
createin interfaceIEntityCreateOperations<UserMember,UserMember>- Specified by:
createin interfaceIUserMemberCollection- Parameters:
newEntity- The user to be added,- Returns:
- The customer directory role user member.
-
get
Gets all the user members of a customer directory role.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<UserMember,SeekBasedResourceCollection<UserMember>>- Specified by:
getin interfaceIUserMemberCollection- Returns:
- The directory role user memberships.
-
query
Retrieves the user members of a customer directory role.- Specified by:
queryin interfaceIUserMemberCollection- Parameters:
query- A query to apply onto user member collection.- Returns:
- The directory role user memberships.
-