Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add javadoc for new type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 29, 2015
1 parent d493b44 commit e0d3ead
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Expand Up @@ -28,6 +28,11 @@
import java.io.Serializable;

/**
* Entity type of origin for translation copied.
*
* Usage {@link org.zanata.model.HTextFlowTarget.entityType} and
* {@link org.zanata.model.HTextFlowTargetHistory.entityType}
*
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
*/
public enum TranslationEntityType implements Serializable {
Expand Down
Expand Up @@ -27,9 +27,16 @@
import java.util.Collections;
import java.util.HashSet;

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Sets;
import lombok.Getter;

/**
* Source of action on how translation are being copied.
*
* Usage {@link org.zanata.model.HTextFlowTarget.sourceType} and
* {@link org.zanata.model.HTextFlowTargetHistory.sourceType}
*
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
*/
public enum TranslationSourceType implements Serializable {
Expand All @@ -47,11 +54,11 @@ public enum TranslationSourceType implements Serializable {
public static final Collection<TranslationSourceType> AUTOMATED_ENTRIES;

static {
AUTOMATED_ENTRIES = Collections.unmodifiableCollection(new HashSet(
Arrays.asList(TranslationSourceType.COPY_TRANS,
TranslationSourceType.COPY_VERSION,
TranslationSourceType.MERGE_VERSION,
TranslationSourceType.TM_MERGE)));
AUTOMATED_ENTRIES =
ImmutableSet.of(TranslationSourceType.COPY_TRANS,
TranslationSourceType.COPY_VERSION,
TranslationSourceType.MERGE_VERSION,
TranslationSourceType.TM_MERGE);
}

@Getter
Expand Down
Expand Up @@ -158,7 +158,6 @@ public ProcessStatus startSourceDocCreationOrUpdate(final String idNoSlash,
}

/**
* This is used by functional test ZanataRestCaller for testing purposes.
*
* @param idNoSlash
* @param projectSlug
Expand Down

0 comments on commit e0d3ead

Please sign in to comment.