public class ModuleIdManagerImpl extends Object implements ModuleIdManager
| Constructor and Description |
|---|
ModuleIdManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
generate(Uri gadgetUri,
GadgetsHandlerApi.AuthContext containerAuthContext)
Generate and persist a new moduleId for the given gadgetUri and container auth context.
|
Long |
validate(Uri gadgetUri,
GadgetsHandlerApi.AuthContext containerAuthContext,
Long moduleId)
Checks to make sure that the proposed moduleId for this gadget is valid.
|
public Long validate(Uri gadgetUri, GadgetsHandlerApi.AuthContext containerAuthContext, Long moduleId)
ModuleIdManagervalidate in interface ModuleIdManagergadgetUri - The location of the gadget xml to validate the token forcontainerAuthContext - The Auth context. Basically, the container security token.moduleId - The moduleId sent by the container page.public Long generate(Uri gadgetUri, GadgetsHandlerApi.AuthContext containerAuthContext)
ModuleIdManagergenerate in interface ModuleIdManagergadgetUri - The location of the gadget xml to generate the token forcontainerAuthContext - The Auth context. Basically, the container security token.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.