public class Credentials
extends java.lang.Object
implements com.appian.komodo.api.EngineCredentials, java.io.Serializable
Modifier | Constructor and Description |
---|---|
|
Credentials()
Credentials
Empty constructor.
|
|
Credentials(com.appiancorp.ag.ImmutableCredentials copySource,
java.lang.String tenant,
boolean includeGroupMembership)
Credentials copy constructor with tenant modification.
|
protected |
Credentials(com.google.common.collect.ImmutableSet<java.lang.Long> adminGroups,
com.google.common.collect.ImmutableSet<java.lang.Long> memberGroups,
com.google.common.collect.ImmutableSet<java.lang.String> memberGroupUuids,
int userType,
java.lang.String username,
java.lang.String tenant,
java.lang.String userUuid,
java.lang.Integer userGroupsLocalId)
Constructs the bean that represents a User's credentials.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Long> |
getAdminGroups()
Group IDs for those groups where the user is an administrator.
|
java.lang.String |
getIdentity()
Gets the username of the user to whom these credentials belong.
|
java.util.Set<java.lang.Long> |
getMemberGroups()
Group IDs for those groups where the user is a member.
|
java.util.Set<java.lang.String> |
getMemberGroupUuids()
Returns the UUIDs of the groups where the user is a member.
|
java.lang.Object |
getPayload()
Returns the credentials in the format that is expected by the backend
when they are passed along with an API call.
|
java.lang.String |
getTenant()
Tenant's identifier
|
java.lang.Integer |
getUserGroupsLocalId() |
int |
getUserType()
User's type
|
java.lang.String |
getUserUuid() |
void |
setAdminGroups(java.util.Set<java.lang.Long> adminGroups_)
Sets the Group IDs for those groups where the user is an
administrator.
|
void |
setIdentity(java.lang.String username_)
Sets the username of the user to whom these credentials belong.
|
void |
setMemberGroups(java.util.Set<java.lang.Long> memberGroups_)
Sets the Group IDs for those groups where the user is a
member.
|
void |
setMemberGroupUuids(java.util.Set<java.lang.String> memberGroupUuids)
Sets the UUIDs of the groups where the user is a member.
|
void |
setTenant(java.lang.String tenant_)
Sets the user's tenant identifier
|
void |
setUserGroupsLocalId(java.lang.Integer userGroupsLocalId_) |
void |
setUserType(int userType_)
Sets the user's type
|
void |
setUserUuid(java.lang.String userUuid_) |
java.lang.String |
toString()
Debug representation of Credentials.
|
public Credentials()
public Credentials(com.appiancorp.ag.ImmutableCredentials copySource, java.lang.String tenant, boolean includeGroupMembership)
copySource
- tenant
- includeGroupMembership
- true for engines other than Process, which retains cached groups itself for background processingprotected Credentials(com.google.common.collect.ImmutableSet<java.lang.Long> adminGroups, com.google.common.collect.ImmutableSet<java.lang.Long> memberGroups, com.google.common.collect.ImmutableSet<java.lang.String> memberGroupUuids, int userType, java.lang.String username, java.lang.String tenant, java.lang.String userUuid, java.lang.Integer userGroupsLocalId)
public java.util.Set<java.lang.Long> getAdminGroups()
public void setAdminGroups(java.util.Set<java.lang.Long> adminGroups_)
adminGroups_
- Set with the group IDs for the groups
where the user is an administrator.public java.util.Set<java.lang.Long> getMemberGroups()
public void setMemberGroups(java.util.Set<java.lang.Long> memberGroups_)
memberGroups_
- Set with the group IDs for the groups
where the user is a member.public java.util.Set<java.lang.String> getMemberGroupUuids()
public void setMemberGroupUuids(java.util.Set<java.lang.String> memberGroupUuids)
public int getUserType()
public void setUserType(int userType_)
userType_
- public void setIdentity(java.lang.String username_)
username_
- public java.lang.String getIdentity()
getIdentity
in interface com.appian.komodo.api.EngineCredentials
public java.lang.String getTenant()
public void setTenant(java.lang.String tenant_)
tenant_
- tenant identifierpublic java.lang.Object getPayload()
getPayload
in interface com.appian.komodo.api.EngineCredentials
public java.lang.String getUserUuid()
public void setUserUuid(java.lang.String userUuid_)
public java.lang.Integer getUserGroupsLocalId()
public void setUserGroupsLocalId(java.lang.Integer userGroupsLocalId_)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.