You are here

getModifiedAt

public GregorianCalendar getModifiedAt() returns the timestamp in the session's locale for when the comment was last modified.

Parameters

None

Returns

Returns a GregorianCalendar object representing the modification date of the comment.

Example


    CommentService cs = session.getServiceRegistry().getCommentService();
    
    Node node = getTestNode(session, "ClimbingVolcanoes.JPG");
    
    if (node != null) {
    
        List<Comment> comments = cs.getComments(node);
    
        for (Comment c : comments) {
            Log.d(TAG, "Comment:");
            Log.d(TAG, "canDelete:" + c.canDelete());
            Log.d(TAG, "canEdit:" + c.canEdit());
            Log.d(TAG, "Content:" + c.getContent());
            Log.d(TAG, "createdBy:" + c.getCreatedBy());
            Log.d(TAG, "creationTime:"
                  + c.getCreationTime().getTime().toString());
            Log.d(TAG, "identifier:" + c.getIdentifier());
            Log.d(TAG, "modificationTime:"
                  + c.getModifiedAt().getTime().toString());
            Log.d(TAG, "name:" + c.getName());
            Log.d(TAG, "title:" + c.getTitle());
            Log.d(TAG, "isEdited:" + c.isEdited());
            Log.d(TAG, "--------");
        }
    }

Would produce output such as the following: