HistoricIdentityLink.java 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.activiti5.engine.history;

16
import org.activiti.engine.task.IdentityLink;
17 18 19 20
import org.activiti5.engine.identity.GroupQuery;
import org.activiti5.engine.identity.UserQuery;
import org.activiti5.engine.task.IdentityLinkType;

21

22
/**
23 24 25
 * Historic counterpart of {@link IdentityLink} that represents the current state
 * if any runtime link. Will be preserved when the runtime process instance or task 
 * is finished.
26 27 28 29
 * 
 * @author Frederik Heremans
 */
public interface HistoricIdentityLink {
30
  
31
  /**
32 33
   * Returns the type of link.
   * See {@link IdentityLinkType} for the native supported types by Activiti. 
34 35
   */
  String getType();
36
  
37
  /**
38 39
   * If the identity link involves a user, then this will be a non-null id of a user.
   * That userId can be used to query for user information through the {@link UserQuery} API.
40 41
   */
  String getUserId();
42
  
43
  /**
44 45
   * If the identity link involves a group, then this will be a non-null id of a group.
   * That groupId can be used to query for user information through the {@link GroupQuery} API.
46 47
   */
  String getGroupId();
48
  
49 50 51 52 53 54 55 56
  /**
   * The id of the task associated with this identity link.
   */
  String getTaskId();

  /**
   * The id of the process instance associated with this identity link.
   */
57
  String getProcessInstanceId();  
58
}