public class ActivityHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVITY_PREFIX |
static String |
DOC_PREFIX |
static String |
SEPARATOR |
static String |
USER_PREFIX |
Modifier and Type | Method and Description |
---|---|
static String |
createActivityObject(Activity activity) |
static String |
createActivityObject(Serializable activityId) |
static String |
createDocumentActivityObject(DocumentModel doc) |
static String |
createDocumentActivityObject(String repositoryName,
String docId) |
static String |
createUserActivityObject(Principal principal) |
static String |
createUserActivityObject(String username) |
static String |
generateDisplayName(Principal principal) |
static String |
getActivityId(String activityObject) |
static String |
getDocumentId(String activityObject) |
static String |
getDocumentTitle(DocumentModel doc) |
static String |
getRepositoryName(String activityObject) |
static String |
getUsername(String activityObject) |
static List<String> |
getUsernames(List<String> activityObjects) |
static boolean |
isActivity(String activityObject) |
static boolean |
isDocument(String activityObject) |
static boolean |
isUser(String activityObject) |
public static final String SEPARATOR
public static final String USER_PREFIX
public static final String DOC_PREFIX
public static final String ACTIVITY_PREFIX
public static boolean isDocument(String activityObject)
public static boolean isActivity(String activityObject)
public static String getUsername(String activityObject)
public static List<String> getUsernames(List<String> activityObjects)
public static String getDocumentId(String activityObject)
public static String getRepositoryName(String activityObject)
public static String getActivityId(String activityObject)
public static String createDocumentActivityObject(DocumentModel doc)
public static String createDocumentActivityObject(String repositoryName, String docId)
public static String createUserActivityObject(Principal principal)
public static String createUserActivityObject(String username)
public static String createActivityObject(Activity activity)
public static String createActivityObject(Serializable activityId)
public static String generateDisplayName(Principal principal)
public static String getDocumentTitle(DocumentModel doc)
Copyright © 2015 Nuxeo SA. All rights reserved.