public class

PermissionResource

extends AbstractResource
java.lang.Object
   ↳ com.atlassian.applinks.core.rest.AbstractResource
     ↳ com.atlassian.applinks.core.rest.PermissionResource

Summary

[Expand]
Inherited Fields
From class com.atlassian.applinks.core.rest.AbstractResource
Public Constructors
PermissionResource(UserManager userManager, AdminUIAuthenticator uiAuthenticator, MutatingApplicationLinkService applicationLinkService, InternalHostApplication internalHostApplication, MutatingEntityLinkService entityLinkService, InternalTypeAccessor typeAccessor, RestUrlBuilder restUrlBuilder, RequestFactory requestFactory)
Public Methods
Response canCreateEntityLink(ApplicationId id)
Determines whether the context user can create an entity link belonging to the specified application link
Response canCreateReciprocalEntityLink(ApplicationId id)
Proxy method for determining whether the current user can create an entity link belonging to the local application from the target application specified by the id attribute.
Response canDeleteApplicationLink(ApplicationId id)
Determines whether the context user can delete the specified application link
Response canDeleteEntityLink(ApplicationId applicationId, TypeId localTypeId, String localKey, TypeId remoteTypeId, String remoteKey)
Response canDeleteReciprocalApplicationLink(ApplicationId id)
Proxy method for determining whether the current user can delete the local application reference from the target application specified by the id attribute.
Response canDeleteReciprocalEntityLink(ApplicationId applicationId, TypeId localTypeId, String localKey, TypeId remoteTypeId, String remoteKey)
[Expand]
Inherited Methods
From class com.atlassian.applinks.core.rest.AbstractResource
From class java.lang.Object

Public Constructors

public PermissionResource (UserManager userManager, AdminUIAuthenticator uiAuthenticator, MutatingApplicationLinkService applicationLinkService, InternalHostApplication internalHostApplication, MutatingEntityLinkService entityLinkService, InternalTypeAccessor typeAccessor, RestUrlBuilder restUrlBuilder, RequestFactory requestFactory)

Public Methods

public Response canCreateEntityLink (ApplicationId id)

Determines whether the context user can create an entity link belonging to the specified application link

public Response canCreateReciprocalEntityLink (ApplicationId id)

Proxy method for determining whether the current user can create an entity link belonging to the local application from the target application specified by the id attribute. Passes the local application's id to the canCreateEntityLink(ApplicationId) REST method in the remote application.

public Response canDeleteApplicationLink (ApplicationId id)

Determines whether the context user can delete the specified application link

public Response canDeleteEntityLink (ApplicationId applicationId, TypeId localTypeId, String localKey, TypeId remoteTypeId, String remoteKey)

public Response canDeleteReciprocalApplicationLink (ApplicationId id)

Proxy method for determining whether the current user can delete the local application reference from the target application specified by the id attribute. Passes the local application's id to the canDeleteApplicationLink(ApplicationId) REST method in the remote application.

public Response canDeleteReciprocalEntityLink (ApplicationId applicationId, TypeId localTypeId, String localKey, TypeId remoteTypeId, String remoteKey)