Class GoogleDriveDatasink
java.lang.Object
net.datenwerke.treedb.service.treedb.AbstractNode<AbstractDatasinkManagerNode>
net.datenwerke.security.service.treedb.entities.SecuredAbstractNode<AbstractDatasinkManagerNode>
net.datenwerke.rs.core.service.datasinkmanager.entities.AbstractDatasinkManagerNode
net.datenwerke.rs.core.service.datasinkmanager.entities.DatasinkDefinition
net.datenwerke.rs.googledrive.service.googledrive.definitions.GoogleDriveDatasink
- All Implemented Interfaces:
Serializable,FolderedDatasink,HasBasicDatasinkService,HasDefaultConfiguration,OAuthAuthenticatable,HierarchicalSecurityTarget,Owneable,SecurityTarget
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@GenerateDto(dtoPackage="net.datenwerke.rs.googledrive.client.googledrive.dto",poso2DtoPostProcessors=GoogleDriveDatasink2DtoPostProcessor.class,additionalFields={,},icon="google_drive")
@Indexed
public class GoogleDriveDatasink
extends DatasinkDefinition
implements OAuthAuthenticatable, FolderedDatasink
Used to define GoogleDrive datasinks that can be used in ReportServer to send
reports to a given google drive account.
- See Also:
-
Field Summary
Fields inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
FLAG_CONFIGURATION_PROTECTION, FLAG_WRITE_PROTECTIONFields inherited from interface net.datenwerke.rs.core.service.datasinkmanager.HasDefaultConfiguration
DEFAULT_EXPORT_FILENAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildAuthorizationUrl(AuthorizationUrlBuilder authorizationUrlBuilder) getDefaultConfiguration(String fileEnding) DefaultApi20Gets the decrypted refresh token.Gets the decrypted secret keyvoidvoidvoidsetRefreshToken(String refreshToken) Encrypts and sets the given refresh token.voidsetSecretKey(String secretKey) Encrypts and sets the given secret key.Methods inherited from class net.datenwerke.rs.core.service.datasinkmanager.entities.DatasinkDefinition
escapeString, getDescription, getKey, getName, hasChildren, setDescription, setKey, setName, toStringMethods inherited from class net.datenwerke.rs.core.service.datasinkmanager.entities.AbstractDatasinkManagerNode
getNodeName, getRootNodeNameMethods inherited from class net.datenwerke.security.service.treedb.entities.SecuredAbstractNode
getAcl, getOwner, getParentTarget, setAcl, setOwnerMethods inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
addChild, addChild, addFlag, clearFlags, equals, getBaseType, getChildren, getChildrenOfType, getChildrenSorted, getCreatedOn, getDeniedChildren, getDescendants, getDescendants, getFlags, getId, getIdOrOldTransient, getLastUpdated, getManagerClass, getOldTransientId, getOldTransientKey, getParent, getPosition, getRootLine, getSupportedChildren, getVersion, hasChildrenOfType, hasDescendantsOfType, hasFlag, hashCode, idsMatch, isAncestorOf, isConfigurationProtected, isFolder, isRoot, isUpdateLastUpdated, isWriteProtected, removeChild, removeFlag, setChildren, setConfigurationProtection, setCreatedOn, setFlags, setId, setLastUpdated, setOldTransientId, setOldTransientKey, setParent, setPosition, setUpdateLastUpdated, setVersion, setWriteProtection, wouldContainFlagMethods inherited from interface net.datenwerke.rs.oauth.service.oauth.OAuthAuthenticatable
getId
-
Constructor Details
-
GoogleDriveDatasink
public GoogleDriveDatasink()
-
-
Method Details
-
getFolder
- Specified by:
getFolderin interfaceFolderedDatasink
-
setFolder
-
getRefreshToken
Gets the decrypted refresh token.- Returns:
- the decrypted refresh token
-
setRefreshToken
Encrypts and sets the given refresh token.- Specified by:
setRefreshTokenin interfaceOAuthAuthenticatable- Parameters:
refreshToken- the refresh token to encrypt and set
-
getAppKey
- Specified by:
getAppKeyin interfaceOAuthAuthenticatable
-
setAppKey
-
getSecretKey
Gets the decrypted secret key- Specified by:
getSecretKeyin interfaceOAuthAuthenticatable- Returns:
- the decrypted secret key
-
setSecretKey
Encrypts and sets the given secret key.- Parameters:
secretKey- the secret key to encrypt and set
-
getOAuthApi
public DefaultApi20 getOAuthApi()- Specified by:
getOAuthApiin interfaceOAuthAuthenticatable
-
buildAuthorizationUrl
- Specified by:
buildAuthorizationUrlin interfaceOAuthAuthenticatable
-
getDatasinkService
- Specified by:
getDatasinkServicein interfaceHasBasicDatasinkService
-
getDefaultConfiguration
- Specified by:
getDefaultConfigurationin interfaceHasDefaultConfiguration
-