Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jaspersoft.jasperserver.api.metadata.common.util
Class RepositoryLabelIDHelper

    java.lang.Object
      com.jaspersoft.jasperserver.api.metadata.common.util.RepositoryLabelIDHelper

    public class RepositoryLabelIDHelper

extends java.lang.Object

Version:
  $Id: RepositoryLableIDHelper.java$
Author:
  Alex Chan (achan@jaspersoft.com)

Constructor Summary
`RepositoryLabelIDHelper()`

Method Summary
`static java.lang.String` | `generateIdBasedOnLabel(RepositoryService repository, java.lang.String parentFolder, java.lang.String label)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RepositoryLabelIDHelper

    public RepositoryLabelIDHelper()

Method Detail

### generateIdBasedOnLabel

    public static java.lang.String generateIdBasedOnLabel(RepositoryService repository,
                                                          java.lang.String parentFolder,
                                                          java.lang.String label)

  Parameters:
    `RepositoryService` - repository service for accessing the repository
    `parentFolder` - Full Parent Folder URI for the resource
    `label` - The display label for the resource
  Returns:
    returns a generated ID converting non-alphanumberic characters into underscore, if the id already exists, _1, _2 so on and so forth will be appended until it's unique.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007. All Rights Reserved.