Skip navigation links


com.bea.content.cmis.rest.converters
Enum ResourceTemplate

java.lang.Object
  extended by java.lang.Enum<ResourceTemplate>
      extended by com.bea.content.cmis.rest.converters.ResourceTemplate

All Implemented Interfaces
Serializable, Comparable<ResourceTemplate>

public enum ResourceTemplate
extends Enum<ResourceTemplate>

Resources which are used as templates need to follow these rules: One of the resource methods needs to be identified as the template resource method. This method's parameters will be used to generate the template (no class-field parameters are allowed). One parameter, with a @PathParam annotation starting with "repository..." (i.e. repositoryId or repositoryName) will be filled in with the repository name (or federated repo name). All other parameters annotated with @PathParam or @QueryParam will be used to generate template variables using the annotation value as the template variable.


Enum Constant Summary
objectById
           
objectByPath
           
query
           
typeById
           

 

Method Summary
 String getMimeType()
           
 String getTemplate(oracle.webcenter.jaxrs.framework.uri.UriService uriService, String repoId)
           
 String getType()
           
 URI getUri(oracle.webcenter.jaxrs.framework.uri.UriService uriService, String repoId, Map<String,String> args)
           
static ResourceTemplate valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceTemplate[] values()
          Returns an array containing the constants of this enum type, in the order theyre declared.

 

Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

objectByPath

public static final ResourceTemplate objectByPath

objectById

public static final ResourceTemplate objectById

typeById

public static final ResourceTemplate typeById

query

public static final ResourceTemplate query

Method Detail

values

public static final ResourceTemplate[] values()
Returns an array containing the constants of this enum type, in the order theyre declared.

valueOf

public static ResourceTemplate valueOf(String name)
Returns the enum constant of this type with the specified name.

getType

public String getType()

getMimeType

public String getMimeType()

getTemplate

public String getTemplate(oracle.webcenter.jaxrs.framework.uri.UriService uriService,
                          String repoId)

getUri

public URI getUri(oracle.webcenter.jaxrs.framework.uri.UriService uriService,
                  String repoId,
                  Map<String,String> args)

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.